注册 登录
编程论坛 ASP.NET技术论坛

本地不能浏览网站

yfen258 发布于 2008-04-11 12:59, 1128 次点击
我之前是做asp的,现在要学习.net,刚看两天,到网上下个源码在本地测试下,出现下面的错误提示:

Server Error in '/.netceshi1' 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 configuration section 'connectionStrings'

Source Error:


Line 10: <configuration>
Line 11:     <appSettings/>
Line 12:     <connectionStrings/>
Line 13:     <system.web>
Line 14:         <!--
 

Source File: E:\\网站原码\高效的企业网站源码\\\高效的企业网站源码\web.config    Line: 12


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; Version:1.1.4322.573
5 回复
#2
yfen2582008-04-11 13:10
请教下到底错误在哪里??
谢谢
#3
hebingbing2008-04-11 13:17
错误信息在这里:Version Information: Microsoft .NET Framework Version:1.1.4322.573; Version:1.1.4322.573
请在你的iis里设置.net为2.0的……
应该是这个吧……
#4
yfen2582008-04-11 13:25
就是这里,设置为2.0就可以浏览了
谢谢你呀兄弟~~
#5
yfen2582008-04-11 13:30
前台浏览没问题,但进后台要登陆进去就提示下面的错误,请指教

Server Error in '/.netceshi1' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   admin_login.ImageButton1_Click(Object sender, ImageClickEventArgs e) +126
   System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +105
   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
   System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; Version:2.0.50727.42
#6
yfen2582008-04-11 13:33
可以了
谢~
1