Server Error in '/' Application. ASP.NET

前端 未结 14 1971
死守一世寂寞
死守一世寂寞 2020-12-02 15:00

Greeting,

I developed a website using ASP.Net 3.5 and C#. It is working good with Visual Stdio 2010. I uploaded my website to my domain under the public folder.

相关标签:
14条回答
  • 2020-12-02 15:05

    Look at these two excerpts:

    I uploaded my website to my domain under the public folder.

    and

    This error can be caused by a virtual directory not being configured as an application in IIS.

    It's pretty clear to me that you did exactly what you said you did, and no more, i.e. you transfered the files to the web server, but nothing else. You need to configure that public folder as a virtual directory in IIS as the error is telling you, or it's just not going to work.

    0 讨论(0)
  • 2020-12-02 15:07

    Have you configured the virtual directory as an ASP.NET application for the right framework version?

    See IIS Setup

    0 讨论(0)
  • 2020-12-02 15:14

    The key information in this error is this line:

    This error can be caused by a virtual directory not being configured as an application in IIS.

    In IIS, you can have several applications, but they must be configured as an application. Generally, when you create a web project it maps directly to an IIS application.

    Check with your hosting service on how to create an IIS application for your web app.

    Edit - added If this is on your server, you can set this up yourself following the instructions in @Frazell Thomas's answer. He beat me to finding that link. To save yourself some reading, you should be able to focus in on the Creating Virtual Directories and Local Web Sites section.

    0 讨论(0)
  • 2020-12-02 15:18
    • right-click virtual directory (e.g. MyVirtualDirectory)

    • click convert to application.

    0 讨论(0)
  • 2020-12-02 15:21

    Just check connectivity between SQL And your App (if you used SQL)

    0 讨论(0)
  • 2020-12-02 15:22

    I got the same problem and my solution was to remove webconfig file from the directory.. then it works..

    0 讨论(0)
提交回复
热议问题