SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a physical folder on a Sharepoint server located at C:\inetpub\wwwroot\wss\VirtualDirectories\80\temp\. I want this folder, and it's contents, to be available at the server root, eg: http://intranet/temp/. I can't figure out how to do this, any help?

share|improve this question
Can you explain why you would want to do this as doing so severely limits your farm's scalability – Dave Wise Jul 21 '11 at 19:28
I need to do this because I write files to the server. – Vap0r Jul 21 '11 at 19:33
up vote 2 down vote accepted

What particular reason would you need to do this? SharePoint provides these types of virtual folders already, and I bet then can satisfy your requirement as is.

If you're curious though, they are set up in IIS. Read here for more info:

share|improve this answer
I need to do this because I write files to the server. – Vap0r Jul 21 '11 at 19:34
Which server? Remember your environment could very well be running across more than one web front end, with one at a time performing each web request. Write to the file system and chances are they will instantly go out of sync. If your application cannot be architected in a way that doesn't involve writing to a file system, then perhaps SharePoint isn't the best system for that particular operation. You could offshore that operation to another ASP.NET environment, and use SharePoint for the eventual delivery, through web services, for example. – James Love Jul 21 '11 at 19:52
Also, I think modifying the IIS configuration to include custom virtual file system directories might render your SharePoint environment as unsupportable. I'm not certain that it does, but it's something to consider and watch out for. – James Love Jul 21 '11 at 19:54
I needed to extract the attachment from an infopath form and so I figured out a way to do it using jQuery and a code behind C# form. The only way I know how to do simple file i/o with C# is to a filesystem. Sharepoint wasn't cooperating, so I wrote to the local filesytem of the server. If you know a way around this, then I would really appreciate it. – Vap0r Jul 21 '11 at 20:01
InfoPath isn't my strong point, but I would look at somehow putting the file into a Document Library using the C# Object Model. I found a blog post that does this in a workflow, might be of some help:… – James Love Jul 21 '11 at 20:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.