- 0
iis Environment Makes Web App Code Fail (Srv 2008)
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Microsoft shares "immediate remediation" script if you deleted this Windows system folder
By hellowalkman,
- 12 replies
- 0 views
-
Microsoft engineer shows how bad code can lead to your Windows PC slowing down
By hellowalkman,
- microsoft
- windows 11
- (and 12 more)
- 19 replies
- 0 views
-
Microsoft's official 'inetpub' folder lets hackers permanently block Windows updates on PCs
By hellowalkman,
- 9 replies
- 0 views
-
Microsoft 365 Apps Version 2409 rolls out with new features and fixes
By zikalify,
- microsoft 365
- excel
- (and 9 more)
- 1 reply
- 2 views
-
Chrome will soon let you grant one-time website permissions
By TarasBuria,
- google chrome
- (and 5 more)
- 2 replies
- 6 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