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

Internet Information Services ( IIS ) 10 Manager.RSS

16 replies

Last post Feb 16, 2021 01:57 AM by samwu

  • Internet Information Services ( IIS ) 10 Manager.

    Feb 03, 2021 12:40 PM|Rewillis1|LINK

    Two days ago, I was attempting to serve up a web page in IIS 10, consisting of HTML5 code and Razor code.  I received an HTTP 500 error code.  After searching the Internet, I found a suggested solution which involved typing in "ServiceModelReg -i" at the Microsoft Windows 10 command prompt ( in elevated mode ).  Now, I receive a "Server error in '/' application" error message when I attempt to serve up my web pages in IIS.  How is this problem solved?

  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 03, 2021 07:54 PM|lextm|LINK

    For any serious discussion, you have to reveal the actual error page (a screen shot of the whole page with confidential information masked out).

    Lex Li
    Want to have a chat on the issues you meet? Book an appointment at https://buy.stripe.com/cN24ia0yi7sAdIA7sv
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 04, 2021 02:10 AM|samwu|LINK

    Hi Rewillis1,

    Rewillis1

    I was attempting to serve up a web page in IIS 10, consisting of HTML5 code and Razor code.  I received an HTTP 500 error code. 

    Rewillis1

    I receive a "Server error in '/' application" error message when I attempt to serve up my web pages in IIS.

    Please post detailed information about you error, such as error message, error code and sub code.

    Rewillis1

    I found a suggested solution which involved typing in "ServiceModelReg -i" at the Microsoft Windows 10 command prompt ( in elevated mode ). 

    The ServiceModelReg -i means install WCF and WF components specified with –c. are you sure that this problem is caused by WCF and WF components?

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 04, 2021 08:15 PM|Rewillis1|LINK

    lextm, this is the error message I now receive when I attempt to serve up my web pages in IIS 10 ( after having typed "ServiceModelReg -i" at the Microsoft Windows 10 command prompt ( in elevated mode )).  Please see the link below for additional details:

    http://test1.lessont.ddnsfree.com/tempsnip_IIS_10_error_1.jpg .

  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 04, 2021 08:23 PM|Rewillis1|LINK

    samwu, no, I am not sure that the problem is caused by WCF and WF components.  I found a suggestion on the Internet for typing the "ServiceModelReg -i" command, at the Microsoft Windows 10 command prompt, in response to an HTTP 500 error code.  After having typed the "ServiceModelReg -i" command, I am unable to serve up my web pages in IIS 10.  Please see the error message at the following link:

    http://test1.lessont.ddnsfree.com/tempsnip_IIS_10_error_1.jpg

  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 05, 2021 03:03 AM|samwu|LINK

    Hi Rewillis1,

    Rewillis1

    http://test1.lessont.ddnsfree.com/tempsnip_IIS_10_error_1.jpg

    There seems to be a problem with the link you provided, I can’t access it, you can refer to this link for how to post a image.

    https://forums.asp.net/t/2162725.aspx

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 05, 2021 01:17 PM|Rewillis1|LINK

    samwu, please try the link, below:

    https://i.stack.imgur.com/s1Ryt.png

  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 06, 2021 02:26 AM|lextm|LINK

    That's a typical case for ASP.NET where an unhandled exception occurred and crashed the web app.

    You have to modify your code to handle such exceptions. Hints are in articles like https://docs.microsoft.com/en-us/aspnet/web-forms/overview/older-versions-getting-started/deploying-web-site-projects/processing-unhandled-exceptions-cs 

    Lex Li
    Want to have a chat on the issues you meet? Book an appointment at https://buy.stripe.com/cN24ia0yi7sAdIA7sv
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 06, 2021 05:40 PM|Rewillis1|LINK

    lextm, I am not sure if I have the time to do all of this.  I am not interested in writing code to send an e-mail message to a developer to inform him or her of an error.  I just need to know how to get my web pages served back up in IIS 10.  Is there not a more straightforward way to solve my problem?

  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 08, 2021 08:42 AM|samwu|LINK

    Hi Rewillis1,

    Rewillis1

    https://i.stack.imgur.com/s1Ryt.png

    From the link you provided, I did not find 500 related error messages, try to enable detailes of this error message, we need more detailed information to solve the problem.

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 10, 2021 03:24 AM|Rewillis1|LINK

    samwu, after editing the XML code in the "Web.config" file for one of my IIS 10 web pages, as shown below:

         "<configuration>

                <system.web>

                      <customErrors mode="Off"/>

                </system.web>

          </configuration>,"

    and browsing that IIS 10 web page, the error details are produced, as shown in the following two links:

    https://i.stack.imgur.com/xHqEx.png

    https://i.stack.imgur.com/ihc0A.png

    Let me know if this helps.  Thank you.

  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 11, 2021 06:30 AM|samwu|LINK

    Hi Rewillis1,

    We can get this error can occur when there are multiple versions of the .NET Framework on the computer that is running IIS, and IIS was installed after .NET Framework 4.0 or before the Service Model in Windows Communication Foundation was registered from your image, you need to register the correct version of ASP.NET.

    1. On the computer that is running Microsoft Dynamics NAV Web Server components, open a command prompt as an administrator as follows:

        a. From the Start menu, choose All Programs, and then choose Accessories.
        b. Right-click Command Prompt, and then choose Run as administrator.

    2. At the command prompt, type the following command to change to the  Microsoft.NET\Framework64\v4.0.30319 folder, and then press Enter.

    cd\Windows\Microsoft.NET\Framework64\v4.0.30319

    3. At the command prompt, type the following command, and then press Enter.

    aspnet_regiis.exe -iru

    4. At the command prompt, type the following command, and then press Enter.

    iisreset

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 13, 2021 06:52 PM|Rewillis1|LINK

    samwu, I do not have Microsoft Dynamics NAV Web Server installed on my Microsoft Windows 10 ( Home ) Edition operating system.  Is it okay if I begin with step number "2" in your solution given above?

  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 13, 2021 09:18 PM|Rewillis1|LINK

    samwu, I went ahead and tried your solution starting from step 2.  I received an error message in my Microsoft Windows 10 ( Home ) Edition command prompt, as shown in the link below:

    https://i.stack.imgur.com/lAK0E.png .

    I am still unable to serve up my web pages in IIS 10.  What would you suggest that I do now?

  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 13, 2021 09:56 PM|Rewillis1|LINK

    samwu, I followed the instructions on the error message, given at the Microsoft Windows 10 ( Home ) Edition command prompt, as shown in the link in my previous posting.  I checked everything under Microsoft.NET 4.8, under "Turn Windows Features On/Off," restarted my personal computer, and IIS 10 is now serving up my web pages again.  Thank you for all of your help.

  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 14, 2021 12:14 AM|Rewillis1|LINK

    samwu, there is another problem.  One of my web pages, with hyperlinks to ".mp4" video files, is being served up in IIS 10 incorrectly.  When I hover the mouse over the hyperlinks in the web page, the video files are shown with ".wmv" file types.  However, when I navigate to the directory where the video files are located, and check their properties, they are correctly shown with the ".mp4" file type.  After searching the Internet, I found a source which suggested adding the following XML code in the "Web.config" file associated with the above-referenced IIS 10 web page:

         "<system.webServer>

                <staticcontent>

                       <mimemap fileExtension=".mp4" mimetype="video/mp4"></mimemap>

                </staticcontent>

          </system.webServer> ."

    When I attempt to serve up my web page after adding the above-given XML code, I receive a 500 HTTP error.  How do I solve this problem?

  • Re: Internet Information Services ( IIS ) 10 Manager.

    Feb 16, 2021 01:57 AM|samwu|LINK

    Hi Rewillis1,

    Rewillis1

    samwu, there is another problem.  One of my web pages, with hyperlinks to ".mp4" video files, is being served up in IIS 10 incorrectly.  When I hover the mouse over the hyperlinks in the web page, the video files are shown with ".wmv" file types.  However, when I navigate to the directory where the video files are located, and check their properties, they are correctly shown with the ".mp4" file type.  After searching the Internet, I found a source which suggested adding the following XML code in the "Web.config" file associated with the above-referenced IIS 10 web page:

         "<system.webServer>

                <staticcontent>

                       <mimemap fileExtension=".mp4" mimetype="video/mp4"></mimemap>

                </staticcontent>

          </system.webServer> ."

    When I attempt to serve up my web page after adding the above-given XML code, I receive a 500 HTTP error.  How do I solve this problem?

    This is a new question, please post it in new thread.

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >