Dal jsem to např. o složky images. Na aspone jsem nastavil právo zápisu do složky. A vypsalo mi to toto:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Could not find a part of the path 'c:\windows\system32\inetsrv\images\odeslanetestiky.txt'.
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.DirectoryNotFoundException: Could not find a part of the path 'c:\windows\system32\inetsrv\images\odeslanetestiky.txt'.
Source Error:
Line 16: Dim od23 As String = TextBox11.Text
Line 17: Dim od24 As String = TextBox12.Text
Chyba: Line 18: Dim zapispolozek As New IO.StreamWriter("images\odeslanetestiky.txt")
Line 19: zapispolozek.WriteLine(t1)
Line 20: zapispolozek.WriteLine(ot1)
Source File: D:\Websites\03e5d53545\www\createmy.aspx.vb Line: 18
Stack Trace:
[DirectoryNotFoundException: Could not find a part of the path 'c:\windows\system32\inetsrv\images\odeslanetestiky.txt'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +193
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1162
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) +65
System.IO.StreamWriter.CreateFile(String path, Boolean append) +62
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) +58
System.IO.StreamWriter..ctor(String path) +30
Default2.Button1_Click(Object sender, EventArgs e) in D:\Websites\03e5d53545\www\createmy.aspx.vb:18
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
|