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

The provided URI scheme 'file' is invalid; expected 'http'

3 Answers 588 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
wang zhong
Top achievements
Rank 1
wang zhong asked on 02 Feb 2010, 02:32 AM
Hi all
when i config the ReportViewer for silverlight following the video "Getting Started with Telerik Report Viewer for Silverlight"
when i run the page,it display
"InnerException = {System.ArgumentException: The provided URI scheme 'file' is invalid; expected 'http'.
Parameter name: via

"
My silverlight UI is
 

 

 

 

<Grid x:Name="LayoutRoot">

 

 

 

 

<Telerik_ReportViewer_Silverlight:ReportViewer Name="report1" ReportServiceUri="../ReportService.svc" Report="EDO.Report.TestReport,EDO.Report,Culture=neutral,PublicKeyToken=null" Margin="8,8,20,8"/>

 

 

 

 

</Grid>

 


and i just put two static text to the The EDO.Report.TestReport.

Who can help me?
thank you~

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 02 Feb 2010, 11:55 AM
Hi wang zhong,

The error seems to be related with the endpoint registration of the wcf service and this is a generic error not directly related to our product. You can see how others have resolved it and what were the culprits in various threads on the net:
  • http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/b6fa5926-f56c-4a3e-b541-007bd7efa76b/
  • http://www.experts-exchange.com/Programming/Languages/.NET/Web_Services/Q_24042975.html
  • http://forums.silverlight.net/forums/p/146293/326818.aspx
Our suggestion is to go carefully through the video once again to make sure you have not omitted a step, note that you can pause it at any time. Also go through the relevant documentation to make sure everything is as should be:

Best wishes,
Steve
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
wang zhong
Top achievements
Rank 1
answered on 04 Feb 2010, 02:24 AM
Hi Steve

When I run my solution,The application's address at browser shows the local disk address(C:\development\wztest\Bin\Debug\TestPage.html);
but not http://localhost:5623/TestPage.aspx
Does this cause the error?

Thanks
0
Accepted
Steve
Telerik team
answered on 04 Feb 2010, 08:35 AM
Hello wang zhong,

Yes this is causing the error as you are opening the page as a file and not through a web server (either IIS or built-in Visual Studio server). Again review carefully the videos and documentation we have provided and follow them to the letter.

Sincerely yours,
Steve
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
General Discussions
Asked by
wang zhong
Top achievements
Rank 1
Answers by
Steve
Telerik team
wang zhong
Top achievements
Rank 1
Share this question
or