Can I use Response.WriteFile with a physical path across web servers? (ASP.NET)

We currently have two IIS webservers -- web and webapp.  All of our static HTML files live on web and all of our old ASPs and newer ASPX files live on webapp.

An outside consultant is redesigning our website look and feel and has given us all new HTML pages, CSS files, etc. which are all going to live on web.  We're in charge of modifying all the ASPs and ASPX files in house to get them to match the new look and feel.

For testing, we had just copied the template files over onto webapp and were  using Response.WriteFile("/ssi/header.shtml") as an example to include headers and footers in our dynamic apps which are on the webapp server...

However, we really don't want to have duplicate ssi folders on both web and webapp to maintain-- we'd like to keep all the header/footer files on just web -- problem being, if we do something like this: Response.WriteFile("http://web/ssi/header.shtml"), we get the error: 'http://web/ssi/header.shtml' is not a valid virtual path.

Is there a cleaner way to include our header and footer files across web servers?
mandi224Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ted BouskillSenior Software DeveloperCommented:
You can setup website paths using UNC folders.  It's a little tricky to setup.  What I do is create a Share on the server holding the files.  I then designate a domain account that only has read or write access to that folder.

I then setup the virtual folder (or site) using the UNC path on the other host server and use the 'Connect As' feature to access the remote share.

There are other ways by changing the identity of the application pools but that's not as simple.

If you are simply doing reads to include the files it's a simply safe way to do it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.