468,535 Members | 1,902 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,535 developers. It's quick & easy.

Stream is not a valid resource file.

This line:
Line 40: ResourceReader objResReader = new ResourceReader(Server.MapPath("Resources/resTitles.resx"));

Error: Stream is not a valid resource file.

What could it be ? =/

Daniel
Nov 17 '05 #1
2 12705
Hi, Daniel.
How does reTitles.resx look like? Is it a correctly formatted resource
file?

Nov 17 '05 #2
Hi Daniel,

".resx" files are more XML(XSD) files than resource (files).
The ResourceReader class reads ".resources".
Use "resgen" from VS to convert ".resx" to ".resources".

If you want to read this files try to use XMLReader.

Cheers!
Marcin
This line:
Line 40: ResourceReader objResReader = new
ResourceReader(Server.MapPath("Resources/resTitles.resx"));

Error: Stream is not a valid resource file.

What could it be ? =/

Daniel

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Scott, Killer of all Ninjas | last post: by
reply views Thread by Daniel Groh | last post: by
5 posts views Thread by Daniel Corbett | last post: by
1 post views Thread by Tom Edelbrok | last post: by
8 posts views Thread by =?Utf-8?B?Q2hyaXMgRmluaw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.