On my website i render building plans into 3D images etc, mostly WebGL, SVG but sometimes also normal JPG (because not every browser supports webGL). When i run my site from Visual Studio (F5) it works perfectly. But when i create a website in IIS and then
run it, it doesnt work completely.. The part that doesnt work is where i take a bunch of images and use them in a 3D image. It's all kinda complicated so i wont go into much detail.
But I think the problem is that i run my IIS website with Network Service application pool, and not like a normal User. Is this true? Do i have more 'access' when i run directly from Visual Studio?
Under visual studio, when you run under the Cassini web server (vs interal web server) it is running under your ID as administrator with all rights. When you run under IIS, you are limited by the rights allowed to a web user. To get this to work, you would
need to use Application Pool Identity specified as a local server administrator account. Network Service has rights to read & list but is very limited on other rights as well.
Use the other account option and fill in a local server user that has admin privileges on the box. Make sure it is a service type of account (password doesn't change).
Really? That's kind of strange. IIS_WPG is installed with IIS. Let me do some research and I'll be back. You might want to post this question to the IIS Forums as well for what its worth.
Kriest
Member
1 Points
21 Posts
Difference between VS IDE and IIS
Nov 06, 2012 12:39 PM|LINK
Hello all,
On my website i render building plans into 3D images etc, mostly WebGL, SVG but sometimes also normal JPG (because not every browser supports webGL). When i run my site from Visual Studio (F5) it works perfectly. But when i create a website in IIS and then run it, it doesnt work completely.. The part that doesnt work is where i take a bunch of images and use them in a 3D image. It's all kinda complicated so i wont go into much detail.
But I think the problem is that i run my IIS website with Network Service application pool, and not like a normal User. Is this true? Do i have more 'access' when i run directly from Visual Studio?
Kind regards, Kriest
bbcompent1
All-Star
32994 Points
8509 Posts
Moderator
Re: Difference between VS IDE and IIS
Nov 06, 2012 12:50 PM|LINK
Under visual studio, when you run under the Cassini web server (vs interal web server) it is running under your ID as administrator with all rights. When you run under IIS, you are limited by the rights allowed to a web user. To get this to work, you would need to use Application Pool Identity specified as a local server administrator account. Network Service has rights to read & list but is very limited on other rights as well.
Kriest
Member
1 Points
21 Posts
Re: Difference between VS IDE and IIS
Nov 06, 2012 02:14 PM|LINK
Thank you for your reply. Could you explain what you mean with local server administrator account? I can choose the following options:
Buildin account:
- LocalService
- LocalSystem
- NetworkService
- ApplicationPoolIdentity
Other account:
- Here i can fill in a name + password
Which one should i use? I tried the other account option and just filled in my Windows account login/password but it didn't work.
bbcompent1
All-Star
32994 Points
8509 Posts
Moderator
Re: Difference between VS IDE and IIS
Nov 06, 2012 02:17 PM|LINK
Use the other account option and fill in a local server user that has admin privileges on the box. Make sure it is a service type of account (password doesn't change).
bbcompent1
All-Star
32994 Points
8509 Posts
Moderator
Re: Difference between VS IDE and IIS
Nov 06, 2012 02:19 PM|LINK
Another thing to remember, make sure that this user you specify is part of the local group IIS_WPG or it will certainly fail.
Kriest
Member
1 Points
21 Posts
Re: Difference between VS IDE and IIS
Nov 07, 2012 09:48 AM|LINK
Is it possible that I don't have that group? I have a group called IIS_IUSRS. But other then that 1, nothing with IIS in the name.
bbcompent1
All-Star
32994 Points
8509 Posts
Moderator
Re: Difference between VS IDE and IIS
Nov 07, 2012 01:05 PM|LINK
Really? That's kind of strange. IIS_WPG is installed with IIS. Let me do some research and I'll be back. You might want to post this question to the IIS Forums as well for what its worth.
bbcompent1
All-Star
32994 Points
8509 Posts
Moderator
Re: Difference between VS IDE and IIS
Nov 07, 2012 01:09 PM|LINK
Ok, that user group has replaced the IIS_WPG. So, make sure your user is a member of that group. Here is some additional background on that change: http://www.iis.net/learn/get-started/planning-for-security/understanding-built-in-user-and-group-accounts-in-iis
Kriest
Member
1 Points
21 Posts
Re: Difference between VS IDE and IIS
Nov 13, 2012 12:53 PM|LINK
This didn't resolve my issue. I created a thread on the IIS forums as it seems to be more of an IIS issue.
http://forums.iis.net/t/1193050.aspx