本地运行没事,一传到服务器就出错
Server Error in '/' Application.
--------------------------------------------------------------------------------
The network location cannot be reached. For information about network troubleshooting, see Windows Help.
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.IO.IOException: The network location cannot be reached. For information about network troubleshooting, see Windows Help.
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:
[IOException: The network location cannot be reached. For information about network troubleshooting, see Windows Help.
]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +667
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +852
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +43
System.IO.StreamWriter.CreateFile(String path, Boolean append) +54
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) +49
System.IO.StreamWriter..ctor(String path, Boolean append) +66
System.IO.File.CreateText(String path) +31
comment.SystemLog.SysLog(String message) in C:\Inetpub\wwwroot\www\components\SystemLog.cs:23
comment.Database.Open() in C:\Inetpub\wwwroot\www\components\Database.cs:30
comment.Database.Operate(String SqlStr) in C:\Inetpub\wwwroot\www\components\Database.cs:70
comment.home.BDnew() in c:\inetpub\wwwroot\www\home.aspx.cs:98
comment.home.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\www\home.aspx.cs:29
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407
各位大哥,大姐 棒我看看