dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Why can't I Publish web site error warn ?

  1. #1
    Join Date
    Sep 2007
    Posts
    318

    Why can't I Publish web site error warn ?

    Previously the program was written on VS2005, now I use VS2010 to run the program normally but when I publish the web site I get an error:

    It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

    error CS0433: The type 'webapp4U.UI.Controls.Controls_MenuLeft' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\nhadat\42a77785\d1e96df3\App_Web_danhmucbds.ascx.cc671b29.dll' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\nhadat\42a77785\d1e96df3\App_Web_quangcaoleft.ascx.cc671b29.dll'...

    How to fix this error ?

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,033

    Re: Why can't I Publish web site error warn ?

    Are you deploying to the same IIS server? If not, do you have the IIS server configured?

    Also, why are you using VS 2005 and VS 2010? Why not use versions that aren't 9+ years old?

  3. #3
    Join Date
    Sep 2007
    Posts
    318

    Re: Why can't I Publish web site error warn ?

    I am deploying to the same IIS server. How do you configure IIS server ? You can specify each step, this is my old application, I want to simulate running on Windows 7 Ultimate 64 bit and SQL Server 2005

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)