Questions tagged [iis-modules]
29 questions
31
votes
3 answers
How do you set up a Python WSGI server under IIS?
I work in a Windows environment and would prefer to deploy code to IIS. At the same time I would like to code in Python.
Having read that IIS can run fastCGI application, I went to the IIS site where it describes in detail how to get PHP up and…

minty
- 22,235
- 40
- 89
- 106
4
votes
1 answer
Getting 500 Error code from asp.net core app on iis 8.5 windows server 2012 but works fine on console
Headline:
Getting 500 Error Code when running asp.net core application on windows server 2012 IIS 8.5 but works fine when executed from command line by specifying the generated exe file i.e. "MyApplication.exe"
Details:
Its not generating any error…

adeel41
- 3,123
- 1
- 29
- 25
4
votes
2 answers
ASP.NET WebAPI returning Http 405
I have a WebApi controller
[RoutePrefix("api/invitations")]
public class InvitationsApiController : ApiController
And an action method:
[Route]
[HttpPost]
public IHttpActionResult Create([FromBody] CreateCommand command)
When i try to POST to…

Rune Jensen
- 731
- 1
- 8
- 14
4
votes
1 answer
Auto configuring IIS websites / app pools using PowerShell or other scripts
We have a need in our project to automate the process of creating AppPools and Websites in IIS . We would like to write some batch script to get this done. From my research I found that PowerShell has commands that can be used. However when I tried…

Madhuri Mittal
- 513
- 1
- 7
- 10
4
votes
1 answer
How to debug an IIS 7 module?
We had an IIS 7 module that was failing in a rather odd way (to us, at least) - the 32 bit version of the module apparently had some strange behavior where it would look for the 64 bit version of the DLL and use that if it was on a 64 bit machine,…
user15486
2
votes
1 answer
How can I grab the response text of web page via IIS Module?
I'm working on an IIS module that, when a web page request is made, it looks over the data being passed back to the browser and replaces certain keywords with approved keywords. I realize there are multiple ways to do this, but for our purposes an…

Dexter
- 1,128
- 3
- 25
- 51
2
votes
1 answer
how do you Change IIS authentication method to BasicAuthentication?
I try to Change IIS authentication method to BasicAuthentication for IIS7?
I try to follow the steps here, because I get that error
Thank you
PS: I was trying this, but I have only this options

Ryan
- 5,456
- 25
- 71
- 129
2
votes
1 answer
IIS module and C#: how to modify the page content before sending it to client
I am new to the IIS module and C# area.
I need to modify the content of static HTML files in a specific directory of a website before the website sends the page content to client. The modification includes adding the banner, footer, etc.
Based on…

curious1
- 14,155
- 37
- 130
- 231
2
votes
1 answer
How to set up IIS request mirroring to staging environment?
I would like to have all HTTP requests made to my production environment be also automatically made against my testing environment. E.g. if anything makes a request to http://production.site.example.com/api/users/12345 then I want the same request…

Sander
- 25,685
- 3
- 53
- 85
1
vote
1 answer
IIS can't install custom module
i'm trying since hours to install a custom module on IIS from the manager.
I coded it in C#.
I'm able to load it into a test ASP.NET app that i created.
I copy it into the bin folder, and add this line into the web.config :
…

Tom
- 47
- 7
1
vote
0 answers
How can I read the request posted file in IIS module?
I wrote an IIS module and it's working fine.
I want to get the posted file from request.
In below code, I could get sent form data and view the file in header:
IHttpRequest * pHttpRequest = pHttpContext->GetRequest();
if (pHttpRequest != NULL)
{
…

user5674
- 11
- 2
1
vote
1 answer
How the IIS7 handle a auth module? Memory scope?
As those who have worked on such a project you probably know this site:
Developing a Module Using .NET
In this article Mike Volodarsky created a very good post on how to create your own security authentication extension for the IIS7.
I took this…

YvesR
- 5,922
- 6
- 43
- 70
1
vote
1 answer
IIS: Odd behavior of modules
I have a few legacy websites and each has a LOT Of static HTML pages. I would like to use IIS module to capture the generated page content and add additional HTML snippets to make it have new header and footer (this is called the decorator pattern).…

curious1
- 14,155
- 37
- 130
- 231
0
votes
1 answer
Application calls Begin_Request for images, css and js ASP.NET MVC 3
I have this MVC application where I declare the following routings:
routes.RouteExistingFiles = false;
routes.IgnoreRoute("Content/{*pathInfo}");
routes.IgnoreRoute("Scripts/{*pathInfo}");
routes.IgnoreRoute("{*alljs}", new { alljs =…

ab_732
- 3,639
- 6
- 45
- 61
0
votes
0 answers
How do I create and test IIS modules w/Visual Studio 2022 (within IISExpress)?
I'm trying to create a custom IIS module that deletes and/or alters session cookies sent from the browser to IIS and vice-versa, and would like to compile and test that module w/IISExpress (within VisualStudio 2022).
The module should be able to…

prancer71
- 31
- 2