Advertisement

02.06.2008 at 02:07AM PST, ID: 23140709
[x]
Attachment Details

The requested operation cannot be performed on a file with a user-mapped section open.

Asked by pvrooyen in Microsoft Visual C#.Net, .Net Editors & IDEs, Microsoft Development

Tags: mICROSOF, ASP.NET C#, IE 7, The requested operation cannot be performed on a file with a user-mapped section open.

I am trying to perform a simple File.Copy()

        string _originalFile = "Lapdesk.Websites/Files/Lapdesk_Quote_Original.xls";
        string _destFile = "Lapdesk.Websites/Files/Lapdesk_Quote.xls";
   
       //Generatate copy of original and modify.
       File.Copy(_originalFile, _destFile, true);

When the above mentioned error is generated.  The files are not open and no background proceses are running that can access themStart Free Trial
[+][-]02.06.2008 at 05:39AM PST, ID: 20831763

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, .Net Editors & IDEs, Microsoft Development
Tags: mICROSOF, ASP.NET C#, IE 7, The requested operation cannot be performed on a file with a user-mapped section open.
Sign Up Now!
Solution Provided By: galar71
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.06.2008 at 05:42AM PST, ID: 20831781

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628