【问题标题】:VB asp.net web application not running in web serverVB asp.net Web 应用程序未在 Web 服务器中运行
【发布时间】:2014-12-24 11:07:15
【问题描述】:

我开发了一个 asp.net Web 应用程序(在 vb.net 中),当我通过 vs 2010 运行它时,它在本地运行。但问题是当我在 Web 服务器中上传已发布的 Web 应用程序时它显示错误。

Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

    <configuration>
        <system.web>
            <customErrors mode="Off"/>
    </system.web>
    </configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
     </system.web>
</configuration>

当我将“mode”属性设置为“Off”时,它给了我错误....

<authentication mode="Forms">

为了您的信息,我没有使用登录表单 (Login.aspx)。最后在尝试关闭web.config 中的许多标签后,它给出了错误,

the site.master does not exists

我该怎么办?

这是一个将客户数据保存到mysql数据库的简单网页。我已经通过在connectionstring 中提供远程 mysql 数据库详细信息进行了尝试,它正在工作。

我尝试在网络上找到解决方案但失败了。

【问题讨论】:

  • 看起来,在您的页面上,在 Page 指定了反制母版页
  • 喜欢???意思是我无法理解你...

标签: asp.net vb.net


【解决方案1】:

Uriil 的意思是,在您的页面顶部,您有这样的内容:

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPages/Site.Master" CodeBehind="Bill.aspx.vb" Inherits="WebApp.Bill" %>

这意味着该页面正在寻找母版页,在您的情况下该母版页不存在。因此,要么将您的页面更改为不引用母版页,要么创建一个 site.master。

【讨论】:

  • 对不起,文件Site.Master是存在的。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多