none
The remote server returned an error: NotFound RRS feed

  • Question

  • I have just migrated from a Windows XP PC with Visual Studio Web Developer Express 2010 to a Windows 8 with Visual Studio for Web Express 2012.

    I have a Silverlight Project with a Silverlight enabled local web service, which all runs well in the old setup. But on the new PC and with VS for WEB 2012 Express I get the above error when starting the SL project.

    I have searched the forums for a solution and found many, that has had the same problem. But none of the suggest solutions has solved the problem for me. But when I look in Fiddler to see, whats happening, I see this (below), and I wonder why Mozilla is mentioned? I do not have Mozilla installed. I have Filezilla installed as FTP program, but that shouldn't inflict?

    POST /DBService.svc HTTP/1.1
    Accept: */*
    Referer: http://localhost:1327/ClientBin/Familiealbummet.xap
    Accept-Language: da-DK
    Content-Length: 139
    Content-Type: application/soap+msbin1
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0; MALNJS)
    Host: localhost:1327
    DNT: 1
    Connection: Keep-Alive
    Pragma: no-cache

    Sunday, October 13, 2013 11:01 AM

Answers

  • The problem has been solved! It turned out that there was a runtime error in the web service, which caused it to fail. The error messages from Visual Studio, Fiddler and Windows log were not very helpfull. For others that might run into a similiar problem:: The runtime error in the web service came from the fact, that the AppicationData folder has changed location from Win XP to Win 8. Thank you for your efforts to help me solve the problem.
    Sunday, October 27, 2013 2:24 PM

All replies

  • Hi Harald,

    As for the webservice, have you tried directly using a standard .NET console app to call it to see if it works?

    About the HTTP request captured by fiddler, the "mozilla" is expected, it means the IE web browser is based on mozilla web browser engine (just like firefox). Google chrome and apple safari is based on webkit engine. So what is the response captured in fiddler, does it show any error details?


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, October 14, 2013 7:36 AM
    Moderator
  • About using standard .NET comsole app: Could you please elaborate this, since I don't know, what you mean.

    About the HTTP request captured by Fiddler there is the following details:

    HTTP/1.1 500 Internal Server Error

    Server: ASP.NET Development Server/11.0.0.0

    Date: Mon, 14 Oct 2013 10:47:33 GMT

    X-AspNet-Version: 2.0.50727

    Cache-Control: private

    Content-Length: 0

    Connection: Close

    The Windows log shows this (below). Translated it says something like this:

    Webhost could not handle reqeust. Service /DBService.svc could not be activated due to an exception dureing compiling. the exception is: ChannelDispatcher on http://mejlholmdk0.eweb702.discountasp.net/Familiealbummet/DBService.svc  http://mejlholmdk0.eweb702.discountasp.net/Familiealbummet/DBService.svc with contract "DBService" cannot open the corresponding IChannelListener. Later it says: There is no protocolbinding, that matches the given address http://mejlholmdk0.eweb702.discountasp.net/Familiealbummet/DBService.svc. Protocol bindings are configured on web site level in IIS- or WAS-configurationen.

    I don't understand why this link is mentioned. I have 3 service references in my SL project: one for Development, which the following address: http://localhost:1327/DBService.svc + 2 remote service references used for test and production. The reference  http://mejlholmdk0.eweb702... is the address of the production service reference.

    ---------- From Windows log---------------

    Lognavn:       Application
    Kilde:         System.ServiceModel 3.0.0.0
    Dato:          14-10-2013 12:47:33
    Hændelses-id:  3
    Opgavekategori:WebHost
    Niveau:        Fejl
    Nøgleord:      Klassisk
    Bruger:        NYMEDION\Harald Mejlholm
    Computer:      NyMedion
    Beskrivelse:
    WebHost kunne ikke behandle en anmodning.
     Afsenderoplysninger: System.ServiceModel.ServiceHostingEnvironment+HostingManager/19949373
     Undtagelse: System.ServiceModel.ServiceActivationException: Tjenesten /DBService.svc kunne ikke aktiveres på grund af en undtagelse under kompileringen. Undtagelsesmeddelelsen er: ChannelDispatcher på http://mejlholmdk0.eweb702.discountasp.net/Familiealbummet/DBService.svc med kontrakten/kontrakterne "DBService" kan ikke åbne den tilhørende IChannelListener.. ---> System.InvalidOperationException: ChannelDispatcher på http://mejlholmdk0.eweb702.discountasp.net/Familiealbummet/DBService.svc med kontrakten/kontrakterne "DBService" kan ikke åbne den tilhørende IChannelListener. ---> System.InvalidOperationException: Der er ikke nogen protokolbinding, der stemmer overens med den angivne adresse http://mejlholmdk0.eweb702.discountasp.net/Familiealbummet/DBService.svc. Protokolbindinger konfigureres på webstedsniveauet i IIS- eller WAS-konfigurationen.
       ved System.ServiceModel.Channels.TransportChannelListener.OnOpening()
       ved System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       ved System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
       --- Slut på staksporing af indre undtagelser ---
       ved System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
       ved System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       ved System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
       ved System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       ved System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
       ved System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
       --- Slut på staksporing af indre undtagelser ---
       ved System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
       ved System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)
     Procesnavn: WebDev.WebServer20
     Proces-id: 3616

    Hændelses-Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="System.ServiceModel 3.0.0.0" />
        <EventID Qualifiers="49154">3</EventID>
        <Level>2</Level>
        <Task>5</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2013-10-14T10:47:33.000000000Z" />
        <EventRecordID>33726</EventRecordID>
        <Channel>Application</Channel>
        <Computer>NyMedion</Computer>
        <Security UserID="S-1-5-21-4250401107-845296964-1875017644-1002" />
      </System>
      <EventData>
        <Data>System.ServiceModel.ServiceHostingEnvironment+HostingManager/19949373</Data>
        <Data>System.ServiceModel.ServiceActivationException: Tjenesten /DBService.svc kunne ikke aktiveres på grund af en undtagelse under kompileringen. Undtagelsesmeddelelsen er: ChannelDispatcher på http://mejlholmdk0.eweb702.discountasp.net/Familiealbummet/DBService.svc med kontrakten/kontrakterne "DBService" kan ikke åbne den tilhørende IChannelListener.. ---&gt; System.InvalidOperationException: ChannelDispatcher på http://mejlholmdk0.eweb702.discountasp.net/Familiealbummet/DBService.svc med kontrakten/kontrakterne "DBService" kan ikke åbne den tilhørende IChannelListener. ---&gt; System.InvalidOperationException: Der er ikke nogen protokolbinding, der stemmer overens med den angivne adresse http://mejlholmdk0.eweb702.discountasp.net/Familiealbummet/DBService.svc. Protokolbindinger konfigureres på webstedsniveauet i IIS- eller WAS-konfigurationen.
       ved System.ServiceModel.Channels.TransportChannelListener.OnOpening()
       ved System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       ved System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
       --- Slut på staksporing af indre undtagelser ---
       ved System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
       ved System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       ved System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
       ved System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       ved System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
       ved System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
       --- Slut på staksporing af indre undtagelser ---
       ved System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
       ved System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)</Data>
        <Data>WebDev.WebServer20</Data>
        <Data>3616</Data>
      </EventData>
    </Event>

    Monday, October 14, 2013 11:12 AM
  • Hi,

    >>Webhost could not handle reqeust. Service /DBService.svc could not be activated due to an exception dureing compiling. the exception is: ChannelDispatcher on  ....

      

    It seems that the root cause of the error is the setting in the web.config and you have added the following:

     <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />  

    Now, why does that setting matter here?  If you add a bit more debug code to your custom CreateServiceHost method:  

         foreach (var a in baseAddresses)
            Debug.WriteLine("Base Address: " + a.AbsoluteUri);

    You’ll find that with the multipleSiteBindingsEnabled=true, the baseAddress array argument contains only one endpoint, the one corresponding to the input endpoint, so the internal endpoint that you want to bind to is unavailable.

    So, please change the value of multipleSiteBindingsEnabled to false, and you’re good to go:

       <serviceHostingEnvironment multipleSiteBindingsEnabled="false" />

    For more information, please try to refer to:
    #Troubleshooting with WCF:
    http://blogs.msdn.com/b/jimoneil/archive/2011/07/11/troubleshooting-endpoints-on-a-wcf-web-role.aspx .

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, October 21, 2013 5:41 AM
    Moderator
  • Thanks for your help. I have tried to add the multipleSiteBindingsEnabled attribute(it was not there before), so that it now looks like below. But I get an error (blue underlining): multipleSiteBindingsEnabled attribute not allowed. Just to remind you: I am using Visual Studio for Web Express 2012.

    Do you think, I should go on to use the second part of the resolution in the article Troubleshooting Endpoints on a WCF Web Role: Create a custom ServiceHostFactory for all of the services?

    <

    serviceHostingEnvironmentaspNetCompatibilityEnabled="true"multipleSiteBindingsEnabled="false"/>

    Monday, October 21, 2013 11:36 AM
  • Hi,

    I am sorry for the late reply.

    You can try to use the second part of the resolution, if you meet any error, please post here.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, October 25, 2013 8:34 AM
    Moderator
  • Have you any idea, why the multipleSiteBindingsEnabled attribute is not accepted?
    Friday, October 25, 2013 11:51 AM
  • Enclosed are 2 screen dumps of the Add Service Reference in Visual Studio. The first one is from Visual Webdeveloper Express 2010 (on Windows XP). As you can see, I am able to Discover the web service on local host, and when I click Go, I can see all the operations in the service.

    In Visual Studio for Web Express 2012 (on Windows 8) I can also discover the service, but when I click Go, I get the error shown in Picture 2.

    Obviously something is changed in the 2012 version. But what???

    Saturday, October 26, 2013 11:07 AM
  • The problem has been solved! It turned out that there was a runtime error in the web service, which caused it to fail. The error messages from Visual Studio, Fiddler and Windows log were not very helpfull. For others that might run into a similiar problem:: The runtime error in the web service came from the fact, that the AppicationData folder has changed location from Win XP to Win 8. Thank you for your efforts to help me solve the problem.
    Sunday, October 27, 2013 2:24 PM