iis

IIS and Apache (WAMP) running

北战南征 提交于 2020-06-22 11:02:40
问题 How can we run IIS 6 and Apache (wamp) in same machine at same time? 回答1: IIS and Apache should have different port. To change the port of Apache(WAMP) Click on WAMP icon that you can see on your tray or other shortcut icons for wamp. Look for the Apache and open the httpd.conf or if you know where it is stored. Find the "80" then change Listen 80 to Listen 8080 ServerName localhost:80 to ServerName localhost:8080 Note: You can change the port which you desired as long as it will not conflict

Get current logged in user IIS returning DefaultAppPool

我是研究僧i 提交于 2020-06-17 02:59:17
问题 I have an asp.net application on my server that uses WindowsAuthentication to log in. The scenario is simple: users logged in, will use the same credentials to login the application. Certainly, on IISExpress on my machine works great, but when I try to login the application on server, the current user returned is DefaultAppPool . I guess it's a missing impersonate config on IIS. I tried to get the current user with: string username = HttpContext.Current.Request.LogonUserIdentity.Name; string

An assembly with the same identity 'XXX' has already been imported. Try removing one of the duplicate references

 ̄綄美尐妖づ 提交于 2020-06-14 08:37:45
问题 I have a MVC web application that I publish to our UAT server with msbuild command line. It is hosted on a windows 2016 server, IIS 10. Sometimes, not always , I have a the following error when I try to start up the website: Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message:

My ASP.NET Core app says it can't read web.config

主宰稳场 提交于 2020-06-14 05:26:49
问题 I get this error when I access my app which I published to local IIS: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. My web.config is really simple: <?xml version="1.0" encoding="utf-8"?> <configuration> <location path="." inheritInChildApplications="false"> <system.webServer> <handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /> </handlers>

IIS Auto-Start not disabling Idle Timeout

跟風遠走 提交于 2020-06-13 18:01:52
问题 I setup ASP.NET Auto-Start on my Windows Azure Web Role (I use ASP.NET 4.5 and IIS 8 on Windows Server 2012). I basically followed those instructions. I am setting startMode="AlwaysRunning" on the application pool and preloadEnabled="true" on the website through the OnStart method of the webrole. I used remote access and verified that those two properties are correctly set (through IIS Manager, as well as checking the applicationHost.config file). I also added this to the web.config file:

Asp.Net Core Windows Authentication Not Working in IIS

南笙酒味 提交于 2020-06-10 12:47:47
问题 Asp.Net Core doesn't seem to recognize the user from the call context?.User?.Identity?.Name when windows authentication is enabled and running in IIS Express or IIS. Desired behavior: Enabling both Windows authentication and anonymous authentication in IIS and/or IIS Express, Asp.Net Core should automatically recognize the windows user. Actual behavior: When I enable both windows and anonymous authentication in IIS or IIS Express, the user name is null. When I disable anonymous authentication

What steps should I take to build and run .net core Web API application in 32-bit environment/runtime?

荒凉一梦 提交于 2020-06-01 05:12:28
问题 We developed an a .NET Core Web API application using the following technologies: -NET Core (3.1) -Visual Studio 2019 Unfortunately, we have to deploy said application to the following environment: -32-bit Environment -Windows Server 2008 R2 Enterprise (Service Pack 1) -IIS Version 7.5 -8 GB RAM Therefore, within my Visual Studio 2019, I brought up the application, and took the following steps: Force x86 in VS go to the Properties > Build and change Platform target from Any CPU to x86 Created

IIS worker thread vs web application thread

核能气质少年 提交于 2020-05-30 03:32:47
问题 I'm maintaining an ASP.NET Core web application that needs to repeatedly run some background threads. I know it's not a good design but currently I have to fix its major issues with minimum effort. Now I wonder if I should worry about handling users http requests by web server or not? Question is simple but I can't find any clear answer for it anywhere: What is the difference between threads that are created in application like this: Task.Run(() => { // some parallel job }) and worker threads

ASP.NET won't compile to debug

六眼飞鱼酱① 提交于 2020-05-29 07:06:45
问题 I have two IIS server machines, A and B. They are both serving an identical ASP.NET Web Forms site. On A, when I experience an error, I get the detailed error page that shows the source code that generated the exception. On B, when I experience an error, I get the message... The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL: I want server B to also give me the source

ASP.NET won't compile to debug

我们两清 提交于 2020-05-29 07:04:40
问题 I have two IIS server machines, A and B. They are both serving an identical ASP.NET Web Forms site. On A, when I experience an error, I get the detailed error page that shows the source code that generated the exception. On B, when I experience an error, I get the message... The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL: I want server B to also give me the source