New to ASP.NET from PHP

Last post 05-02-2008 1:00 PM by CosmicGirl. 30 replies.

Sort Posts:

  • New to ASP.NET from PHP

    01-22-2007, 4:23 PM

    Hi there,

    I am very very new to asp.net and iis server.  I have been in PHP, Apache, Mysql for the past 3 years and now i have changed jobs to go into the .net field.  I am really excited.  I downloaded the express edition of the required software.

    first mistake, i loaded net framework and c#, sql express edition first and then i installed IIS from windows.  After that i couldnt execute my scripts.  after some research on net, it turns out that i have to install IIS first and then load .net framework.  So currently i am doing that.  Am uninstalling everything and gonna load all things in order now.

     Question:  Why do i have to load iis first and then .net?
    Any other mistake that i should look out for (since i am a newbie)?

    I guess i will need lots of help in the beginning but once i understand the basic, then there is no looking back.

    cheers
     

    "Its not that i took that much time, its just that it took me that much time" Me, 2005, During a production briefing.
  • Re: New to ASP.NET from PHP

    01-22-2007, 4:30 PM

    If IIS is already installed, the .NET Framework detects that and registers itself for use in IIS.  If not, you need to register it.  Don't reinstall, run aspnet_regiis.exe -i and you'll be fine.

    Jeff

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
  • Re: New to ASP.NET from PHP

    01-22-2007, 4:55 PM

    sorry, i already uninstalled them and have reinstalled the iis and .net.

    and then i mapped a new directory to the folder where my files are.

    Funny thing is that when i do localhost in IE, it doesnt ask for login but when i do localhost on firefox, i have to login as administrator and only then i can see the localhost.  any way around this issue?

    thanks
     

    "Its not that i took that much time, its just that it took me that much time" Me, 2005, During a production briefing.
  • Re: New to ASP.NET from PHP

    01-22-2007, 5:18 PM

    ok now this problem i just got.

    If the file is .asp, it runs fine.   but if i rename the file to aspx it never loads.  the browser circle keeps going round and doesnt stop.  Even all aspx files are not executing but asp files are?  how can i solve this issue?

    thanks 

    "Its not that i took that much time, its just that it took me that much time" Me, 2005, During a production briefing.
  • Re: New to ASP.NET from PHP

    01-22-2007, 5:36 PM
    jeff@zina.com:

    If IIS is already installed, the .NET Framework detects that and registers itself for use in IIS.  If not, you need to register it.  Don't reinstall, run aspnet_regiis.exe -i and you'll be fine.

    Jeff

    ok i did aspnet_regiis.exe -i from cmd.  but pas do give full information such as going to  C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and then running the command .  As i stated, i am very new to this.  I had to search for the aspnet_regiis.exe file in my computer.

    ok i ran the command and got this.

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -i
    Start installing ASP.NET (2.0.50727).
    ................................................................
    Finished installing ASP.NET (2.0.50727).
    Setup has detected some errors during the operation. For details, please read th
    e setup log file C:\DOCUME~1\CHANDR~1\LOCALS~1\Temp\ASPNETSetup_00006.log

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -i
    Start installing ASP.NET (2.0.50727).
    ..............................................................
    Finished installing ASP.NET (2.0.50727).
    Setup has detected some errors during the operation. For details, please read th
    e setup log file C:\DOCUME~1\CHANDR~1\LOCALS~1\Temp\ASPNETSetup_00007.log

     

    yes yes i know,  i made a mistake my running it twice..  i opened the log file and the last bit is this.  i dont understand this.

     

    2007-01-23 10:28:44                Starting    Shutting down service
    2007-01-23 10:28:44                Success     Shutting down service
    2007-01-23 10:28:44                Starting    Waiting for service to shut down
    2007-01-23 10:29:43                Failure     Waiting for service to shut down: WaitForServiceState failed with HRESULT 8007041d: 'The service did not respond to the start or control request in a timely fashion.  '
    2007-01-23 10:29:43            Failure     Stopping service: StopSingleService failed with HRESULT 8007041d: 'The service did not respond to the start or control request in a timely fashion.  '
    2007-01-23 10:29:43        Failure     Stopping W3SVC: StopService failed with HRESULT 8007041d: 'The service did not respond to the start or control request in a timely fashion.  '
    2007-01-23 10:29:43    Failure     Restarting W3SVC: RestartW3svc failed with HRESULT 8007041d: 'The service did not respond to the start or control request in a timely fashion.  '

     

    HELP please....

    thanks 

    "Its not that i took that much time, its just that it took me that much time" Me, 2005, During a production briefing.
  • Re: New to ASP.NET from PHP

    01-22-2007, 7:57 PM

    First do a cold bot and see if the service starts.  And what OS are you running on?  Server 2003 needs ASP.NET addeed as a web service for example.

    Jeff

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
  • Re: New to ASP.NET from PHP

    01-22-2007, 8:32 PM
    jeff@zina.com:

    First do a cold bot and see if the service starts.  And what OS are you running on?  Server 2003 needs ASP.NET addeed as a web service for example.

    Jeff

     

    i rebooted the system but still the same issue.  I am using windows XP prof.  I have even loaded IIS 6 now but still the same issues.  i cant run aspx files but i can run asp files. 

    "Its not that i took that much time, its just that it took me that much time" Me, 2005, During a production briefing.
  • Re: New to ASP.NET from PHP

    01-22-2007, 9:38 PM
    Answer
    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
  • Re: New to ASP.NET from PHP

    01-22-2007, 10:23 PM

    sorry but the above link wasnt of help.  its about server 2003.  I am using XP.

     I did aspnet_regiis -i and found this error.

    007-01-23 15:16:54                Failure     Waiting for service to shut down: WaitForServiceState failed with HRESULT 8007041d: 'The service did not respond to the start or control request in a timely fashion.  '
    2007-01-23 15:16:54            Failure     Stopping service: StopSingleService failed with HRESULT 8007041d: 'The service did not respond to the start or control request in a timely fashion.  '
    2007-01-23 15:16:54        Failure     Stopping W3SVC: StopService failed with HRESULT 8007041d: 'The service did not respond to the start or control request in a timely fashion.  '
    2007-01-23 15:16:54    Failure     Restarting W3SVC: RestartW3svc failed with HRESULT 8007041d: 'The service did not respond to the start or control request in a timely fashion.  '


    I have done repair on .net 2 but still i cant run aspx files.

    please help on this. 

    "Its not that i took that much time, its just that it took me that much time" Me, 2005, During a production briefing.
  • Re: New to ASP.NET from PHP

    01-23-2007, 5:53 AM
    • Loading...
    • Mr^B
    • Joined on 02-12-2006, 11:38 AM
    • Posts 482

    Looks as if IIS isn't shutting down to let aspnet_regiis do its installation work.

    Can you try manually shutting down IIS?

    CMD Prompt -> IISRESET /STOP

    And then try installing it, then restart IIS (CMD -> IISRESET /START)

    If IIS isn't shutting down properly, check the Event Viewer and see if there's any error messages in there that make any sense.

     

    MCSD.Net
  • Re: New to ASP.NET from PHP

    01-23-2007, 5:54 AM

    Check the event log for errors and look them up at eventid.net or Google.  Try the forums at www.iis.net for IIS support.

    Jeff

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
  • Re: New to ASP.NET from PHP

    01-23-2007, 4:12 PM
    Mr^B:

    Looks as if IIS isn't shutting down to let aspnet_regiis do its installation work.

    Can you try manually shutting down IIS?

    CMD Prompt -> IISRESET /STOP

    And then try installing it, then restart IIS (CMD -> IISRESET /START)

    If IIS isn't shutting down properly, check the Event Viewer and see if there's any error messages in there that make any sense.

     

    I tryed this.  the service stopped and started properly.

     

    C:\Documents and Settings\chandra_p>IISRESET /STOP

    Attempting stop...
    Internet services successfully stopped

    C:\Documents and Settings\chandra_p>IISRESET /START

    Attempting start...
    Internet services successfully started

     

      i checked the events log, no error reported.  I again did aspnet_regiis -i and it worked fine with no problems. 

    C:\Documents and Settings\chandra_p>cd c:\windows\microsoft.net\framework\v2.0.50727\

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -i
    Start installing ASP.NET (2.0.50727).
    ........
    Finished installing ASP.NET (2.0.50727).
     

    Then i went to the MMC and went to the websites.  I right clicked the postinfo.html and selected browse and the files showed up fine on the localhost.  (this file is by default in the wwwroot folder).  i created a test.aspx file in c# express and right clicked and selected browse.  the browse opened but it looked like as if its gone in an endless loop.

     

    test.aspx

    ************************
    <%@ Page Language="C#" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">

    </script>

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
       
        </div>
        </form>
    </body>
    </html>

    ************************ 

    Bottom line, none of the aspx files runs.  I have so far done all that is required to get my aspx files running but no success yet.  Do i have to change some config file or something?
    "Its not that i took that much time, its just that it took me that much time" Me, 2005, During a production briefing.
  • Re: New to ASP.NET from PHP

    01-24-2007, 1:43 PM
    • Loading...
    • Mr^B
    • Joined on 02-12-2006, 11:38 AM
    • Posts 482
    Is the ASP.Net tab for the website properties set to use the 2.0.50727 framework?
    MCSD.Net
  • Re: New to ASP.NET from PHP

    01-24-2007, 2:49 PM
    yes it is. set to version 2.0.50727
    "Its not that i took that much time, its just that it took me that much time" Me, 2005, During a production briefing.
  • Re: New to ASP.NET from PHP

    01-24-2007, 9:14 PM
    please help.  this problem still exist.
    "Its not that i took that much time, its just that it took me that much time" Me, 2005, During a production briefing.