locked
The "are you missing an assembly reference" error RRS feed

  • Question

  • User-29741700 posted

    I have a Web Application Project in VS2005, the project builds successfully.  Then I use the VS2005 Web Deployment Project to build it, I got the following error which is absurd since I'm not missing the System.Web dll assembly reference.

    Error       The type or namespace name 'Web' does not exist in the namespace 'Fan.Web.Admin.System' (are you missing an assembly reference?)   

    Could anyone tell what is wrong with this problem?

     Thanks a lot!!

    Ray.
     

    Monday, June 18, 2007 10:23 PM

All replies

  • User-29741700 posted

    I got the problem fixed.  This error has been asked in the forum before but no one really gave any point of direction on the cause!  It turns out that the Web Deployment Project is very sensitive about how you name your namespace in the web application.  I have a folder named "System" and by default all the .cs created under this folder got "System" as part of its namespace and the Web Deployment Project will not build on this, changing the namespace to "Sys" for example fixed it.  However, the Web Application itself builds without any problems, wish the Web Deployment Project could be consistent with the Web Application Project!!!

     Hope this helps to others.

    Ray.
     

    Monday, June 18, 2007 11:03 PM
  • User1690675763 posted

     thanks for sharing

    Wednesday, June 20, 2007 12:23 PM