Avatar of dougdog
dougdog
 asked on

IIS Website displaying server error in '/' Application

I have a website that wont display correctly when I have the storageRoot0 value in application settings set to a unc path on another server
if I change the unc path to something local like c:\test it displays ok
I have attached screenshots
what could be causing this?
I need to have the storageroot0 pointing to a server in my lan
Capture.JPG
Microsoft IIS Web ServerWeb Servers

Avatar of undefined
Last Comment
dougdog

8/22/2022 - Mon
Kimputer

What are you doing exactly? Are you using some other custom made package?
Most probably, it's just not designed to work from a remote server. Ask the developer of that custom package you're using.
Kyle Abrahams

I would agree with Kim but try using 2 slashes instead of one.

eg:  \\\\<ip>\\path

The other thing you can try is mapping that drive to say X: and then use that as a local drive.
Dave Baldwin

The IIS user does not have permission to access other servers.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
dougdog

ASKER
What permission is needed
Dave Baldwin

Try the 'mapped drive' approach.  I don't think you are able to give the IIS user permission to access other servers.
dougdog

ASKER
Mapped drive didn't work
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Systech Admin

please assign the Network services and IIS_Users permission, IIS_WPG group
dougdog

ASKER
Are these permissions assigned on the it's server
Or the server that is hosting the file share
Dave Baldwin

It's the permissions of the IIS User.  It is a special user for the web server and it is intentionally limited by design.
Your help has saved me hundreds of hours of internet surfing.
fblack61
dougdog

ASKER
Yes but what server
I have the fronet end server with its accessing a file share on another server that does not have its
Where do I configure permission
Dave Baldwin

In all the previous questions about accessing a remote server from IIS, the answer has always been that you can't.  The problem has always been that the IIS user does not have and can not be given permission to access other machines.
dougdog

ASKER
I have 2 iis servers that are on a subnet
if I try the storageroot0 location as local on one of the iis servers it works and even if I have the folder on the second iis server as a unc path it works
but if I have the file location on another server that does not have iis installed and on a different subnet I get the error
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Kimputer

If that's the case, it's still an authentication problem, and if different subnet, check also if your network settings are correct (source should be able to ping destination and vice versa).
dougdog

ASKER
I can ping and access the file via cifs or explorer
its just browsing the website from the iis server fails
ASKER CERTIFIED SOLUTION
Kimputer

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Kyle Abrahams

that or map the drive as a persistent drive.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
dougdog

ASKER
just create the same local account?
or maybe install  the iis role on the file server
that would install the iis accounts
Kyle Abrahams

You're better off switching to a domain account for your application pool, then granting permissions on the file server for that account.

Note you should add the same domain account to the IIS_Users local group on the web server.  The IIS user is a local account, so even if you were to install IIS on the file server, it wouldn't grant permissions.
dougdog

ASKER
the 2 iis servers will be out on the dmz
the file share will be inside the lan
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.