I can't seem to get this ADO.net service deployed. It's working on VS2008, but when I upload it I can't get it to work. I have had a lot of problems so far and I did implement the CustomHostFactory and I changed the authorization (disabling 'Basic', leaving annonymous). I try to access the service directly at: http://www.wagnerlab.com/RepositoryDataService.svc but I get the following error: [EndpointNotFoundException]: There was no channel actively listening at 'http://www.wagnerlab.com/RepositoryDataService.svc'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening. at System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest() at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest() [HttpException]: There was no channel actively listening at 'http://www.wagnerlab.com/RepositoryDataService.svc'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening. at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) at System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) It sounds like the service reference is not listening at the other end, and I am not sure what to do about that. In VS800 I simply published the XXX.web part, and I specify that I wanted the dependant files to be uploaded. However, the "Service Reference" for this is in the application folder and I am not sure how VS2--8 handles this when I compile the project (I've tried to compile the binaries to both "bin" and "ClientBin" and assigned them as application directories through the discountasp.net control panel, but no luck). Is there something obvious I am missing here? Any ideas? It would be greatly appreciated. Thanks, RDL
Have you signed the request your web service is calling out to? Based off the error it looks like your application is trying to make a call out to the web service with anonymous credentials. I believe you set this in the authorization header. If you did not include this header, the application is defaulted in connecting as an anonymous user. Try referring to this link for some info on this. http://msdn.microsoft.com/en-us/library/dd179428.aspx
Hi Raymond, thanks for the reply. I am at the end of my rope. I don't think its an euthorization issue. Here is my output from Fiddler: ////////////FIDDLER INSPECTOR RAW///////////////////////// GET /RepositoryDataService.svc/ HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, */* Accept-Language: en-us UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Host: www.wagnerlab.com Connection: Keep-Alive Authorization: Basic [encoded auth string] //////////////END////////////////////////// And for Auth panel in Fidler I get: //////////////FIDLER INSEPECTOR: AUTH/////////////////////// No Proxy-Authorization Header is present. Authorization Header is present: Basic [encoded auth string] Decoded Usernameassword= [username]:[password] //////////////END//////////////////////////////////////////////// And here is the output: I've checked the spelling and the DLLs for the silverlight application are accessible because I can load that page, I just cant fetch the data. /////////////FIDDLER RESONSE: TextView////////////////////// <html> <head> <title>The resource cannot be found.</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style> </head> <body bgcolor="white"> <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> <h2> <i>The resource cannot be found.</i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. <br><br> <b> Requested URL: </b>/RepositoryDataService.svc/<br><br> <hr width=100% size=1 color=silver> <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074 </font> </body> </html> <!-- [EndpointNotFoundException]: There was no channel actively listening at 'http://www.wagnerlab.com/RepositoryDataService.svc/'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening. at System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest() at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest() [HttpException]: There was no channel actively listening at 'http://www.wagnerlab.com/RepositoryDataService.svc/'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening. at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) at System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->