iis-7

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

Can't get IIS 7/Coldfusion to deliver 404

纵然是瞬间 提交于 2020-01-24 07:32:10
问题 So... we have a custom CMS. We have a rewrite rule that any page request (when a file doesn't exist) goes to the root/index.cfm file. There we search our DB for the page in question. If the page exists, we serve up the correct template,etc. If the page doesn't exist I want to server up a 404 page. Now I "think" I cannot do this in IIS since I need to handle the request in CF, so it has to get through. The file will always exist. When the page doesn't exist I've tried using <cfheader

Can't get IIS 7/Coldfusion to deliver 404

↘锁芯ラ 提交于 2020-01-24 07:31:53
问题 So... we have a custom CMS. We have a rewrite rule that any page request (when a file doesn't exist) goes to the root/index.cfm file. There we search our DB for the page in question. If the page exists, we serve up the correct template,etc. If the page doesn't exist I want to server up a 404 page. Now I "think" I cannot do this in IIS since I need to handle the request in CF, so it has to get through. The file will always exist. When the page doesn't exist I've tried using <cfheader

Can't get IIS 7/Coldfusion to deliver 404

こ雲淡風輕ζ 提交于 2020-01-24 07:31:52
问题 So... we have a custom CMS. We have a rewrite rule that any page request (when a file doesn't exist) goes to the root/index.cfm file. There we search our DB for the page in question. If the page exists, we serve up the correct template,etc. If the page doesn't exist I want to server up a 404 page. Now I "think" I cannot do this in IIS since I need to handle the request in CF, so it has to get through. The file will always exist. When the page doesn't exist I've tried using <cfheader

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

How to change property Enable32BitAppOnWin64 of Application Pool on IIS 7 on Windows Azure?

帅比萌擦擦* 提交于 2020-01-23 10:48:46
问题 I have project with third part library, this library made for 32-bit systems. But my project will be working on Windows Azure and I must set property Enable32BitAppOnWin64 of Application Pool to true before Windows Azure run my application. What are the ways to set this property (config, programmatically)? If I can do this only programmatically then where in code must I change it? Can I do this in event OnStart of WebRole? 回答1: I just had to do this. I used a Startup task to change this

Run node.js & WebAPI on same server for same site with IIS

£可爱£侵袭症+ 提交于 2020-01-23 01:11:06
问题 I'm looking to slowly convert a Node.js application over to ASP.NET WebAPI 2.0 . I'm currently using IIS and will stick with IIS . So, I would like to host them on the same server but direct some URIs over to the new platform. How would I do this in the web.config ? The current web.config for node.js looks like so: <configuration> <system.webServer> <handlers> <!-- indicates that the app.js file is a node.js application to be handled by the iisnode module --> <add name="iisnode" path="beta

Enabling JavaScript GZIP compression in IIS?

拈花ヽ惹草 提交于 2020-01-22 21:46:06
问题 we're looking to compress our gargantuan JavaScript files with GZip to speed up the page loads of our site. I know this can be done through IIS, but I can't seem to find a simple step-by-step guide on how to implement it. If someone could point me towards such a guide, I'd really appreciate it. I've never done this before, so it would need to be quite basic. We're running IIS7.5 on Windows Server 2008 R2 . Your time is much appreciated. 回答1: Turns out it's really easy: Go into IIS Manager Go

IIS7 + NHibernate: Illegal operation attempted on a registry key that has been marked for deletion

我与影子孤独终老i 提交于 2020-01-22 18:43:25
问题 We have an asp.net MVC app using Fluent Nhibernate running on top of IIS7 & Windows Sever 2008. Frequently (although so far we have yet to consistently reproduce it) after a build we get a yellow screen of death with this exception: [COMException (0x800703fa): Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA)] System.Reflection.Assembly._nDefineDynamicModule(Assembly containingAssembly, Boolean emitSymbolInfo, String filename

How to use a .NET 4.0 web application within a .NET 3.5 web application?

浪子不回头ぞ 提交于 2020-01-22 11:38:47
问题 My company has a website built in ASP.NET and targets .NET 3.5. It is too mangled and massive to be converted to .NET 4 in a timely manner. I am tasked with building a ticketing system. I want this ticketing system to be a completely separate application from the main application. I added a directory to the website called "TicketingSystem", then in IIS I set this folder as an application, using an app pool that targets .net 4.0. I assumed this application would not be affected by the