InvalidOperationException after resource file change in ASP.Net 2.

Discussion in 'ASP .Net' started by =?Utf-8?B?RG9t?=, May 31, 2006.

  1. 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?
     
    =?Utf-8?B?RG9t?=, May 31, 2006
    #1
    1. Advertising

  2. =?Utf-8?B?RG9t?=

    Winista Guest

    Why would you want to change the RESX file only?

    "Dom" <> wrote in message
    news:...
    >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?
     
    Winista, May 31, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. LJ
    Replies:
    0
    Views:
    1,113
  2. Jeff Kennedy
    Replies:
    0
    Views:
    1,535
    Jeff Kennedy
    Oct 20, 2003
  3. Hari Koduru
    Replies:
    3
    Views:
    1,363
    Natty Gur
    Jan 15, 2004
  4. Tony
    Replies:
    6
    Views:
    7,353
  5. Fredrik Rodin
    Replies:
    2
    Views:
    4,951
    Fredrik Rodin
    Nov 4, 2005
Loading...

Share This Page