locked
I can’t login into my Login.aspx page after I copied it via VWD2008 Express into my IIS 5.1. RRS feed

  • Question

  • User1863524361 posted
    I need to host ASP.NET website on my personal computer or on server within home pc, please help me…
    
    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.
    
    
    Angelika
    auroran@yandex.ru
    
    

    Sunday, January 27, 2013 4:30 PM

All replies

  • User614805505 posted

    Hi,

    But I can’t login into my Login.aspx page  after I copied it via VWD2008 Express into my IIS 5.1.

    What is the url that you used to login to your self host web site?

    Monday, January 28, 2013 1:15 AM
  • User1863524361 posted
    Hi,
    I am trying to login on
    http://YOUR-COMPUTERNAME:38289/AURORA/Login.aspx 
    http://192.168.1.5:38289/AURORA/Login.aspx
    http://localhost:38289 /AURORA/Login.aspx
    
    Web site it working fine but when I am trying to login I have 404 Error:
    
    
    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 
    
    
    If I try to run ASP.NET SQL Server Setup Wizard I have:
    
    Setup failed.
    
    Exception:
    An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 5120 and the SqlException message is: Unable to open the physical file "C:\Inetpub\wwwroot\AURORA\App_Data\AURORA.mdf". Operating system error 5: "5(failed to retrieve text for this error. Reason: 1815)".
    Unable to open the physical file "C:\Inetpub\wwwroot\AURORA\App_Data\AURORA_log.ldf". Operating system error 5: "5(failed to retrieve text for this error. Reason: 1815)".
    Database 'C:\INETPUB\WWWROOT\AURORA\APP_DATA\AURORA.MDF' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details.
    
    ----------------------------------------
    Details of failure
    ----------------------------------------
    
    SQL Server: 
    Database: [C:\INETPUB\WWWROOT\AURORA\APP_DATA\AURORA.MDF]
    SQL file loaded:
    InstallCommon.sql
    
    Commands failed:
    
    USE [C:\INETPUB\WWWROOT\AURORA\APP_DATA\AURORA.MDF]
    
    
    SQL Exception:
    System.Data.SqlClient.SqlException: Unable to open the physical file "C:\Inetpub\wwwroot\AURORA\App_Data\AURORA.mdf". Operating system error 5: "5(failed to retrieve text for this error. Reason: 1815)".
    Unable to open the physical file "C:\Inetpub\wwwroot\AURORA\App_Data\AURORA_log.ldf". Operating system error 5: "5(failed to retrieve text for this error. Reason: 1815)".
    Database 'C:\INETPUB\WWWROOT\AURORA\APP_DATA\AURORA.MDF' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at System.Web.Management.SqlServices.ExecuteFile(String file, String server, String database, String dbFileName, SqlConnection connection, Boolean sessionState, Boolean isInstall, SessionStateType sessionStatetype)
    
    
    I would be pleased for your help and comments ….
    Sincerely yours
    Angelika
    

    Monday, January 28, 2013 4:41 PM
  • User614805505 posted

    So far, I cannot sure that your url for IIS host testing is correct or not. But you can use the browse menu at IIS management tool to browse your page at browser, which will make sure you have the correct url.

    SQL Exception:
    System.Data.SqlClient.SqlException: Unable to open the physical file 

    For this error, you have to set the permission at Security tab of the file property to allow IIS identity to read and modify. If you cannot see the Security tab, please follow link below.

    http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/acl_sec_tab.mspx?mfr=true

    Monday, January 28, 2013 9:59 PM
  • User1863524361 posted
    I always used ‘the browse menu’ at IIS management tool to browse my page Login.aspx at browser, but I couldn’t login into as ‘visitor‘, despite that this role is enabled in database.
    
    I done set the permission at Security tab of the file property for 
    
    'C:\INETPUB\WWWROOT\AURORA\APP_DATA\
    
    to ‘Full control Modify, Read & Execute, List folder contents, Write’  for ‘Administrators (YOUR-COMPUTERNAME\Administrators)’
    to ‘Modify, Read & Execute, List folder contents, Write’ for ‘ASP.NET Machine Account (YOUR-COMPUTERNAME\ASPNET)’
    
    But it’s not help L … 
    

    Tuesday, January 29, 2013 4:21 PM
  • User614805505 posted

    Hi,

    http://www.htmlforums.com/archive/index.php/t-71310.html

    Try refer to this post.

    Tuesday, January 29, 2013 5:22 PM
  • User-166373564 posted

    Hi Angelika

    You can create a local Web site for hosting an ASP.NET Web application using Internet Information Services (IIS) Manager. You could refer the guide to learn how you can create a local Web site and configure it to run ASP.NET pages.

    Configure Local ASP.NET Web Sites in IIS

    hope it helps you,

    Kind regards

    Saturday, February 2, 2013 1:58 AM
  • User1863524361 posted
    Hi, thanks for link:
    http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/acl_sec_tab.mspx?mfr=true
    and for link:
    http://www.htmlforums.com/archive/index.php/t-71310.html
    
    I found and done all from this link:
    http://support.microsoft.com/kb/271071
    as well, but I still have:
    
    ‘Web site it working fine but when I am trying to login I have 404 Error:
    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 looked at:
    http://msdn.microsoft.com/en-us/library/aa302383.aspx
    and tried find authentication mechanism for Internet applications:
    http://msdn.microsoft.com/en-us/library/aa302398.aspx
    
    
    I Created a Web Application with a Logon Page as hereinto Step 1 and 2:
    http://msdn.microsoft.com/en-us/library/aa302398.aspx
    But since Step 3 all here are very complicated for me … is here have some more clear instruction haw to Login into Web site published and instead of 404 Error to get the message "Logon successful: User is authenticated."?
    Please help …L((
    

    Sunday, February 3, 2013 3:58 PM
  • User614805505 posted

    Can try to hit the web page again then go to Event Viewer and see whether any event log can help for troubleshooting. Try to look at Application log. Maybe this issue caused by the other code which is not related to login module.

    Seem like you are trying to implement you own authentication module. If it is, you should try ASP.NET membership provider, which provide you a robust authentication features and easy to deploy.

    Friday, February 8, 2013 11:48 PM
  • User1863524361 posted
    Thank you very much for replay! 
    I believe that I am trying to implement my own authentication module and I have ASP.NET membership provider into my application and tested it on Web Admin page - all works, but I can’t login into when I am browsing Login page. Maybe need to add some steps  like described here:
    http://aspguy.wordpress.com/2011/07/30/single-sign-on-with-wcf-and-asp-net-custom-membership-provider/
    Maybe trying to implement this ASP.NET membership provider future I done not all what needed …L(((
    Is here are have most simple way to deploy  ASP.NET membership provider?
    
    Friday, February 15, 2013 5:01 PM