Does not support uri requests?

Discussion in 'ASP.NET / ASP.NET Core' started by ck1mark, May 6, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. URI formats are not supported. 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.ArgumentException: URI formats are not supported.

    Source Error:





    Code:
    Line 192:            Else
    Line 193:                'Create user folder
    Line 194:                Directory.CreateDirectory("http://www.club-hottie.com/users/" & username.Text)
    Line 195:                'Copy tempphoto.jpg into new user folder
    Line 196:                Dim phototemp As New FileInfo("http://www.club-hottie.com/users/phototemp.jpg")
    Source File: d:\inetpub\wwwroot\ch\register.aspx.vb Line: 194

    Stack Trace:





    Code:
    [ArgumentException: URI formats are not supported.]
       System.IO.Path.GetFullPathInternal(String path) +270
       System.IO.Directory.CreateDirectory(String path) +51
       ch.register.submit_Click(Object sender, ImageClickEventArgs e) in d:\inetpub\wwwroot\ch\register.aspx.vb:194
       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +109
       System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +69
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain() +1292
    
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    this method is expecting a file system path rather than a URL, eg. e:\web\xxxx

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page