I'm not sure what is going on. My web config is identical on all the sites I've worked with, this one doesn't want to work. It works just fine with the Winhost secondary url http://viptanni.w05.Winhost.com/#locations but actually going to the real url is causing a 500 error http://viptanning.com/#locations I triied putting an endpoint address in, I tried not using my bindingConfiguration. I'm at a loss. I know the insane message size isn't good, I just haven't figured out what I want to set it at yet. Thank you in advance. Code: <system.serviceModel> <bindings> <webHttpBinding> <binding name="LargeWeb" maxBufferPoolSize="1500000" maxReceivedMessageSize="1500000" maxBufferSize="1500000"> <readerQuotas maxArrayLength="656000" maxBytesPerRead="656000" maxDepth="32" maxNameTableCharCount="656000" maxStringContentLength="656000" /> </binding> </webHttpBinding> </bindings> <client> <endpoint binding="webHttpBinding" bindingConfiguration="LargeWeb" contract="VIP_Website.Services.VIP_WCF_Service" /> </client> <behaviors> <endpointBehaviors> <behavior name="VIP_Website.Services.VIP_WCF_ServiceAspNetAjaxBehavior"> <enableWebScript /> </behavior> </endpointBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/> <services> <service name="VIP_Website.Services.VIP_WCF_Service"> <endpoint address="" behaviorConfiguration="VIP_Website.Services.VIP_WCF_ServiceAspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="LargeWeb" contract="VIP_Website.Services.VIP_WCF_Service" /> </service> </services>
I couldn't edit, so here's where I ended for the night and I THINK this is correct Code: <system.serviceModel> <bindings> <webHttpBinding> <binding name="LargeWeb" maxBufferPoolSize="1500000" maxReceivedMessageSize="1500000" maxBufferSize="1500000"> <readerQuotas maxArrayLength="656000" maxBytesPerRead="656000" maxDepth="32" maxNameTableCharCount="656000" maxStringContentLength="656000" /> </binding> </webHttpBinding> </bindings> <client> <endpoint binding="webHttpBinding" bindingConfiguration="LargeWeb" contract="VIP_Website.Services.VIP_WCF_Service" /> </client> <behaviors> <endpointBehaviors> <behavior name="VIP_Website.Services.VIP_WCF_ServiceAspNetAjaxBehavior"> <enableWebScript /> </behavior> </endpointBehaviors> <serviceBehaviors> <behavior name="metadataAndDebugEnabled"> <serviceDebug includeExceptionDetailInFaults="true" /> <serviceMetadata httpGetEnabled="true" httpGetUrl="" /> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/> <services> <service name="VIP_Website.Services.VIP_WCF_Service" behaviorConfiguration="metadataAndDebugEnabled"> <host> <baseAddresses> <add baseAddress="http://viptanning.com"/> <add baseAddress="http://viptanni.w05.Winhost.com"/> </baseAddresses> </host> <endpoint address="/services/VIP_WCF_Service" behaviorConfiguration="VIP_Website.Services.VIP_WCF_ServiceAspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="LargeWeb" contract="VIP_Website.Services.VIP_WCF_Service" /> </service> </services> </system.serviceModel>
I just realized it's not just wcf calls that are bad. It's jquery ajax calls as well to load content from aspx pages For instance if you click contact us or careers using the viptanning.com domain, it can't find the file, the url is correct in Fiddler.
Problem solved, it wasn't the wcf service after all. Major bone head mistake. for some reason at one point in development I was loading an xml file like this Code: string EquipmentXML = string.Format("http://{0}/XML/{1}", HttpContext.Current.Request.Url.Authority, "Equipment.xml"); instead of Code: string EquipmentXML = string.Format("{0}{1}", HttpContext.Current.Server.MapPath("\\XML\\"), "Equipment.xml"); I'm still baffled as to how it worked on the local server, and the secondary url
That is a tough one.... Do you have any URL Rewrite rules by any chance, that may change the actual call to your XML file?