【发布时间】:2013-07-24 23:15:00
【问题描述】:
我正在尝试为我的新业务Antech 设置一个网站,但我似乎无法让我的登陆站点指向“Default.aspx”。我是否必须使用 IIS,如果需要,IIS Express 是否可以工作?我在我的 Web.config 文件中不断出现以下错误(要查看实际错误,您可以访问我的网站 here):
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
Line 24: </connectionStrings>
Line 25: <system.web>
Line 26: <compilation debug="true" targetFramework="3.5">
Line 27: <assemblies>
Line 28: <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Source File: \\boswinfs07\home\users\web\b341\dom.antechdevelopmen\web.config Line: 26
Version Information: Microsoft .NET Framework Version:2.0.50727.3634; ASP.NET Version:2.0.50727.3634
提前感谢您的帮助!
【问题讨论】:
-
当您从第 26 行删除 targetFramework 内容时会发生什么?
-
请不要发布死链接。可能它是一个只有您可以访问的仅限开发人员的网站。
-
至于问题,由于某种原因,您的
web.config文件是为高于您安装的.NET 版本编写的。 -
@til_b 它开始检查我的 .dll 文件并抛出错误。
-
@Shadow Wizard,很抱歉,我不知道您所说的死链接是什么意思,谢谢!