Last post Jul 04, 2008 07:55 AM by Thomas Sun – MSFT
Jul 01, 2008 10:18 AM|cfetterolf|LINK
I was hoping someone could help me with this. I created a web application and I want to deploy it to the application server. I added a web deployment project and built the project. I copied the files over to the server, created a virtual directory, etc. and
when I access the web app I get to the login page and after I try to login in, I get a null reference exception. This happens because I run the sql commands in a class I created that resides in the App_Code folder. I noticed the the build creates an App_Code.compiled
file but no App_Code.dll. Also I have compared my web deployment project with others that are setup and run as expected and I see that the other projects have an option in the configuration manager/active solution platform called mixed platforms. I don't
have .NET as a choice either. I'm not sure why I don't have these options but it appears that they are necessary. I need to know how I can get these as an option or even if they are essential to a proper deploy.
Hope someone can help. Thanks in advance.
Jul 01, 2008 11:08 AM|HostingASPNet|LINK
What are you trying exactly to do?
You could just copy all the project files into the virtual directory.
Jul 01, 2008 01:40 PM|cfetterolf|LINK
Jul 01, 2008 01:41 PM|cfetterolf|LINK
Jul 04, 2008 07:55 AM|Thomas Sun – MSFT|LINK
The App_Code is designed for website project. If you add class to App_Code folder in your ASP.NET web application, this class is treated as "Content" instead of "Compile" by default.
In your case, you try to rename this App_Code folder or create a Class library to compile this class to dll and then add reference to it.
If this doesn’t help you, please feel free to let me know.
I hope this helps.