我是一名开发人员,正在尝试创建一个非常基本的“Hello World”.NET 3.5 Web 应用程序。但是,每当我发布代码时,我都会收到以下错误。
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load the assembly 'App_Web_default.aspx.cdcab7d2'. Make sure that it is compiled before accessing the page.
Source Error:
Line 1: <%@ page language="C#" autoeventwireup="true" inherits="_Default, App_Web_default.aspx.cdcab7d2" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
这是我正在采取的步骤。
- 打开 VS2008 并使用 C# 和 .NET Framework 3.5 创建一个新网站。
- 更新 Default.aspx 以说“Hello World”
- 对 web.config 进行以下更改 ** 添加
<customErrors mode="Off"/>
** 注释掉<authentication mode="Windows" />
- 发布站点,选中“允许此预编译站点可更新”和“使用固定命名和单页程序集”复选框
我想知道这是我做错了什么还是我们的网络管理员设置不正确。
它会/可能与 /bin 目录的位置有关吗?