We help IT Professionals succeed at work.
Get Started

Why file will not upload to folder on virtual directories?

kitesurf
kitesurf asked
on
763 Views
Last Modified: 2012-06-22
Error: Access to the path 'C:\Inetpub\wwwroot\wss\VirtualDirectories\80\Upload\SharePoint Lessons Learned.docx' is denied.

I have a custom web part that uploads files to the above path with the above error only when not a farm administrator on SharePoint. Why?  I have a stand alone production server that works fine, but on a 2003 server 32 bit on vmware, it does not. Everything looks the same, except on production server we used multiple system accounts where on development single setup account.  Could that make a difference?
<appSettings>
    <add key="FeedCacheTime" value="300" />
    <add key="FeedPageUrl" value="/_layouts/feed.aspx?" />
    <add key="FeedXsl1" value="/Style Library/Xsl Style Sheets/Rss.xsl" />
    <add key="ReportViewerMessages" value="Microsoft.SharePoint.Portal.Analytics.UI.ReportViewerMessages, Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=..." />
    <add key="ConnString" value="Data Source=...;Initial Catalog=...;Integrated Security=SSPI;" />
    <add key="ServerName" value="http://..." />
    <add key="filefolder" value="C:\Inetpub\wwwroot\wss\VirtualDirectories\" />
    <add key="Port" value="80" />
    <add key="DirName" value="Upload" />
    <add key="Admin" value="..." />
    <add key="SessionTimeOut" value="20" />
    <add key="FeedCacheTime" value="300" />
    <add key="FeedPageUrl" value="/_layouts/feed.aspx?" />
    <add key="FeedXsl1" value="/Style Library/Xsl Style Sheets/Rss.xsl" />
    <add key="ReportViewerMessages" value="Microsoft.SharePoint.Portal.Analytics.UI.ReportViewerMessages, Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=..." />
  </appSettings>

Open in new window

Comment
Watch Question
Senior Software Developer
CERTIFIED EXPERT
Top Expert 2009
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE