when i run my website as local host it works fine but when i try to make login on internet the error appears in
WebSecurity.InitializeDatabaseConnection("StarterSite", "UserProfile", "UserId", "Email", autoCreateTables: true);
when i run my website as local host it works fine but when i try to make login on internet the error appears in
WebSecurity.InitializeDatabaseConnection("StarterSite", "UserProfile", "UserId", "Email", autoCreateTables: true);
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
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.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and
the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated
request user.
To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
Line 1: @{
Line 2: WebSecurity.InitializeDatabaseConnection("tech", "UserProfile", "UserId", "Email", autoCreateTables: true); Line 3:
Line 4:
None
0 Points
3 Posts
cannot initialize database on webserver
Dec 22, 2012 12:18 PM|engr.fr|LINK
when i run my website as local host it works fine but when i try to make login on internet the error appears in WebSecurity.InitializeDatabaseConnection("StarterSite", "UserProfile", "UserId", "Email", autoCreateTables: true);
All-Star
94130 Points
18109 Posts
Re: cannot initialize database on webserver
Dec 23, 2012 02:10 AM|Decker Dong - MSFT|LINK
What error or exceptions have you got?
Can you offer us the detailled information?
None
0 Points
3 Posts
Re: cannot initialize database on webserver
Dec 26, 2012 08:27 AM|engr.fr|LINK
Server Error in '/' Application.
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
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.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
Line 1: @{ Line 2: WebSecurity.InitializeDatabaseConnection("tech", "UserProfile", "UserId", "Email", autoCreateTables: true); Line 3: Line 4:
Source File: c:\inetpub\vhosts\tech-east.com\httpdocs\_AppStart.cshtml Line: 2
Stack Trace:
All-Star
94130 Points
18109 Posts
Re: cannot initialize database on webserver
Dec 26, 2012 08:22 PM|Decker Dong - MSFT|LINK
Hi,
Check your Access db whether it's encypted, and you have enough permission to cope with the folder as well as the file.
And your hard disc isn't compressed, as well as your folder isn't compressed.
All-Star
25756 Points
7014 Posts
Re: cannot initialize database on webserver
Dec 26, 2012 08:42 PM|hans_v|LINK
He's using SQL Compact...