InvalidOperationException after resource file change in ASP.Net 2.

G

Guest

I get an InvalidOperationException with the message "The resource class for
this page was not found. Please check if the resource file exists and try
again." when I change the resource file of a user control.

If I recompile the exception is no longer thrown, however this is also an
issue on the production site (where we want to change resource files without
having to deploy a new build). The only ways around this issue I have
discovered are to delete the Temporary Asp.Net files for the web site, or,
change an .aspx or .ascx file or a resource file for a web page.

It seems that changing a resource file for a user control does not cause a
recompilation whereas changing an .aspx or .ascx file or a resource file for
a web page does.

Does anyone know of this issue and a resolution or any other work-arounds?
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top