This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Publisher
- :
- FlexNet Publisher Forum
- :
- lc_flexinit failure when run app by IIS
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 16, 2012
11:12 AM
lc_flexinit failure when run app by IIS
I'm testing a FLEX-enabled client which is a web application using WCF.
Because I'm running the app as a web app, the code is actually run by the IIS worker thread process, w3wp.exe.
The lc_flexinit call is failing with a return code of 21.
Worker threads are run from an IIS application pool which are configured to run with a particular user identity. The default app pool identity is NetworkService. If I set the app pool identity to LocalSystem, the test client works; the lc_flexinit call succeeds.
However running the app pool with an identity of LocalSystem poses a security risk since it means all web applications run with an elevated privilege level.
If I run FLEX-enabled apps which are command-line or WinForm programs, I have no unexpected problems since I know ways to run those kind of programs as an administrator.
Does anyone know of a way to successfully run FLEX clients as a web app (thereby running from w3wp.exe) without setting the identity of the pool to LocalSystem?
I'm testing on Windows 7 with Publisher 11.10.0.
Because I'm running the app as a web app, the code is actually run by the IIS worker thread process, w3wp.exe.
The lc_flexinit call is failing with a return code of 21.
Worker threads are run from an IIS application pool which are configured to run with a particular user identity. The default app pool identity is NetworkService. If I set the app pool identity to LocalSystem, the test client works; the lc_flexinit call succeeds.
However running the app pool with an identity of LocalSystem poses a security risk since it means all web applications run with an elevated privilege level.
If I run FLEX-enabled apps which are command-line or WinForm programs, I have no unexpected problems since I know ways to run those kind of programs as an administrator.
Does anyone know of a way to successfully run FLEX clients as a web app (thereby running from w3wp.exe) without setting the identity of the pool to LocalSystem?
I'm testing on Windows 7 with Publisher 11.10.0.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 20, 2012
09:39 AM
I've found a solution.
I moved the code calling lc_flexinit into a new separate Windows Service, and run this Service under the LocalSystem account. This way I can leave the DefaultAppPool identity at its default value while only the new Service has to run as LocalSystem.
I moved the code calling lc_flexinit into a new separate Windows Service, and run this Service under the LocalSystem account. This way I can leave the DefaultAppPool identity at its default value while only the new Service has to run as LocalSystem.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)