Invalid class reference error

Discussion in 'ASP.NET / ASP.NET Core' started by GBiggs, May 30, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. From time to time I get an error "The name 'SomeClass' does not exist in the current context". I know the class reference is correct. The site compiles on my local development machine and the class file is on the server. The error is thrown on pages that have been working fine but on which I might have implemented some minor change completely unrelated to the code identified as causing the problem.

    I have never experienced this error on other hosting services. I have a machine code in web.config.

    The problem usually self-corrects after a bit. I have tried forcing a recompile with a minor tweak and reload of web.config but it doesn't resolve the problem.

    What's going on here? Clearly the site cannot be put into production on DiscountAsp if this can't be resolved.

    Thanks
     
  2. Follow up

    I deleted the file and uploaded an identical file from my development machine. This resolved the symptom - error message - but is clearly not a valid method for dealing with a production system
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page