- 0
iis Environment Makes Web App Code Fail (Srv 2008)
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
10 quick tweaks that make Windows 11 a lot better
By Usama Jawad96,
- microsoft
- windows 11
- (and 13 more)
- 10 replies
- 0 views
-
- 24 replies
- 0 views
-
Microsoft issues fix as Windows 11 25H2, 24H2 KB5066835, KB5065789 break many IIS websites
By hellowalkman,
- microsoft
- windows 11
- (and 13 more)
- 9 replies
- 0 views
-
Microsoft employee confirms Windows 11 may never 'fix' a key internet feature for office PCs
By hellowalkman,
- microsoft
- iis express
- (and 14 more)
- 5 replies
- 0 views
-
Microsoft's new database migration tool has a temporary security cost
By zikalify,
- microsoft
- azure database migration service
- (and 7 more)
- 0 replies
- 0 views
-
Question
+Red King Subscriber²
My problem is that IIS applications run in some sort of a "zone" which is drastically different from "ASP.NET Development Server" or running code outside of IIS.
Is there any way to set IIS to run Web Applications without limitations?
For example same code in a Console Application wil work without issues, but if I put it in a Web Application, it does fail.
Issues such as the temporary directory pointing somewhere the light doesn't shine or having no printer access are fixed by assigning a normal user to an Application Pool. Still,
Problem 1
On a development environment, if you launch an application (Process p = Process.Start(...)) on, say, Page_Load event, you will see that application pop up.
This doesn't happen on IIS. It hides the application nonetheless.
Problem 2
Some calls to COM seem to fail through IIS while working just fine when the same code is run via Console Application.
Problem 3
The Console Application from Problem 2 fails to run if launched in an Web Application via (Process p = Process.Start(...))
Problem 4
So considering that lots of code fails in IIS and applications launched via IIS are also dumbed down shells of their forme3 glory.
I tried using MemoryMappedFile to communicate between an limited proces on IIS and normal forms application which does rendering.
The thing is the MemoryMapped File is not accessible either on IIS.
I can't have a
MemoryMappedFile.CreateOrOpen("NAMEHERE", 1024 * 1024, MemoryMappedFileAccess.ReadWrite);
on IIS and access it from a different application on the Server - but it works just fine in development environment or between two normal applications.
Does anyone know how to launch a normal user environment process form IIS?
Does anyone know how to share a MemoryMapped file between IIS and anything else?
Does anyone know how to run Web Application in the same exact environment and permissions as a normal Application?
I really do not want to revert to writing communication data to disk so it could be shared between IIS Web App and a normal application - it was difficult and hard enough to get MemoryMappedFiles to work with Mutexes.
Link to comment
https://www.neowin.net/forum/topic/1158738-environment-makes-web-app-code-fail-srv-2008/Share on other sites
2 answers to this question
Recommended Posts