Tag Archives: iis

[Solved] An error occurred while processing your request…enable the Development environment by setting …

When a web project is deployed to the local machine, an exception occurs when accessing:

Error.
An error occurred while processing your request.
Request ID: |ee4a30bd-4030df869db691a6.

Development Mode
Swapping to Development environment will display more detailed information about the error that occurred.

The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app.

 

Reason for the error:

The project itself uses the .netcore 3.1 framework, published to the IIS web.config, missing the ASPNETCORE_ENVIRONMENT configuration.

This error is displayed, meaning that the project itself reported an error, IIS thinks you can set the development version (Development) to see more detailed exception information, but you do not configure ASPNETCORE_ENVIRONMENT, so you can not think that this is the development version, you need to add, in order to show you the specific cause of the exception. So the configuration needs to be added.

Solution:
In the <aspNetCore> node of IIS web.config, add the ASPNETCORE_ENVIRONMENT configuration as follows.

<aspNetCore processPath="dotnet" arguments=".\IndustryWeb.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" >
  <environmentVariables>
    <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
  </environmentVariables>
</aspNetCore>

IIS Web Deploy Website Error: HTTP error 500.19 – Internal Server Error

HTTP error 500.19-Internal Server Error
The requested page cannot be accessed because the relevant configuration data for the page is invalid.

Detailed error information:

Module: IIS Web Core
Notice: BeginRequest
error code: 0x800700b7
Configuration error: When the unique key attribute “name” is set to “ScriptHandlerFactory”, duplicate collection items of type “add” cannot be added
Because the child site inherits the web.config of the parent site

Because the child site inherits the web.config of the parent site

  <location path="." allowOverride="true" inheritInChildApplications="false">
  /* Wrap <system.web> with location in the web.config file
    </system.web>
*/
// If it doesn't work, wrap all configurations with the <add> attribute in location
 
  </location>

For example: system.web, system.webServer, ApplicationConfiguration and other configuration
locations with add attributes only need to be written once

Make the subsite not inherit the web.config of the parent site

Ies HTP to 500.19 – Internal Server

The errors are as follows:
repair method:

    add the permission of everyone to the folder (I can solve it successfully through this method)
    add the necessary IIS function

    generally, these two moves can solve the problem! If there is a good way, welcome to comment

530 user cannot log in. Problem connecting to FTP server

After the 2008 server builds FTP, connect FTP with FlashFxp and prompt 530 User cannot log in.
But no matter how hard I tried to confirm it, the account password was definitely correct.
After looking up information on the Internet, I found that it was a problem of FTP authentication. The FTP authentication of IIS manager enabled both basic and anonymous authentication, and then it was very hot

HTTP Error 401.1 – Unauthorized:Access is denied due to invalid credentials

Phenomenon: The site is set as AD integrated authentication, but when accessing it, it is still prompted to enter the account password. An error occurred three times later.
Solution: in C: \ Inetpub \ Adminscripts run below: cscript adsutil. VBS set w3svc/NTAuthenticationProviders “NTLM” modify the authentication mechanism.
 
The text reads as follows:
http://support.microsoft.com/kb/871179
 
 
Ok when trying to Access a site that’s part of the IIS6.0 application pool, you get an Error message: “HTTP Error 401.1 – Access is denied due to Invalidcredentials” (HTTP Error 401.1 – Unauthorized:Access denied due to Invalidcredentials)
See the products this article applies to
Expand all | close all
symptoms
When you try to access a Microsoft Internet Information Service (IIS) 6.0 site configured to use only integrated Windows authentication, you are prompted for user credentials. .
When you try to access a Microsoft Internet Information Service (IIS) 6.0 site configured to use only integrated Windows authentication, you are prompted for user credentials. When you try to log in, you will receive another login prompt. After three login attempts, you receive the following error message:
HTTP error 401.1 – unauthorized: Access denied due to invalid credentials.
Back to the top
why
This problem can occur if an IIS 6.0 web site is part of an IIS application pool. The application pool runs under either a local account or a domain user account. The site is configured to use only integrated Win…
This problem can occur if:
· The IIS 6.0 site is part of the IIS application pool.
· Application pools run under local accounts or domain user accounts.
· The site is configured to use only integrated Windows authentication.
In this case, Kerberos authentication may not work when an integrated Windows authentication attempt is made to use Kerberos. To use Kerberos authentication, the service must register the service principal name (SPN) of the service under the account in the Active Directory Directory service (the account used to run the service). By default, Active Directory registers the computer name of the network’s basic input/output system (NetBIOS). Active Directory also allows the use of Kerberos for network services or local system accounts.
Back to the top
The solution
If this problem occurs while running the application pool under a local account, follow the steps in the Alternative Methods section. To resolve this problem when running the application pool under a domain user account, use the NetBIOS name and…
If this problem occurs while running the application pool under a local account, follow the steps in the Alternative Methods section. To resolve this problem when running the application pool under a domain user account, set the HTTP SPN using the NetBIOS name and the fully qualified domain name (FQDN) of the domain user account used to run the application pool. To do this, follow these steps on the domain controller:

