简体   繁体   中英

Error when Publishing Web Application on IIS

I have created a web application and it is working very good on visual studio development server, but when I change the server to be Local IIS Web server i got the following error

XML Parsing Error: no element found Location: http://localhost/Dadas.Website/Default.aspx Line Number 1, Column 1:

I don't know what is the problem, please if you can help I will be thankful

Thanks in Advance

Have a look at Rick's blog post Test your ASP.NET MVC or WebForms Application on IIS 7 in 30 seconds , which covers the common issues that people hit when coverting their Web apps to run on IIS.

Key quote from the post: "IIS cannot run an ASP.NET project that has been created in the default Visual Studio project folder (C:\\users\\\\Documents\\Visual Studio 2010\\Projects). Select a folder where IIS can access the files, such as C:\\Webs."

Another useful reference is the Application Pool Identities article on IIS.net. See the Securing Resources section for information on how to give the IIS AppPoolIdentity permissions to a folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM