Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reporting Web Service Error

Status
Not open for further replies.

sds814

Programmer
Feb 18, 2008
164
US
I'm going through a web service SSRS tutorial in the SQL Server Tutorials. The error I'm getting is that the path is incorrect for the Company Sales Report.

Here is the C# code:
Code:
Property[] returnProperties = rs.GetProperties("C:\Program Files\Microsoft SQL Server\100\Samples\Reporting Services\Report Samples\AdventureWorks Sample reports\Company Sales", properties);

The error is:
Path of the item 'C:\Program Files\Microsoft SQL Server\100\Samples\Reporting Services\Report Samples\AdventureWorks Sample reports\Company Sales' is not valid. The fill path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash.

Thanks for the help.
 
I think you need to escape your \'s in the directory.

"c:\\Folder\\Another Folder\\Yet another"

You can also prefix the string with @, to have it treated as a literal.

Hope this helps,

Alex

[small]----signature below----[/small]
Majority rule don't work in mental institutions

My Crummy Web Page
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top