I have a Silverlight 4, .Net 4, and WCF RIA Services 1 application running fine on my Windows 7 + Visual Studio 2010 development machine but when publishing to a test server it is not working. The server is 2008 server + IIS 7. I have tried installing the
RIA DLLs onto the server but still does't help. I think it might be an IIS configuration issue, but I'm not sure. Here is there error I am getting:
System.TypeInitializationException: [TypeInitialization_Type]
Arguments: Balenz.Web.UI.Controllers.ApplicationController
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See go.microsoft.com/.../ ---> System.InvalidOperationException: The current application or application host is null and the host
Uri cannot be determined.
at System.ServiceModel.DomainServices.Client.WebDomainClient`1.ComposeAbsoluteServiceUri()
at System.ServiceModel.DomainServices.Client.WebDomainClient`1..ctor(Uri serviceUri, Boolean usesHttps, ChannelFactory`1 channelFactory)
at Balenz.Web.Services.LicenseContext..ctor()
at Balenz.Web.UI.Controllers.ApplicationController..ctor()
at Balenz.Web.UI.Controllers.ApplicationController..cctor()
--- End of inner exception stack trace ---
at Balenz.Web.UI.Controllers.ApplicationController.get_Instance()
at Balenz.Web.UI.App..ctor()
Thanks,
Chris