Ask a questionAsk a question
 

AnswerServiceActivationException dues to compilation failure.

  • Wednesday, September 24, 2008 2:39 PMPeterSQ1 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    Hello

     

    I am working with DataServices and AJAX.  In the middle of a debugging session, I got an error from the AJAX client library.  "The data operation 'Customers' failed".  This was a surprise as it had worked several times so far this session.

     

    So I tried the full URL: http://localhost:49177/WebSite2/Northwind.svc to check there wasn't a problem with the service and I got an assembly load error:

     

    Could not load file or assembly 'App_Web_rdit6p3s, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

     

    Later on in the stack trace it shows:

     

    [ServiceActivationException: The service '/WebSite2/Northwind.svc' cannot be activated due to an exception during compilation.  The exception message is: Could not load file or assembly 'App_Web_rdit6p3s, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified..]

     

    The Northwind.svc is configured for IIS+WCF hosting as follows:

     

    <%@ ServiceHost Language="C#" Factory="System.Data.Services.DataServiceHostFactory" Service="Northwind" %>

     

    I have restarted the machine but the problem has not gone away.

     

    Is there any way to track the operation of the server side components?

    Thanks for any ideas

      Peter


     

Answers

  • Thursday, September 25, 2008 11:28 AMPeterSQ1 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    The problem did not correct itself because of information cached in

    C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

     

    Deleting the web site directory and forcing a recompile fixed the issue.

     

All Replies

  • Thursday, September 25, 2008 11:28 AMPeterSQ1 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    The problem did not correct itself because of information cached in

    C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

     

    Deleting the web site directory and forcing a recompile fixed the issue.

     

  • Thursday, October 09, 2008 4:08 PMRyan Westphal - AppGeo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I was also able to fix this by opening my Entity Model, moving an entity around and then saving the edmx file. After that and building, the assembly error went away.