简体   繁体   中英

Configuration error after deploying ASP.NET application

I am using VS2012, A website on local machine works fine , when i deploy a website on remote PC / Server , it also works fine when you run on localhost in server computer, then problem arises when you access it remotely having static/live IP. it gives following configuration error.

在此处输入图片说明

deployed in following path

inetpub > wwwroot > PSE

I have also deployed a website in inetpub > wwwroot > POS which works fine

here is the website structure

在此处输入图片说明

Here is the only one web.config file in root directory

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <system.web>
    <customErrors mode="Off"/>
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="MySql.Data, Version=6.9.6.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
      </assemblies>
    </compilation>
    <httpRuntime targetFramework="4.0"/>
    <authentication mode="Forms">
      <forms defaultUrl="~/dao/pos.aspx" loginUrl="~/default.aspx" timeout="20" slidingExpiration="true"></forms>
    </authentication>
  </system.web>
</configuration>

Please guide me, where i am wrong and why i am getting above error.

here is IIS Configuration 在此处输入图片说明

Your error messages says that this is possibly caused by not configuring a virtual directory as an application. Have you checked this in IIS manager?

Look in the example below to see the difference between a application and a virtual directory that is not an application:

在此处输入图片说明

To convert a virtual directory to an application, right click and choose convert to application

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