SouthSpawn posted on Tuesday, July 28, 2009
For some reason, my SilverLight project is working fine on my local machine.
When I deploy it out to my DiscountAsp hosted account, it doesn't seem to bring any data back.
I did a test with a few message boxes and the "e.Object" is returning back null.
But,
Here is what DiscountAsp requires are developers to do in order to get WCF working correctly.
I had to create a "code behind" .cs file on my .svc file.
Isn't most of this done?
<%
@ ServiceHost Language="C#" Debug="true" Service="General.EnterpriseObjects.HelperClasses.Compression.CompressedHost" Factory="MyHost.CSLAService" CodeBehind="CSLAService.svc.cs" %>
protected
override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
{
Uri webServiceAddress = new Uri(http://MyDomain.com/CSLAService.svc);
ServiceHost webServiceHost = new ServiceHost(serviceType, webServiceAddress);
return webServiceHost;
}
Any ideas of why this will work locally, but not on my hosted account?