Web Deployment Project - No Mixed Platforms Choice

Last post 07-04-2008 7:55 AM by Thomas Sun – MSFT. 4 replies.

Sort Posts:

  • Web Deployment Project - No Mixed Platforms Choice

    07-01-2008, 10:18 AM
    • Loading...
    • cfetterolf
    • Joined on 07-01-2008, 2:02 PM
    • Posts 3

    Hello All,

    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.

  • Re: Web Deployment Project - No Mixed Platforms Choice

    07-01-2008, 11:08 AM

    Hello,

    What are you trying exactly to do?

    You could just copy all the project files into the virtual directory.

    Regards

  • Re: Web Deployment Project - No Mixed Platforms Choice

    07-01-2008, 1:40 PM
    • Loading...
    • cfetterolf
    • Joined on 07-01-2008, 2:02 PM
    • Posts 3
    I’m just trying to deploy the web app to the server and it work.  I think I tried that already and I got an error saying App_Code folder not aloud or something like that but I’ll try again right now.
  • Re: Web Deployment Project - No Mixed Platforms Choice

    07-01-2008, 1:41 PM
    • Loading...
    • cfetterolf
    • Joined on 07-01-2008, 2:02 PM
    • Posts 3
    That didn’t work for me.  I’m still getting a null reference exception when my app tries to access one of my classes.  In the stack track the app is trying to find the class at my local path and obviously it is never going to find it.
  • Re: Web Deployment Project - No Mixed Platforms Choice

    07-04-2008, 7:55 AM
    Answer

    Hi,

    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.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (5 items)
Microsoft Communities
Page view counter