Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
3  
Generally you don't deploy to the web app root, what are you doing? –  thantos Oct 23 '12 at 18:29
    
It's an asp.net 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
add comment

2 Answers

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 chat.domain.com where domain.com points to sharePoint and chat.domain.com 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
add comment

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
add comment

Your Answer

 
discard

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.