WCF: referencing a service from script manager issue -


I am working on a project from a local host: 2971 and in the master page I want to include an asp: ScriptReference is hosted on a local host in a WCF service IIS: 5152

  & lt; Services & gt; & Lt; Asp: ServiceReference InlineScript = "false" path = "http: // localhost: 5152 / costservascc / scc" /> & lt; / Services & gt;  

Then I try to call:

  var service = new sandwich services Service service (); Service.CostOfSandwiches (5, onsite);  

Error : No element found Source file: http: // localhost: 2971 / CostService.svc / CostOfSandwiches Line: 1

then pointing to the source file 2971? The sample page created on service 2152 works fine.

Does anyone know what? Any help will be very much appreciated!

  & lt ;! - [Endpoint not expedition]: Service '/CostService.svc' does not exist on System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest on System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest () on System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast (string relativeVirtualPath) System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable (string normalizedVirtualPath) () on [HTTPException]: Service '/CostService.svc' does not exist. System.ServiceModel.AsyncResult.End [SystemInfoResult] on System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End (IAsyncResult Results) on System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous (HttpApplication Reference, Boolean flowContext) on System.ServiceModel (IAsyncResult Results) Publication. HTTP module. ProcessSecurity (Object Sender, EventErguesE) System. Web. Hppection Synchronize accessation tip. System. Web. Hpapitalization IEexchangestep. Execute () on system Web. HTTPAPLLXOutestep (IEExConstation step, complete by Boolean and Synchronous) - - & gt;  

I would think that you use Cassini (web server these videos) Taxes are developing. You need two examples of casino to reach two ports, which you are talking about. If this was an IIS, PortNumber is not required.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -