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: Illegal characters in path.
Source Error:
Line 7: Protected Sub btLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btLogin.Click
Line 8:
Line 9: If Membership.ValidateUser(txtUserName.Value, txtPassword.Value) Then Line 10:
Line 11: Dim authTicket As FormsAuthenticationTicket = New FormsAuthenticationTicket(txtUserName.Value, True, (12 * 60))
What is the problem? On my pc in visual studio all work great!!
AccessFile is not valid: C:\inetpub\wwwroot\Mobile\Provider=Microsoft.Jet.Oledb.4.0;Data Source=C:\inetpub\wwwroot\Mobile\app_data\ASPNetDB.mdb
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.Exception: AccessFile is not valid: C:\inetpub\wwwroot\Mobile\Provider=Microsoft.Jet.Oledb.4.0;Data Source=C:\inetpub\wwwroot\Mobile\app_data\ASPNetDB.mdb
But this file is the same that I'm using in another webapp..
clembo67
Member
100 Points
179 Posts
Illegal characters in path
Oct 13, 2011 10:32 PM|LINK
Trying to login system shows this error:
Illegal characters in path
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: Illegal characters in path.
Source Error:
Line 7: Protected Sub btLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btLogin.Click Line 8: Line 9: If Membership.ValidateUser(txtUserName.Value, txtPassword.Value) Then Line 10: Line 11: Dim authTicket As FormsAuthenticationTicket = New FormsAuthenticationTicket(txtUserName.Value, True, (12 * 60))What is the problem? On my pc in visual studio all work great!!
ignatandrei
All-Star
135204 Points
21687 Posts
Moderator
MVP
Re: Illegal characters in path
Oct 14, 2011 02:08 AM|LINK
What do you have in web.config as connection string for
Membership
?
clembo67
Member
100 Points
179 Posts
Re: Illegal characters in path
Oct 14, 2011 05:02 AM|LINK
ignatandrei
All-Star
135204 Points
21687 Posts
Moderator
MVP
Re: Illegal characters in path
Oct 14, 2011 06:57 AM|LINK
Do not know what version is the correct one....
Try changin both with
\
and changing both without
\
clembo67
Member
100 Points
179 Posts
Re: Illegal characters in path
Oct 14, 2011 07:41 AM|LINK
Nothing. I've still tried this. Not work.
This settings work perfectly on my PC.
On webserver (windows 2008) shows this error..
There must be a workaround..
hans_v
All-Star
35986 Points
6550 Posts
Re: Illegal characters in path
Oct 14, 2011 07:59 AM|LINK
Which result do you get if you do:
Response.Write(Server.MapPath("~/app_data/"))clembo67
Member
100 Points
179 Posts
Re: Illegal characters in path
Oct 14, 2011 09:48 AM|LINK
C:\inetpub\wwwroot\Mobile\app_data\
hans_v
All-Star
35986 Points
6550 Posts
Re: Illegal characters in path
Oct 14, 2011 10:59 AM|LINK
Try
<add name="AccessFileName" connectionString="Provider=Microsoft.Jet.Oledb.4.0;Data Source=C:\inetpub\wwwroot\Mobile\app_data\ASPNetDB.mdb"
providerName="System.Data.OleDb" />
clembo67
Member
100 Points
179 Posts
Re: Illegal characters in path
Oct 14, 2011 12:28 PM|LINK
Now this is error:
AccessFile is not valid: C:\inetpub\wwwroot\Mobile\Provider=Microsoft.Jet.Oledb.4.0;Data Source=C:\inetpub\wwwroot\Mobile\app_data\ASPNetDB.mdb
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.Exception: AccessFile is not valid: C:\inetpub\wwwroot\Mobile\Provider=Microsoft.Jet.Oledb.4.0;Data Source=C:\inetpub\wwwroot\Mobile\app_data\ASPNetDB.mdb
But this file is the same that I'm using in another webapp..
ignatandrei
All-Star
135204 Points
21687 Posts
Moderator
MVP
Re: Illegal characters in path
Oct 14, 2011 01:48 PM|LINK
Replace it.