important note: the service SPN can only be associated with one account. Therefore, if you use this suggested solution, any other application pool running under different domain user accounts cannot be used solely with integrated Windows authentication.
1. Install the setspn. exe tool. To obtain the Microsoft Windows 2000 version of this tool, visit the following Microsoft web site:
http://www.microsoft.com/downloads/details.aspx?FamilyID=5fd831fd-ab77-46a3-9cfe-ff01d29e5c46& displaylang=en (http://www.microsoft.com/downloads/details.aspx?FamilyID=5fd831fd-ab77-46a3-9cfe-ff01d29e5c46& displaylang=en)
Microsoft WindowsServer 2003 version of the setspn. exe command line tool is provided in WindowsServer 2003 SupportTools (WindowsServer 2003 SupportTools) included on WindowsServer 2003 CD. To install these Tools, double-click the Suptools.msi file in the Support/Tools folder.
2. Open a command prompt window and change to setspn.exe’s installation directory.
At the command prompt, type the following command. After typing each command, press Enter:
setspn.exe -a http/IIS_computer’s_NetBIOS_nameDomainName\UserName

setspn.exe -a http/IIS_computer’s_FQDN DomainName\UserName
Note: UserName is the user account used to run the application pool.
After setting the SPN of the HTTP service to the domain user account used to run the application pool, you can successfully connect to the web site without prompting you for user credentials.
Back to the top
Alternative methods
In cases where you have multiple pools of applications running under different domain user accounts, IIS must be forced to use NTLM as an authentication mechanism to resolve this issue (if you want to use only integrated Windows…
In cases where you have multiple pools of applications running under different domain user accounts, IIS must be forced to use NTLM as an authentication mechanism (if you want to use only integrated Windows authentication) to resolve this issue. To do this, follow these steps on the server where IIS is running:
1. Open a command prompt window.
2. Locate and change the directory containing adsutil.vbs file. By default, this directory is C:\Inetpub\Adminscripts.
3. Type the following command, then press Enter:
cscript adsutil.vbs set w3svc/NTAuthenticationProviders”NTLM”
4. To verify NtAuthenticationProviders metadata attribute is set to NTLM, please type the following command, and then press Enter:
cscript adsutil.vbs get w3svc/NTAuthenticationProviders
The following text should be returned:

NTAuthenticationProviders       : (STRING) "NTLM"

Back to the top
state
This behavior is caused by design.
This behavior is caused by design.
Back to the top
For more information
If you set the SPN using only the FQDN of the server on which IIS is running, you will be prompted for user credentials after 30 minutes. Because Internet Explorer caches the domain name system…
If you set the SPN using only the FQDN of the server on which IIS is running, you will be prompted for user credentials after 30 minutes. There is a 30-minute timeout due to the way Internet Explorer caches domain name system (DNS) information. After 30 minutes, Internet Explorer will revert to the NetBIOS name. Therefore, you must also ensure that the SPN is registered using the NetBIOS name of the server on which IIS is running, so that you are not prompted for user credentials. For more information, click the article number below to view the corresponding article in the Microsoft Knowledge base:
Internet Explorer 263558 (http://support.microsoft.com/kb/263558/) how to use the cache of DNS host item
To verify the registered SPN for the user account used to run the application pool, open a command prompt window, type the following command from the setspn.exe installation directory, and then press Enter:
setspn.exe -l UserName
A list of registered SPNS for the user account is returned.

How to solve the error loading media: file could not be played in jwplay

Recent development projects need to use the JWplayer plugin to play videos, but no matter which version or what video is replaced, it always prompts Error loading media: File could not be played incorrectly. At first, I thought it was video coding, but after a lot of work, I still couldn’t solve the problem. Later, I accidentally found that IIS does not support. Mp4 format playback problem.
The IIS default configuration does not add an MP4 file, which results in opening an MP4 file reporting 404. The solution to this problem is simple, as follows:
1. Open IIS Manager


2. Double-click on the MIME type and click Add 22 in the upper right corner of the image below

3. Add, extension mp4, type Video/MP4


4. Click OK
is a perfect solution to the problem

To solve the problem that fastcgi process often fails recently, an unknown fastcgi error occurs

The questions are as follows:

Solutions:
Application pool -& GT; Advanced Setting -& GT; Identity: Change the default ApplicationPoolIdentify to LocalSystem.
Reference: https://github.com/Microsoft/PTVS/issues/2024

 

Install wampserver and prompt could not execute menu item internal error

Cause of problem: IIS was installed and port 80 was occupied
Solution: Change the port of WAMPServer or uninstall IIS

Uninstall the IIS very difficult, however, so, find the

http://www.downxia.com/downinfo/48858.html

After unloading, this is the same problem, port 80 is still occupied,
Click the built-in test function:

The prompt is occupied by Microsoft-HTTPAPi /2.0, but the service is not found in the service.
Check Baidu, close SQL Server Reporting Services service, solve the problem.

Failed to load resource: the server responded with a status of 503 (Service Unavailable)

If the corresponding JS reference is correct, a refresh will work fine
When you visit a web page, load a blank, and view a development script, you find a bunch of errors
Failed to load resource: the server responded with a status of 503 (Service Unavailable)

When switching to sources, it is found that the corresponding JS file has not been loaded

IIS express failed to start

IS Express cannot start

  1. .vs\config\applicationhost.config
  2. open. In csproject, change to False

method 1
use notepad or some other text editor, open the project. Csproj file, locate, clear all the IIS configuration, attributes, save to True, re-open the project with VS2015, then Ctrl+F5, success!
principle is to have VS2015 reset the boot configuration.
I tried this one, I guess it was an anomaly for different reasons, so it didn’t work

method two

delete the.vs folder in the code root and reopen it.