My code contains OXC control which populate itself from registry.
This OXC is runing on STA thread. While I am running this application
from Visual studio it runs as expected. But when I am trying to run the
application after deploying it on IIS it is not working. The OXC
control is populated with all values as empty.
Could you please check with this issue.
The code sniffet is as bellow;
protected void btnViewOfferSCR9NXFer_Click(object sender, EventArgs e)
{
Thread tNITransfer = new Thread(new ThreadStart(NITransferCall));
tNITransfer.SetApartmentState(ApartmentState.STA);
tNITransfer.Start();
}
private void NITransferCall()
{
AxtsARC objAxtsARC;
objAxtsARC = new AxtsARC();
objAxtsARC.CreateControl();
objAxtsARC.XferToCampaign(12, true, 0, true);
}
The OCX object is populating but all of its default values.
It is not reading registery of the server.