Umbraco (via Visual Studio) IIS Can't Locate Remot...
# help-with-umbraco
g
Hi! I've built Umbraco 15 in Visual Studio and had it up and running fine but when I tried to deploy it to IIS (using Visual Studio), IIS can't locate the NAS storage server being used. What's weird is the Visual Studio build could find it but IIS can't. It's mounted as network drive P. Any ideas? https://cdn.discordapp.com/attachments/1335126397349400617/1335126397789933601/error_message.png?ex=679f08da&is=679db75a&hm=9c9c56f461e0adc51078350edf4fba71a73181b3490c15ac070387266c3406b2& https://cdn.discordapp.com/attachments/1335126397349400617/1335126398326669362/Umbraco_Diagram.jpeg?ex=679f08da&is=679db75a&hm=7add028322923141a51850968760e87b0bab5f193e4d617594138d3d56f69680&
k
I think network drive mounts are always personal. Visual Studio runs as your user and can access P:\ like you would, but IIS usually runs as a system account which wouldn't know about P: at all. Please don't use network drive mounts this way, it will cause you call kinds of problems in all environments (even development environments). Nothing related to Umbraco. Also, I've seen recommendations not to
UseStaticFiles
at all with Umbraco but haven't seen a citation, maybe someone knows for sure.
j
You really need each server to have its own local copy of files - use some kind of replication service, DFS etc. Depending on what the files are exactly, you'll likely find that NAS a frustrating performance bottleneck.
k
Is it Umbraco media you're NASing? Just noticed the
/media
in the code. You shouldn't interact with Umbraco media files directly, you should use the Umbraco "Media Service" (iirc) which uses the Umbraco Storage Provider to manage physical media files.