We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

Publish ASP.NEt web page with IIS 5.1RSS

16 replies

Last post Mar 21, 2007 10:07 AM by tomkmvp

  • Publish ASP.NEt web page with IIS 5.1

    Feb 14, 2007 02:04 PM|yyokota|LINK

    Hi, I am trying to publish my first web page by IIS 5.1.  I could do that if the default is xxxx.htm, but not if it is xxxx.aspx.  I would like to know how to publish my ASP.NET website on the internet using IIS.

    How I did with .htm webpage:

    *  IIS 5.1 is in Windows XP Pro.  I upgraded from Windows XP home.

    *  I downloaded .NET 2.0 framework.  I did not do anything with this. 

    *  I created the Web page by Visual Web Developer Express Edition.

    *  My local folder is C:\Inetpub\wwwroot\testASP\Default.htm

    *  My IIS path is http://(computername)/testASP/

    I can see this on the internet.  In the "textASP" file, I have several .aspx files.  Thoese run ok with the local host.  But this one does not work:

    http://(computername)/testASP/Default.aspx

     

     

    publish

  • Re: Publish ASP.NEt web page with IIS 5.1

    Feb 14, 2007 02:31 PM|tomkmvp|LINK

    Can you please be more detailed about what "does not work" means?  Is there an error message?
  • Re: Publish ASP.NEt web page with IIS 5.1

    Feb 14, 2007 04:44 PM|yyokota|LINK

    <div class=ForumReplyToPostArea>>Can you please be more detailed about what "does not work" means?  Is there an error message? </div> <div class=ForumReplyToPostArea> </div> <div class=ForumReplyToPostArea>The page just says, "The page cannot be found".  Again, the path was:</div> <div class=ForumReplyToPostArea> </div> <div class=ForumReplyToPostArea>http://(myComputerName)/testAsp/Default.aspx</div> <div class=ForumReplyToPostArea> </div> <div class=ForumReplyToPostArea>It looks like any .htm file can be posted on the internet, but .aspx files can not be posted on the internet... I am wondering if I need any special set up for IIS, ASP.NET, .NET or else?</div> <div class=ForumReplyToPostArea> </div> <div class=ForumReplyToPostArea>I created "testAsp" folder.  This folder now contains Default.htm, Default.aspx, and other several folders.  When I open Default.aspx within Web Developer 2005 Express Edition, it works.  The fils is a ASP.NET file containing form.  The page takes the input of the user's name, and then displays it as a label.  </div> <div class=ForumReplyToPostArea> </div>
  • Re: Publish ASP.NEt web page with IIS 5.1

    Feb 14, 2007 04:54 PM|tomkmvp|LINK

    A 404 error?  Are you running URLScan? 

    You can access http://mycomputername/testasp/default.htm over the internet?

  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 15, 2007 01:31 PM|kiwi_cyh|LINK

    Hi,

    I have the same problem.

    it works with http://localhost/Testing/Default.aspx

     but my IIS behind a router, I installed no-ip and port forwarding port 80.

    http://dns.com/Testing/Default.aspx

    but it still does not work. Can anyone help?
     

    kiwi_cyh
  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 15, 2007 02:46 PM|tomkmvp|LINK

    Is your ISP blocking port 80?  Most of them do.  Try a different port.
  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 15, 2007 03:39 PM|thomad|LINK

    In XP SP2 the firewall is also blocking port 80.  Have a look at the following article:

    http://www.windowsecurity.com/articles/Customizing-Windows-Firewall.html

    Hope this helps.

     

    Thomas Deml
    Group Program Manager
    Internet Information Services
    Microsoft Corp.
  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 15, 2007 07:44 PM|kiwi_cyh|LINK

    Thanks for your replied. I tried port 81. is still the same... :(

     http:/localhost:81/AJAX/Default.aspx     //works

    http://mydnsname.com:81/AJAX/Default.aspx    //not working

    kiwi_cyh
  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 16, 2007 08:49 AM|tomkmvp|LINK

    Did you reconfigure your router correctly?

    What happens if you ping mydnsname.com?  Does it give the right IP?

  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 16, 2007 08:53 AM|kiwi_cyh|LINK

    will try later.. thanks anyway!
    kiwi_cyh
  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 18, 2007 09:29 AM|kiwi_cyh|LINK

    I tried, it give the correct IP address..It still does not work, why?
    kiwi_cyh
  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 20, 2007 08:46 AM|tomkmvp|LINK

    What happens exactly?
  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 20, 2007 08:43 PM|kiwi_cyh|LINK

    I changed back to the original port 80.

    http://localhost/AJAX/Default.aspx //work

    http://mydnsname/AJAX/Default.aspx

    //not working, and displayed Object Not Found The requested URL '/AJAX/Default.aspx' was not found on the RomPager server. Return to last page

    kiwi_cyh
  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 21, 2007 08:08 AM|tomkmvp|LINK

    I didn't see a clear response from you regarding Windows Firewall - are you running that?  Are you sure your router is configured correctly?  If it works from http://localhost/ then IIS is working correctly and this appears to be a networking issue. What's RomPager?
  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 21, 2007 09:09 AM|kiwi_cyh|LINK

    Hi,

    I'm not sure what's RomPager server.

    But when try to access http://mydns/AJAX/Default.aspx   it displayed this error message.

    Object Not Found

    The requested URL '/AJAX/Default.aspx' was not found on the RomPager server.

    Return to last page

     

    kiwi_cyh
  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 21, 2007 10:04 AM|tomkmvp|LINK

    Apparently then something is blocking IIS and the request is never reaching IIS.
  • Re: Publish ASP.NEt web page with IIS 5.1

    Mar 21, 2007 10:07 AM|tomkmvp|LINK

    Apparently RomPager is an embedded web server on a network device, perhaps your router?  A simple Google search found that info.  It looks like you do not have your router configured properly.  Please consult your router's documentation on how to configure port forwarding for web traffic and perhaps to disable remote administration.