4 Replies - 404 Views - Last Post: 10 September 2019 - 09:53 AM

#1 dongtrien   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 74
  • Joined: 17-June 15

Why can't I Publish web site error warn ?

Posted 07 August 2019 - 01:44 AM

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 ?

Is This A Good Question/Topic? 0
  • +

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

#2 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6816
  • View blog
  • Posts: 31,414
  • Joined: 10-May 07

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

Posted 07 August 2019 - 04:41 AM

** Moved to Web Servers & Hosting **
Was This Post Helpful? 0
  • +
  • -

#3 andrewsw   User is offline

  • never lube your breaks
  • member icon

Reputation: 6813
  • View blog
  • Posts: 28,184
  • Joined: 12-December 12

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

Posted 07 August 2019 - 04:46 AM

Presumably you searched the error and found this page, is it not useful or relevant for some reason?
Was This Post Helpful? 0
  • +
  • -

#4 dongtrien   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 74
  • Joined: 17-June 15

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

Posted 10 September 2019 - 01:28 AM

I saw the page you sent me but could not
Was This Post Helpful? 0
  • +
  • -

#5 andrewsw   User is offline

  • never lube your breaks
  • member icon

Reputation: 6813
  • View blog
  • Posts: 28,184
  • Joined: 12-December 12

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

Posted 10 September 2019 - 09:53 AM

What?

Have you attempted to configure the virtual directory as an application in IIS?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1