iis-7.5

MVC 1 and IIS 7 error code 4011

折月煮酒 提交于 2020-01-24 08:21:06
问题 I've got an MVC 1 application running on IIS 7.5. After some operations are complete, I've got a RedirectToRoute call using System.Web.Routing.RouteValueDictionary as the second parameter. Basically it calls for "Details" of the particular object by ID. When this code is encountered on my production server running IIS 7.5, it takes me back to the login page and has a ReturnUrl value in the URL at the top. Once I log in again, it takes me to the page that it was supposed to take me directly to

How to create and trust certificate Using OpenSSL?

那年仲夏 提交于 2020-01-24 00:27:35
问题 How to create valid certificate using OpenSSL for using HTTPS binding in IIS ?? It must work in Firefox and all other browsers as well I am using IIS 10 server. And Firefox v70, Firefox Dev edition v72b5, Chrome v79, Edge v44. I want the HTTPS binding to work in all of these browsers. 回答1: Ok. I think, I found out the answer, A certification authourity have to be created to use HTTPS binding and hereby all our certificates will be signed from it. For that download a suitable version of

IIS: Websocket and IIS sharing port 443

痞子三分冷 提交于 2020-01-24 00:20:09
问题 Is it possible with IIS 7.5 to host a secure https website on port 443 and to have a Java app run Socket.IO websocket on 443 also? Currently we run the website on 443 and the secure websocket on another port 10001, but we are having issues with user firewalls and would like to move the websocket to a better "known default" port. I know that IIS 8 has WebSocket capability but we would perfer not to have to upgrade our server instances to server 2012 unless we must. 回答1: Two separate processes

IIS 7.5: sending http status code 422 with custom errors on

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-21 10:45:28
问题 I use custom action filter in asp.net mvc app to return http status code 422 and json list of validation errors (basically serialized model state dictionary) to client, where I handle that with global ajaxError handler in jQuery. All of this works on development enviroment, but my problem is when custom errors mode is on ( <system.webServer>/<httpErrors errorMode="Custom"> ), IIS replaces response (json) with text "The custom error module does not recognize this error." I'm having hard time

IIS 7.5: sending http status code 422 with custom errors on

痞子三分冷 提交于 2020-01-21 10:45:07
问题 I use custom action filter in asp.net mvc app to return http status code 422 and json list of validation errors (basically serialized model state dictionary) to client, where I handle that with global ajaxError handler in jQuery. All of this works on development enviroment, but my problem is when custom errors mode is on ( <system.webServer>/<httpErrors errorMode="Custom"> ), IIS replaces response (json) with text "The custom error module does not recognize this error." I'm having hard time

iis 7 disable windows auth

▼魔方 西西 提交于 2020-01-16 09:00:51
问题 I setup a test website on my IIS 7.5, I created a Web Application project in VisualStudio and set up a web site in a new application pool in Classic Pipeline Mode. I have this line in C:\Windows\System32\drivers\etc\hosts : 192.168.50.142 dev.mybigdomain.org.uk Now if I access my website with http://localhost/testHello/Default.aspx it works fine, but when I try http://dev.mybigdomain.org.uk/testHello/Default.aspx I get a "Windows security" window asking for authentication, but if enter

Request is not available in this context exception when runnig mvc on iis7.5

眉间皱痕 提交于 2020-01-13 19:23:27
问题 when i running mvc app on iis7.5 win 7 it cause an exception "Request is not available in this context" which this don't cause when running by vs2008. can anyone help me? 回答1: I think the answers and notes in my question regarding use of the request object in the global.asax file may be helpful. Are you developing on a system that doesn't use IIS7 by any chance? Global ASAX - get the server name 来源: https://stackoverflow.com/questions/2056398/request-is-not-available-in-this-context-exception

IIS 7.5 Application Initialization (Warm-up) and HTTPS

谁说我不能喝 提交于 2020-01-13 09:59:07
问题 We've been using the Application Initialization module with IIS 7.5 for quite a while now, and it always worked perfectly. However, we've just started implementing SSL, and it seems to create a conflict with the warm-up. I've done quite a bit of research, but no solution worked so far. Basically the issue is that the initialization module doesn't follow redirections. We have to keep http enabled for a certain part of the site, but we do redirect all other HTTP visits to their HTTPS equivalent

Graceful shutdown of IHostedService

三世轮回 提交于 2020-01-13 05:20:06
问题 I am trying to develop a simple API in .NET Core that allows asynchronous processing of requests. Request sent to Controller Work scheduled on background service (IHostedService) Controller returns 202 Background service performs long running operation As the application will be running on IIS, a pool recycle can happen after the controller has returned a response. I would like to implement a way to allow the application to do a graceful shutdown - finishing it's currently executing tasks,

ServerManager CommitChanges makes changes with a slight delay

情到浓时终转凉″ 提交于 2020-01-13 04:27:46
问题 i have a little problem with the ServerManager class (from the Microsoft.Web.Administration assembly) and i hope some of you can help me out. Basically I need to create a new application inside a site (using IIS 7.5) and redirect the user to the new application, inside the same event.This functionality is implemented inside a .net web app using mvc 3/c#. Here is my code: ServerManager iisManager = new ServerManager(); Site mySite = iisManager.Sites["mySitesName"]; ApplicationCollection