Server Error System.Web.Ria.Services.DomainServiceHttpModule (latest RIA installed)

8 posts, 0 answers
  1. Ron George
    Ron George avatar
    4 posts
    Member since:
    Jan 2010

    Posted 21 Jan 2010 Link to this post

    I wanted to start a new thread because the others were very generic and I wanted to call this error out specifically. When I try to run the examples, I get this error.

    Server Error in '/' Application. 
    Configuration Error 
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 
     
    Parser Error Message: Could not load file or assembly 'System.Web.Ria, Version=2.0.0.0, Culture=neutralPublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (G:\Program Files (x86)\Telerik\RadControls for Silverlight Q3 2009 SP2\Demos\ExamplesWeb\web.config line 73) 
     
    Source Error: 
     
    Line 71:     <httpModules> 
    Line 72:       <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    Line 73:       <add name="DomainServiceModule" type="System.Web.Ria.Services.DomainServiceHttpModule, System.Web.Ria,Version=2.0.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/> 
    Line 74:     </httpModules> 
    Line 75:   </system.web> 
     
     
    Source File: G:\Program Files (x86)\Telerik\RadControls for Silverlight Q3 2009 SP2\Demos\ExamplesWeb\web.config    Line: 73 
     
    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927  



    My Environment:

    Visual Studio 2010 Beta 2 Ultimate, 10.0.21006
    Silverlight 3 SDK 3.0.40818.0
    Silverlight Tools 3 3.0.31118.0320
    Silverlight 4 SDK 4.0.41108.0
    Silverlight 4 Tools 4.0.311180347
    Silverlight 4.0.41108.0
    WCF RIA v1.0.10.14
    Visual Web Developer 2010 Express Beta 2, 10.0.21006

    .NET Framework 4 Client Profile Beta 2
    .NET Framework 4 Extended Beta 2
    .NET Framework Multi Targeting Pack

    This is a brand new install, not a trial.
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 22 Jan 2010 Link to this post

    Hi Ron George,

    Since the version of RIA Services for the new Visual Studio are different, you need to update the project references to point to them and the demo should compile. Let us know if there are problems.

    Regards,
    Ross
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 22 Jan 2010 Link to this post

    Hello,

    Generally there are two versions of WCF RIA Services:

    WCF RIA Services Beta for Visual Studio 2008 & Silverlight 3
    WCF RIA Services Preview for Visual Studio 2010 Beta & Silverlight 4

    Our demos are Visual Studio 2008 & Silverlight 3 and that is why if you want to run the examples using Visual Studio 2010 Beta & Silverlight 4 you will need to modify the web application to support WCF RIA Services Preview for Visual Studio 2010 Beta & Silverlight 4.

    Sincerely yours,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. jeffrey bk
    jeffrey bk avatar
    10 posts
    Member since:
    Jan 2010

    Posted 25 Feb 2010 Link to this post

    you should locate this folder 
    C:\Program Files\Telerik\RadControls for Silverlight Q1 2010\Demos\ExamplesWeb

    there will be a web.config file.  make a backup copy of that file.  Open the file in notepad. Search for  "System.Web.Ria.Services.DomainServiceHttpModule"

    you should the lines
     <add name="DomainServiceModule" type="System.Web.Ria.Services.DomainServiceHttpModule, System.Web.Ria,Version=2.0.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/> 
    Line 74:     </httpModules> 

    in that change 2.0.0.0 to 4.0.0.0 .

    now the application should work.. It worked for me...
  6. Ron George
    Ron George avatar
    4 posts
    Member since:
    Jan 2010

    Posted 25 Feb 2010 Link to this post

    Thanks for the help Jeffrey, unfortunately, that didn't work for me.


    Line 71:     <httpModules>
    Line 72:       <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    Line 73:       <add name="DomainServiceModule" type="System.Web.Ria.Services.DomainServiceHttpModule, System.Web.Ria,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/>
    Line 74:     </httpModules>
    Line 75:   </system.web>


    I also tried changing the 2.0 to 4.0 in another spot in the file, didn't work.
  7. amirnet
    amirnet avatar
    5 posts
    Member since:
    Jul 2007

    Posted 24 Apr 2010 Link to this post

    i got the same error,just remove that line,application will work fine

    Regards
  8. Alex
    Alex avatar
    16 posts
    Member since:
    Oct 2009

    Posted 26 Apr 2010 Link to this post

    Hi,

    in the new RIA RC2 they changed the namespaces

    System.Web.Ria split up in System.ServiceModel.DomainServices.Hosting
    in Clint and Server. You have to Change all of your System.Web.Ria references to it.

    In your case it would be:

    <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    Best Regards,
    Alex
  9. Akku
    Akku avatar
    8 posts
    Member since:
    May 2010

    Posted 19 May 2010 Link to this post

    Thanks amirnet.
    It realy helped me out.
Back to Top
DevCraft banner