Happy New 2013 for everybody here !!!
Please help me as I am really can’t find where is an answer …L((( already very, very long time …
I am trying to run my own web site on my home PC … I an using : IIS 5.1 Windows XP Pro Microsoft SQL Server 2008 R2, Microsoft Visual Web Dev 2008 Express.
I can login on Internet Explorer into my website in debugging mode via:
C:\Documents and Settings\FOREST\My Documents\Visual Studio 2008\Websites\FOREST1\
http://localhost:1000/FOREST%202011%341/Login.aspx
But I can’t login into my Login.aspx page after I copied it via VWD2008 Express into my IIS 5.1.
I attached via SSMS my database with memberships, users, roles … into
C:\INETPUB\WWWROOT\FOREST2\APP_DATA\FOREST.MDF
Data Source=.\SQLEXPRESS;AttachDbFilename=c:\inetpub\wwwroot\FOREST2\App_Data\FOREST.mdf;Integrated Security=True;User Instance=True
I am confused and fill that I done here something wrong because into Internet Information Services Version: 5.1 I have my Login.aspx page into two Virtual directories:
‘First URL’ - Internet Information Services\YOUR-AA222222C(local computer)\Web sites\Default Web Site\wwwroot\FOREST2\Login.aspx
‘Second URL‘- Internet Information Services Version: 5.1\YOUR-AA222222C(local computer)\Web sites\Default Web Site\FOREST2\Login.aspx
If I am pressing ‘Browse’ on ‘First URL’ into IIS I have:
Server Error in '/wwwroot' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.
Details: To enable the details of this specific error message to be viewable on the local server machine, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="On" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
If I am pressing ‘Browse’ on ‘First URL’ into IIS I can view my http://localhost:32229/FOREST2/Login.aspx , but when I am typing Visitor’s Name and Password and pressing ‘Log in’ btn here I have:
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Please try the following:
If you typed the page address in the Address bar, make sure that it is spelled correctly.
Open the localhost:32229 home page, and then look for links to the information you want.
Click the Back button to try another link.
HTTP 404 - File not found
Internet Information Services
Technical Information (for support personnel)
More information:
Microsoft Support
Via VWD2008 Express I can open in File System:
‘First URL’- FOREST2 (2) C:\Inetpub\wwwroot\FOREST2
On Web Admin page I can see:
http://localhost:4444/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=C:\Inetpub\wwwroot\FOREST2\&applicationUrl=/FOREST2
Welcome to the Web Site Administration Tool
Application:/FOREST2
Current User Name:YOUR-AA222222C\FOREST2
Security
Existing users: 25
In Browser:
http://localhost:3447/FOREST2/Login.aspx
Your login attempt was not successful.
in Local IIS
‘First URL’ - Internet Information Services\YOUR-AA2222222C(local computer)\Web sites\Default Web Site\wwwroot\FOREST2 ‘is not marked as an application in IIS’
‘Second URL‘- FOREST2 Internet Information Services Version: 5.1\YOUR-AA2222222C(local computer)\Web sites\Default Web Site\FOREST2 can open Via VWD2008 Express I can open in Local IIS - c:\inetpub\wwwroot\FOREST2
Internet Information Services Version: 5.1\YOUR-AA2222222C(local computer)\Web sites\Default Web Site\FOREST2
I can’t see it in Browser as https://localhost:32229/FOREST2/ is ‘not respond in timely manner as another debugger attached to the server’ …
On Web Admin page I can see: http://localhost:4000/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=c:\inetpub\wwwroot\FOREST2\&applicationUrl=/FOREST2
Welcome to the Web Site Administration Tool
Application:/FOREST2
Current User Name:YOUR-AA222222C\FOREST2
Security
Enables you to set up and edit users, roles, and access permissions for your site.
Existing users: 0
Here I was able to create 2 new users so now here Existing users: 2.
C:\INETPUB\WWWROOT\FOREST2\APP_DATA\FOREST.MDF
Data Source=.\SQLEXPRESS;AttachDbFilename=c:\inetpub\wwwroot\FOREST2\App_Data\FOREST2.mdf;Integrated Security=True;User Instance=True
In Browser:
http://localhost:32229/forest2/ErrServer.htm?aspxerrorpath=/FOREST2/Login.aspx
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Please try the following:
If you typed the page address in the Address bar, make sure that it is spelled correctly.
Open the localhost:32229 home page, and then look for links to the information you want.
Click the Back button to try another link.
HTTP 404 - File not found
Internet Information Services
Technical Information (for support personnel)
More information:
Microsoft Support
I would be pleased for your help and comments ….
Angelika
Dear Sukumar Raju's thank you very much for replay!!!
I checked all there… All Web. Admin pages for my web site work perfect and I can test providers, add roles and users…
As I wrote before in VWD2008 Express in debugging mode all works right and I am able log into web site on Internet Explorer, but I can’t login into web site on Internet Explorer since I copied web site via VWD2008 Express into my IIS 5.1.
I need host my site on my PC at home. I can see in browser my web site pages when I am pressing ‘browse’ from IIS 5.1 Manager, but I can’t log into web site as I did it while debugging in VWD2008 Express.
The my <connectionStrings>, <profile>, <providers>, <authorization>, </roleManager> elements of my web.config here:
<connectionStrings>
<add name="FORESTConnectionString1" connectionString="YOUR-AA1487B56C\SQLEXPRESS;AttachDbFilename=|DataDirectory|\FOREST.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
<add name="ASPNETDBConnectionString1" connectionString="YOUR-AA1487B56C\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
<add name="AURORAConnectionString1" connectionString="YOUR-AA2222222C\SQLEXPRESS;AttachDbFilename="C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\FOREST.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<profile>
<providers>
<add name="FORESTSqProfileProvider" connectionStringName="YOUR-AA2222222C\SQLEXPRESS" applicationName="FOREST" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add name="AspNetSqlProfileProvider" connectionStringName="YOUR-AA2222222C\SQLEXPRESS" applicationName="FOREST" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add name="MySQLProfileProvider" type="MySql.Web.Profile.MySQLProfileProvider, MySql.Web, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="YOUR-AA2222222C\SQLEXPRESS" applicationName="FOREST"/>
</providers>
<properties>
<add name="UserName" defaultValue=""/>
</properties>
</profile>
<authorization>
<allow users="?" />
<allow roles="administrator" />
</authorization>
<identity impersonate="true" />
<customErrors mode="On" defaultRedirect="~/ErrorHandler.aspx">
<error statusCode="401" redirect="ErrUnauthorized.aspx"/>
<error statusCode="404" redirect="ErrPageNotFound.aspx"/>
<error statusCode="500" redirect="ErrServer.htm"/>
</customErrors>
<siteMap defaultProvider="default">
<providers>
<clear/>
<add name="default" type="System.Web.XmlSiteMapProvider" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
</providers>
</siteMap>
<roleManager enabled="true" cacheRolesInCookie="true" cookieName=".ASPROLES"
cookieRequireSSL="true" defaultProvider="FORESTRoleSqlProvider">
<providers>
<clear />
<add connectionStringName="FORESTConnectionString1" applicationName="FOREST"
name="FORESTRoleSqlProvider" type="System.Web.Security.SqlRoleProvider" />
<add name="AspNetSqlRoleProvider" connectionStringName="FORESTConnectionString1" applicationName="FOREST" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add name="AspNetWindowsTokenRoleProvider" applicationName="FOREST" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add name="MySQLRoleProvider" type="MySql.Web.Security.MySQLRoleProvider, MySql.Web, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="YOUR-AA2222222C\SQLEXPRESS" applicationName="FOREST"/>
</providers>
</roleManager>
But result the same and no joy …L((
Please help …
Above refer to local SQL Express version of Membership database. Attach your local version of .mdf (Metadatabase files) to SQL Server and update connection strings.
Refer deployment tutorials (on the right hand side) for related articels
I suggest that you consider using the
Web Deployment Tool from Microsoft. It was specifically designed to help deploy web applications and updates to those web applications to production IIS.
Hope it can help you.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
Angelika
Member
22 Points
89 Posts
I can’t login into my Login.aspx page after I copied it via VWD2008 Express into my IIS 5.1...
Jan 03, 2013 10:30 PM|LINK
Happy New 2013 for everybody here !!! Please help me as I am really can’t find where is an answer …L((( already very, very long time … I am trying to run my own web site on my home PC … I an using : IIS 5.1 Windows XP Pro Microsoft SQL Server 2008 R2, Microsoft Visual Web Dev 2008 Express. I can login on Internet Explorer into my website in debugging mode via: C:\Documents and Settings\FOREST\My Documents\Visual Studio 2008\Websites\FOREST1\ http://localhost:1000/FOREST%202011%341/Login.aspx But I can’t login into my Login.aspx page after I copied it via VWD2008 Express into my IIS 5.1. I attached via SSMS my database with memberships, users, roles … into C:\INETPUB\WWWROOT\FOREST2\APP_DATA\FOREST.MDF Data Source=.\SQLEXPRESS;AttachDbFilename=c:\inetpub\wwwroot\FOREST2\App_Data\FOREST.mdf;Integrated Security=True;User Instance=True I am confused and fill that I done here something wrong because into Internet Information Services Version: 5.1 I have my Login.aspx page into two Virtual directories: ‘First URL’ - Internet Information Services\YOUR-AA222222C(local computer)\Web sites\Default Web Site\wwwroot\FOREST2\Login.aspx ‘Second URL‘- Internet Information Services Version: 5.1\YOUR-AA222222C(local computer)\Web sites\Default Web Site\FOREST2\Login.aspx If I am pressing ‘Browse’ on ‘First URL’ into IIS I have: Server Error in '/wwwroot' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed. Details: To enable the details of this specific error message to be viewable on the local server machine, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off". <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly"/> </system.web> </configuration> Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="On" defaultRedirect="mycustompage.htm"/> </system.web> </configuration> If I am pressing ‘Browse’ on ‘First URL’ into IIS I can view my http://localhost:32229/FOREST2/Login.aspx , but when I am typing Visitor’s Name and Password and pressing ‘Log in’ btn here I have: The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please try the following: If you typed the page address in the Address bar, make sure that it is spelled correctly. Open the localhost:32229 home page, and then look for links to the information you want. Click the Back button to try another link. HTTP 404 - File not found Internet Information Services Technical Information (for support personnel) More information: Microsoft Support Via VWD2008 Express I can open in File System: ‘First URL’- FOREST2 (2) C:\Inetpub\wwwroot\FOREST2 On Web Admin page I can see: http://localhost:4444/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=C:\Inetpub\wwwroot\FOREST2\&applicationUrl=/FOREST2 Welcome to the Web Site Administration Tool Application:/FOREST2 Current User Name:YOUR-AA222222C\FOREST2 Security Existing users: 25 In Browser: http://localhost:3447/FOREST2/Login.aspx Your login attempt was not successful. in Local IIS ‘First URL’ - Internet Information Services\YOUR-AA2222222C(local computer)\Web sites\Default Web Site\wwwroot\FOREST2 ‘is not marked as an application in IIS’ ‘Second URL‘- FOREST2 Internet Information Services Version: 5.1\YOUR-AA2222222C(local computer)\Web sites\Default Web Site\FOREST2 can open Via VWD2008 Express I can open in Local IIS - c:\inetpub\wwwroot\FOREST2 Internet Information Services Version: 5.1\YOUR-AA2222222C(local computer)\Web sites\Default Web Site\FOREST2 I can’t see it in Browser as https://localhost:32229/FOREST2/ is ‘not respond in timely manner as another debugger attached to the server’ … On Web Admin page I can see: http://localhost:4000/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=c:\inetpub\wwwroot\FOREST2\&applicationUrl=/FOREST2 Welcome to the Web Site Administration Tool Application:/FOREST2 Current User Name:YOUR-AA222222C\FOREST2 Security Enables you to set up and edit users, roles, and access permissions for your site. Existing users: 0 Here I was able to create 2 new users so now here Existing users: 2. C:\INETPUB\WWWROOT\FOREST2\APP_DATA\FOREST.MDF Data Source=.\SQLEXPRESS;AttachDbFilename=c:\inetpub\wwwroot\FOREST2\App_Data\FOREST2.mdf;Integrated Security=True;User Instance=True In Browser: http://localhost:32229/forest2/ErrServer.htm?aspxerrorpath=/FOREST2/Login.aspx The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please try the following: If you typed the page address in the Address bar, make sure that it is spelled correctly. Open the localhost:32229 home page, and then look for links to the information you want. Click the Back button to try another link. HTTP 404 - File not found Internet Information Services Technical Information (for support personnel) More information: Microsoft Support I would be pleased for your help and comments …. Angelikasukumarraju
All-Star
17307 Points
3057 Posts
Re: I can’t login into my Login.aspx page after I copied it via VWD2008 Express into my IIS 5.1....
Jan 04, 2013 01:44 PM|LINK
Refer
http://weblogs.asp.net/sukumarraju/archive/2010/01/17/configuring-web-application-to-utilise-asp-net-application-services-database.aspx
Application Architecture Guide 2.0
My Blog
Twitter
Angelika
Member
22 Points
89 Posts
Re: I can’t login into my Login.aspx page after I copied it via VWD2008 Express into my IIS 5.1....
Jan 05, 2013 07:55 PM|LINK
Dear Sukumar Raju's thank you very much for replay!!! I checked all there… All Web. Admin pages for my web site work perfect and I can test providers, add roles and users… As I wrote before in VWD2008 Express in debugging mode all works right and I am able log into web site on Internet Explorer, but I can’t login into web site on Internet Explorer since I copied web site via VWD2008 Express into my IIS 5.1. I need host my site on my PC at home. I can see in browser my web site pages when I am pressing ‘browse’ from IIS 5.1 Manager, but I can’t log into web site as I did it while debugging in VWD2008 Express. The my <connectionStrings>, <profile>, <providers>, <authorization>, </roleManager> elements of my web.config here: <connectionStrings> <add name="FORESTConnectionString1" connectionString="YOUR-AA1487B56C\SQLEXPRESS;AttachDbFilename=|DataDirectory|\FOREST.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /> <add name="ASPNETDBConnectionString1" connectionString="YOUR-AA1487B56C\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /> <add name="AURORAConnectionString1" connectionString="YOUR-AA2222222C\SQLEXPRESS;AttachDbFilename="C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\FOREST.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient" /> </connectionStrings> <profile> <providers> <add name="FORESTSqProfileProvider" connectionStringName="YOUR-AA2222222C\SQLEXPRESS" applicationName="FOREST" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> <add name="AspNetSqlProfileProvider" connectionStringName="YOUR-AA2222222C\SQLEXPRESS" applicationName="FOREST" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> <add name="MySQLProfileProvider" type="MySql.Web.Profile.MySQLProfileProvider, MySql.Web, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="YOUR-AA2222222C\SQLEXPRESS" applicationName="FOREST"/> </providers> <properties> <add name="UserName" defaultValue=""/> </properties> </profile> <authorization> <allow users="?" /> <allow roles="administrator" /> </authorization> <identity impersonate="true" /> <customErrors mode="On" defaultRedirect="~/ErrorHandler.aspx"> <error statusCode="401" redirect="ErrUnauthorized.aspx"/> <error statusCode="404" redirect="ErrPageNotFound.aspx"/> <error statusCode="500" redirect="ErrServer.htm"/> </customErrors> <siteMap defaultProvider="default"> <providers> <clear/> <add name="default" type="System.Web.XmlSiteMapProvider" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/> </providers> </siteMap> <roleManager enabled="true" cacheRolesInCookie="true" cookieName=".ASPROLES" cookieRequireSSL="true" defaultProvider="FORESTRoleSqlProvider"> <providers> <clear /> <add connectionStringName="FORESTConnectionString1" applicationName="FOREST" name="FORESTRoleSqlProvider" type="System.Web.Security.SqlRoleProvider" /> <add name="AspNetSqlRoleProvider" connectionStringName="FORESTConnectionString1" applicationName="FOREST" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> <add name="AspNetWindowsTokenRoleProvider" applicationName="FOREST" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> <add name="MySQLRoleProvider" type="MySql.Web.Security.MySQLRoleProvider, MySql.Web, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="YOUR-AA2222222C\SQLEXPRESS" applicationName="FOREST"/> </providers> </roleManager> But result the same and no joy …L(( Please help …sukumarraju
All-Star
17307 Points
3057 Posts
Re: I can’t login into my Login.aspx page after I copied it via VWD2008 Express into my IIS 5.1....
Jan 07, 2013 09:14 AM|LINK
Above refer to local SQL Express version of Membership database. Attach your local version of .mdf (Metadatabase files) to SQL Server and update connection strings.
Refer deployment tutorials (on the right hand side) for related articels
http://www.asp.net/web-forms/tutorials/deployment/deploying-web-site-projects/asp-net-hosting-options-cs
Application Architecture Guide 2.0
My Blog
Twitter
Pengzhen Son...
Star
8637 Points
884 Posts
Microsoft
Re: I can’t login into my Login.aspx page after I copied it via VWD2008 Express into my IIS 5.1....
Jan 10, 2013 11:42 AM|LINK
Hi,
I suggest that you consider using the Web Deployment Tool from Microsoft. It was specifically designed to help deploy web applications and updates to those web applications to production IIS.
Hope it can help you.
Feedback to us
Develop and promote your apps in Windows Store
tmorton
All-Star
56556 Points
9751 Posts
ASPInsiders
Moderator
Re: I can’t login into my Login.aspx page after I copied it via VWD2008 Express into my IIS 5.1....
Jan 15, 2013 07:47 PM|LINK
Test.
ASP.NET/IIS.NET Website Manager, Neudesic
Angelika
Member
22 Points
89 Posts
Re: I can’t login into my Login.aspx page after I copied it via VWD2008 Express into my IIS 5.1....
Jan 22, 2013 08:59 PM|LINK
Test