Server Error in '/' Application.

Could not find file 'D:\host\motox\web\imagens\2008\supermotocross\name.asp'.

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.FileNotFoundException: Could not find file 'D:\host\motox\web\imagens\2008\supermotocross\name.asp'.

Source Error:


Line 99:         Dim Nome(1400) As String
Line 100:        I = 0
Line 101:        Dim txtReader As StreamReader = New StreamReader(Server.MapPath(path & ("/name.asp")), System.Text.UTF8Encoding.Default)
Line 102:        If ID >= 1066 Then
Line 103:            While txtReader.Peek() > -1

Source File: D:\host\motox\web\imagens\Default.aspx.vb    Line: 101

Stack Trace:


[FileNotFoundException: Could not find file 'D:\host\motox\web\imagens\2008\supermotocross\name.asp'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +519
   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, Boolean useLongPath, Boolean checkHost) +776
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +66
   System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) +101
   System.IO.StreamReader..ctor(String path, Encoding encoding) +21
   imagens_Default.GeraPagina(String path) in D:\host\motox\web\imagens\Default.aspx.vb:101
   imagens_Default.MostraGaleria(Int32 id) in D:\host\motox\web\imagens\Default.aspx.vb:50
   imagens_Default.Page_Load() in D:\host\motox\web\imagens\Default.aspx.vb:21
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +9873237
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0