Advertisement

04.10.2008 at 08:25AM PDT, ID: 23312108
[x]
Attachment Details

how to move documents form one document library to another in WSS3

Asked by ITDataCenter in MOSS-Sharepoint, Programming for ASP.NET, Microsoft Visual C#.Net

Tags: , , ,

Hi,

We have a WSS3 Sharepoint server.
I want to move documents from one ducument library to another. I need to keep all the metadata of the file and all the versions, etc.
I found this article about this:
http://www.sharepointblogs.com/dez/archive/2007/11/30/moving-copying-documents-between-libraries-with-metadata-including-version-history.aspx

I try to build a web page using the sample code in there. I used Microsoft Visual Web Developer 2005 Express to try to buid that web page.
i added a reference to the sharepoint.dll and the defaul.aspx is fine but when i get an error inthe default.aspx.cs at the line 40:
        "  SPSite mySite = SPContext.Current.Site;  " that says :

System.NullReferenceException was unhandled by user code
  Message="Object reference not set to an instance of an object."
  Source="App_Web_ry9z9pmi"
  StackTrace:
       at _Default.GetSites() in c:\movedocs\Default.aspx.cs:line 40
       at _Default.Page_Load(Object sender, EventArgs e) in c:\movedocs\Default.aspx.cs:line 32
       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I have never programmed anything in my life but i think here is just a little thing that i am missing.

ThanksStart Free Trial
[+][-]04.11.2008 at 10:38PM PDT, ID: 21339991

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.

 
[+][-]04.14.2008 at 12:50AM PDT, ID: 21348226

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]04.14.2008 at 01:02PM PDT, ID: 21353295

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.

 
[+][-]04.18.2008 at 07:25AM PDT, ID: 21386038

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]04.19.2008 at 02:28PM PDT, ID: 21393992

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.

 
[+][-]04.21.2008 at 01:29AM PDT, ID: 21399534

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]04.21.2008 at 12:47PM PDT, ID: 21405267

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: MOSS-Sharepoint, Programming for ASP.NET, Microsoft Visual C#.Net
Tags: Microsoft, WSS, 3, move documents to another document library
Sign Up Now!
Solution Provided By: tedbilly
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.15.2008 at 01:45PM PDT, ID: 21577831

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.

 
[+][-]05.16.2008 at 08:13AM PDT, ID: 21583443

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]05.16.2008 at 09:56PM PDT, ID: 21588041

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.

 
[+][-]05.17.2008 at 05:34AM PDT, ID: 21589006

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]05.17.2008 at 08:34AM PDT, ID: 21589714

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.

 
[+][-]05.21.2008 at 04:37AM PDT, ID: 21613874

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]05.25.2008 at 05:07AM PDT, ID: 21642207

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

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