SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

How to deploy folder to a SharePoint 2010 Web Application Root folder (inside inetpub\wwwroot\wss\VirtualDirectories\80) in the solution package(wsp)?

Which kind of item I should use in the visual studio project? because nothing is mapped to {WebApplicationRoot} directly!!

share|improve this question
Generally you don't deploy to the web app root, what are you doing? – Sam Sussman Oct 23 '12 at 18:29
It's an chat application (I don't its code) and I must work from the root of the web application folder and it's hard coded to get the images, css,.. from the Application Path HttpRuntime.AppDomainAppPath – AMgdy Oct 23 '12 at 18:56

As the comments mention, you generally do not deploy files randomly in SharePoint as there is a specific structure that SharePoint expects at the root of a site. If you must do something like this, you might want to move it to a subdomain outside of SharePoint like where points to sharePoint and points to a regular IIS website that hosts the chat application. You could then add links/iframes in SharePoint to call the chat application.

From the Visual Studio side, you would treat it as a normal web application project.

share|improve this answer

I finally managed to deploy the files to _layout folder and copy it in the FeatureActivated.

share|improve this answer
Please use the edit link on your question to add additional information. The Post Answer button should be used only for complete answers to the question. – Hugh Wood Nov 29 '12 at 10:24

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.