- 0
iis Environment Makes Web App Code Fail (Srv 2008)
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Chrome will soon let you grant one-time website permissions
By TarasBuria,
- google chrome
- (and 5 more)
- 2 replies
- 5 views
-
Microsoft slightly improves OOBE on Windows 11 22H2, 21H2, as well as on Windows 10
By hellowalkman,
- microsoft
- windows 11
- (and 13 more)
- 8 replies
- 3 views
-
TikTok banned on UK government devices after security review
By zikalify,
- uk
- united kingdom
- (and 9 more)
- 2 replies
- 5 views
-
Microsoft is testing Privacy Auditing in Windows 11
By Alap Naik Desai,
- permissions
- privacy
- (and 7 more)
- 6 replies
- 2 views
-
Google Chrome will automatically block annoying website pop-ups soon
By Usama Jawad96,
- google chrome
- (and 9 more)
- 9 replies
- 4 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
Share on other sites
2 answers to this question
Recommended Posts