ASP.NET2.0 Web.config配置 ,在线等

陌城灬流年閣 2012-08-16 02:34:34

<?xml version="1.0"?><configuration>
<appSettings>
<add key="ApplicationServices" value="Data Source=.;Initial Catalog=C:\COM.AOTIANHUOLI\COM.AOTIANHUOLI.WEB\APP_DATA\HIGHNIGHT.MDF;Integrated Security=True;max pool Size=512"/>

<add key="signmoney" value="10"/>
</appSettings>
<connectionStrings>
<add name="C:\COM.AOTIANHUOLI\COM.AOTIANHUOLI.WEB\APP_DATA\HIGHNIGHT.MDFConnectionString" connectionString="Data Source=.;Initial Catalog=C:\COM.AOTIANHUOLI\COM.AOTIANHUOLI.WEB\APP_DATA\HIGHNIGHT.MDF;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<!--
设置 compilation debug="true" 可将调试符号插入
已编译的页面中。但由于这会
影响性能,因此只在开发过程中将此值
设置为 true。
-->
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="zh-CN"/>
<compilation debug="true">

<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
<!--
通过 <authentication> 节可以配置 ASP.NET 用来
识别进入用户的
安全身份验证模式。
-->
<authentication mode="Windows"/>
<!--
如果在执行请求的过程中出现未处理的错误,
则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
开发人员通过该节可以配置
要显示的 html 错误页
以代替错误堆栈跟踪。
-->

<customErrors mode="RemoteOnly" defaultRedirect="notfound.aspx">
</customErrors>
<!--<customErrors mode="Off">
</customErrors>-->

</system.web>
<system.codedom>

</system.codedom>
<!--
在 Internet 信息服务 7.0 下运行 ASP.NET AJAX 需要 system.webServer
节。对早期版本的 IIS 来说则不需要此节。
-->
<system.webServer>
</system.webServer>
</configuration>




传到服务器上,网站打不开
...全文
210 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
陌城灬流年閣 2012-08-17
  • 打赏
  • 举报
回复
最后来的朋友,谢谢了。问题已经解决了
MR-LEE 2012-08-16
  • 打赏
  • 举报
回复
IIS版本不匹配吧
gudujianxiao 2012-08-16
  • 打赏
  • 举报
回复
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
这行注释掉
陌城灬流年閣 2012-08-16
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 的回复:]

引用 7 楼 的回复:

我是在asp.net3.5 下编程的。服务器上面的是2.0.传到服务器上就错了

汗!2.0环境怎么能运行3.5的程序呢?不错才怪呢?要么你换成2.0的编程环境,要么把服务器的换成3.5的环境!
[/Quote]

以前还是好的。我是新手,上传的时候将以前的配置文件覆盖了。上面的项目都打不开了
_老吴 2012-08-16
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 的回复:]

我是在asp.net3.5 下编程的。服务器上面的是2.0.传到服务器上就错了
[/Quote]
汗!2.0环境怎么能运行3.5的程序呢?不错才怪呢?要么你换成2.0的编程环境,要么把服务器的换成3.5的环境!
pz1016 2012-08-16
  • 打赏
  • 举报
回复
我同LZ遇见过一模一样的问题 , 如果你还没解决 你加我QQ 451531576
陌城灬流年閣 2012-08-16
  • 打赏
  • 举报
回复
上面说的,我试过了。还是不行。
陌城灬流年閣 2012-08-16
  • 打赏
  • 举报
回复
我是在asp.net3.5 下编程的。服务器上面的是2.0.传到服务器上就错了
  • 打赏
  • 举报
回复
lz,你那个name取得也太长了吧,这个到时候是要充当connectionString的索引作用的,取这么长可能会出问题啊~~~
xuan.ye 2012-08-16
  • 打赏
  • 举报
回复
<customErrors mode="Off"/> 这句话先注释上试试
xuan.ye 2012-08-16
  • 打赏
  • 举报
回复
<authentication mode="Windows"/>
=>

<authentication mode="Forms"/>

先试试
陌城灬流年閣 2012-08-16
  • 打赏
  • 举报
回复
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>
_老吴 2012-08-16
  • 打赏
  • 举报
回复
把错误页面贴出来看看
基于C#语言的ASP.NET 2.0动态网站开发基础教程,课程列表如下: ASP.NET 2.0动态网站开发基础教程(C#) 第01章 ASP.NET2.0基础 Framework Web Form(共32页).ppt ASP.NET 2.0动态网站开发基础教程(C#) 第02章 HTML和脚本语言 VBScript javaScript(共21页).ppt ASP.NET 2.0动态网站开发基础教程(C#) 第03章 ASP.NET2.0语言程序设计基础 数据类型 控制语句 类和对象(共28页).ppt ASP.NET 2.0动态网站开发基础教程(C#) 第04章 ASP.NET2.0常用对象 response request server session cookie(共17页).ppt ASP.NET 2.0动态网站开发基础教程(C#) 第05章 ASP.NET2.0服务器控件 内部 新增 增强 验证(共28页).ppt ASP.NET 2.0动态网站开发基础教程(C#) 第06章 ASP.NET数据库编程 ADO ODBC DataSet OLE XML(共27页).ppt ASP.NET 2.0动态网站开发基础教程(C#) 第07章 ASP.NET数据库高级操作 数据绑定 GridView(共19页).ppt ASP.NET 2.0动态网站开发基础教程(C#) 第08章 导航与用户控件 母版页 统一站点主题(共10页).ppt ASP.NET 2.0动态网站开发基础教程(C#) 第09章 ASP.NET Web服务 传送数据(共9页).ppt ASP.NET 2.0动态网站开发基础教程(C#) 第10章 配置ASP.NET应用程序 Global.asax Web config 缓存技术(共12页).ppt ASP.NET 2.0动态网站开发基础教程(C#) 第11章 提高ASP.NET应用程序的安全性 身份验证和授权 SSL加密(共9页).ppt

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