« Previous Next »

Thread: Why am I unable to run ASP.NET examples on my computer

Last post 10-16-2009 1:04 AM by kzazar. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 10-09-2009, 6:39 AM

    • kzazar
    • Not Ranked
    • Joined on 10-09-2009, 4:03 AM
    • Posts 5

    Why am I unable to run ASP.NET examples on my computer

    I have installed IIS 7 and configured it as you did in your video tutorial. When I try to run examples from your ASP.NET video tutorials, my computer gives me the message about the localhost and opens IE, but with a mesagge that it can't display this webpage. I write exactly the same code as you have in your video tutorials. Can someone explain me where is the problem?

  • 10-09-2009, 12:28 PM In reply to

    Re: Why am I unable to run ASP.NET examples on my computer

    Can you post the logs from the request?

    Secondly, can you browse a basic page via localhost?

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 10-09-2009, 12:55 PM In reply to

    • kzazar
    • Not Ranked
    • Joined on 10-09-2009, 4:03 AM
    • Posts 5

    Re: Why am I unable to run ASP.NET examples on my computer

    I must say that I am a beginner so I don't know what logs are. I was working on some other examples where I saved ASP file in a folder that I created in wwwroot and this worked. But when I'm working in Visual Studio or Visual Web Developer the program saves everything by itself. When I enter localhost in the browser I get IIS webpage but I don't know how to run the deafult page that is saved in IIS.

  • 10-14-2009, 2:05 AM In reply to

    Re: Why am I unable to run ASP.NET examples on my computer

    Hi,

    You can set default document for the default website:
    Default Document <defaultDocument>
    http://www.iis.net/ConfigReference/system.webServer/defaultDocument

    Below are some additional information, hope helpful for you:

    Serving New Content
    http://learn.iis.net/page.aspx/372/serving-new-content/

    How to: Publish Web Sites (Visual Studio)
    http://msdn.microsoft.com/en-us/library/20yh9f1b(VS.80).aspx

    If you have any problem, please update here.

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 10-14-2009, 9:33 AM In reply to

    • kzazar
    • Not Ranked
    • Joined on 10-09-2009, 4:03 AM
    • Posts 5

    Re: Why am I unable to run ASP.NET examples on my computer

    Thanks for your answer. When I was watching this video I saw that some files are missing from my wwwroot directory. I think that I have erased them by mistake when I was trying to run some examples. How can I restore these files: _vti_inf.html, postinfo.html, web.config and images folder. I have tryed to reinstall IIS but these files are still missing. Can you send me those files by mail so that I can copy them to wwwroot.

  • 10-14-2009, 10:45 PM In reply to

    Re: Why am I unable to run ASP.NET examples on my computer

    Hi,

    Those files are not necessary for you to running samples. If you really need them, you can restore them by performing the following steps:

    1. Uninstall IIS
    2. Uninstall WAS (Windows Process Activation Service)- WAS feature package is dependent package for the IIS feature package.
    3. Reinstall IIS

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 10-15-2009, 1:37 AM In reply to

    • kzazar
    • Not Ranked
    • Joined on 10-09-2009, 4:03 AM
    • Posts 5

    Re: Why am I unable to run ASP.NET examples on my computer

    Thanks for your answer. When I watched this video I did as they explained in the examples and the programs worked. But I couldn't run programs directly from the Visual Studio but I copied them in the Visual Studio to the folder in wwwroot. Then I was able to run them from IIS manager. When I try to run them from Visual Studio the program gives me the message about the localhost and opens IE but with a message that webpage cannot be displayed.

    As considering the missing files there are for different IIS programs in the control panel. Which do I have to uninstall? Where do I find WAS? I don't see it in the list of programs in the control panel.

  • 10-15-2009, 11:46 PM In reply to

    Re: Why am I unable to run ASP.NET examples on my computer

    Hi,

    You can uninstall WAS via "Turn On or Off Windows Features"(Windows Vista) or "Server Manager->Features"(Windows Server 2008).

    Actually, visual Studio comes with a built-in Web development server that enables you to build and test applications without a dependency on IIS. For more detailed information, you can refer to:
    Web Servers in Visual Web Developer 
    http://msdn.microsoft.com/en-us/library/9d9ats98(VS.80).aspx

    Since you can run  them from IIS manager by coping them to wwwroot folder, this issue should not caused by IIS server.  I’d suggest you get further support on ASP.NET forum. The engineers and community members there help you in a more efficient way.

    Additionally, if you want to test your sites using IIS, you can refer to the walkthrough in the following article:
    Using Visual Studio 2008 with IIS 7.0
    http://learn.iis.net/page.aspx/387/using-visual-studio-2008-with-iis-70/

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 10-16-2009, 1:04 AM In reply to

    • kzazar
    • Not Ranked
    • Joined on 10-09-2009, 4:03 AM
    • Posts 5

    Re: Why am I unable to run ASP.NET examples on my computer

    I have this trial version of Visual Studio so I am not sure if there is a Web development server in this version. I am also not able to run examples in Visual Web Developer express edition. I also don't have Web site administration tool. Do these features come only in full versions of software?

Page 1 of 1 (9 items)
Microsoft Communities