
- #VB.NET WEB FORMS METHOD NOT FOUND IN APPCODE HOW TO#
- #VB.NET WEB FORMS METHOD NOT FOUND IN APPCODE CODE#
If exit/reload don't work, then as noted, right click on the module/class in app_code and set build action to compile.Īnd last but not least, you could try a re-name, and add the app_code folder - since it a specials. Do that first, just in case (since then you don't make any changes).
#VB.NET WEB FORMS METHOD NOT FOUND IN APPCODE CODE#
However, you might be dealing with a existing applcation.īut, I would first try setting the code module/or class in app_code to compile in the properties sheet first. So, I actually now often create my own folder called "M圜ode" and often avoid the issues of app_code. So, change above - it possible that the code/module you added to app_code not been (ever) compiled, and thus not seen in your project). This can lead to problems on deployment (some (a lot) of web sites don't have the newer rosylin complier, and I find some of the great new features (such as free form strings in code) will not compile.īut expand the app code, and then right click (properties) for say the given class, or module code you have, and change/set this: (build action)Ĭhange above "build" action to compile (if it not already).Īnd even before you do above, try a re-build all (that often fixes this). First up, is IIS will compile the code in that folder and NOT Visual Studio.
#VB.NET WEB FORMS METHOD NOT FOUND IN APPCODE HOW TO#
I've seen lots of people asking how to do this for websites but nobody has provided an answer, so i'm hoping someone out there can finally come up with a solution which can help me and anyone else struggling with this problem. The other suggestion i've seen is to add a 'using' statement but as the class has no namespace this is not an option. The class is used all around the website but i'm getting the error:Īll of the solutions i've come across say that I need to change the build action on the class to 'compile', but that isn't possible for a website because there is no build action property. I have fixed some errors in the web.config and added some missing references, but now i'm getting an issue with a class called Translation which is in the App_Code folder. I know the website runs because my colleague has been working on it, and it is also live on a server and being used by our clients.

I've cloned the code from TFS and opened it in VS2019 but there were errors when I tried to run it. At work I have been asked to make some amendments to a vb.net website project i've not worked on before.
