在IIS中发布后,带有Silverlight的WCF RIA服务应用程序无法正常运行

时间:2019-06-20 04:04:38

标签: c# wcf service ria

Callstack快照:

Callstack snapshot

我具有带有WCF RIA服务功能的Silverlight应用程序。项目包含许多域服务类。在IIS中发布后,每次调用域服务的Load操作都会引发异常:

(但是在Visual Studio中运行后,一切正常)

Error: Unhandled Error in Silverlight Application [Arg_NullReferenceException]
Arguments: 
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.10411.00&File=mscorlib.dll&Key=Arg_NullReferenceException   at System.ServiceModel.DomainServices.Client.WebDomainClient`1.CreateDefaultChannelFactory()
   at System.ServiceModel.DomainServices.Client.WebDomainClient`1.get_ChannelFactory()
   at System.ServiceModel.DomainServices.Client.WebDomainClient`1.BeginQueryCore(EntityQuery query, AsyncCallback callback, Object userState)
   at System.ServiceModel.DomainServices.Client.DomainClient.BeginQuery(EntityQuery query, AsyncCallback callback, Object userState)
   at System.ServiceModel.DomainServices.Client.DomainContext.Load(EntityQuery query, LoadBehavior loadBehavior, Action`1 callback, Object userState)
   at SatrapAvijehSystem.WebTotalAccount.MainPage.LoadCmbActiveYear()
   at SatrapAvijehSystem.WebTotalAccount.MainPage.SetupFormBeforeOpen()
   at SatrapAvijehSystem.WebTotalAccount.MainPage..ctor()
   at SatrapAvijehSystem.WebTotalAccount.App.Application_Startup(Object sender, StartupEventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
Source File: http://localhost:8081/Account.aspx

由于我在您共享的链接中找不到答案,因此无法将其标记为重复。此问题有所不同,它是在创建通道工厂时在共享cookie容器中的WCF RIA服务中出现的。

0 个答案:

没有答案