This is a migrated thread and some comments may be shown as answers.

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

7 Answers 544 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ron George
Top achievements
Rank 1
Ron George asked on 22 Jan 2010, 03:19 AM
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.

7 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 22 Jan 2010, 07:34 AM
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.
0
Vlad
Telerik team
answered on 22 Jan 2010, 08:45 AM
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.
0
jeffrey bk
Top achievements
Rank 1
answered on 25 Feb 2010, 02:21 PM
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...
0
Ron George
Top achievements
Rank 1
answered on 25 Feb 2010, 04:03 PM
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.
0
amirnet
Top achievements
Rank 1
answered on 24 Apr 2010, 04:05 PM
i got the same error,just remove that line,application will work fine

Regards
0
Alex
Top achievements
Rank 1
answered on 26 Apr 2010, 11:53 AM
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
0
Akku
Top achievements
Rank 1
answered on 19 May 2010, 07:29 AM
Thanks amirnet.
It realy helped me out.
Tags
General Discussions
Asked by
Ron George
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Vlad
Telerik team
jeffrey bk
Top achievements
Rank 1
Ron George
Top achievements
Rank 1
amirnet
Top achievements
Rank 1
Alex
Top achievements
Rank 1
Akku
Top achievements
Rank 1
Share this question
or