Stream is not a valid resource file.

D

Daniel Groh

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
 
H

hiriumi

Hi, Daniel.
How does reTitles.resx look like? Is it a correctly formatted resource
file?
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top