我有一个ASMX Web服务,该服务仅在Kayitkontrol((下方称为方法。该方法正在使用com对象。它可以在我的本地计算机上使用,但是当它在Server 2008上尝试时,它就会停止创建COM Object类内核。我在IIS上都有相同的设置。我一周不知道。我与提琴手一起介绍了它,它没有做出回应,给出了504响应。
我没有安装应用程序服务器。这是关于它的吗?
private void KayitKontrol()
{
using (SqlConnection conn = new SqlConnection("server=" + serverName + ";initial catalog=" +
dataBase + ";integrated security=false;uid=" +
sqlUser + ";password=" + sqlPass + ";"))
{
try
{
foreach (var el in kasalist)
{
try
{
LogYaz("Kasa Kayıt Atılıyor.");
Kernel kernel = new Kernel();//stops right here which is com object.
Sirket sirket = default(Sirket);
Kasa kasa = default(Kasa);
sirket = kernel.yeniSirket(TVTTipi.vtMSSQL,
el.Sirket,
"TEMELSET",
"",
netUser,
netPass,
0);
kasa = kernel.yeniKasa(sirket);
kasa.KsMas_Kod = el.KasaKodu; //Kasa Kodu
kasa.IO = "C";
kasa.Tip = "C";
kasa.Kod = el.CariKodu; //Cari Kodu
kasa.Fisno = el.Fisno;
kasa.CariHareketAciklama = "Avans ödemesi(e-flow)";
kasa.Aciklama = el.Aciklama;
kasa.Tutar = el.TlTutar;
kasa.Plasiyer_Kodu = "3500";
kasa.Tarih = el.Tarih;
kasa.DovizTut = el.DovTutar;
kasa.DovizTipi = el.Dovtipi;
kasa.Islem(TKasaIslem.tkCariOdeme);
Marshal.ReleaseComObject(kasa);
Marshal.ReleaseComObject(sirket);
kernel.FreeNetsisLibrary();
Marshal.ReleaseComObject(kernel);
}
catch (Exception exception)
{
LogYaz(exception.ToString());
}
finally
{
LogYaz("1 kasa kaydı atıldı.");
}
}
}
}
catch (Exception exception)
{
LogYaz(exception.ToString());
}
}
fiddler在bl崩溃时无法帮助您... :) Windows事件日志中的任何内容?您的日志语句(Logyaz(在哪里,其中任何东西?
我发现了问题。这是关于IIS应用程序池设置中的身份帐户。我在那里设置了一个管理员帐户,现在正在工作。我是新手。