in

ASP.NET Weblogs

Dave Burke - A freelance .NET Developer specializing in Online Communities

A freelance .NET Developer

To SPS2003 : Cannot complete this action. Please try again.

Everyone knows that Sharepoint 2003 is essentially a new product now based on .NET, which means its functions and processes can be accessed by Sharepoint .NET libraries from a .NET project.  I've listed how to reference that library here.
 
Sharepoint 2003 contains this .NET library as well as a number of Web Services to perform Sharepoint workspace and document library functions.  I successfully used a Web Service to create a document library folder, but am encountering a number of “Cannot complete this action.  Please try again.“ runtime errors when trying to use the Sharepoint .NET library in my VS.NET application. 
 
What's interesting is that I am generating errors here on my office network, but am experiencing NO errors on the HQ staging server, and I personally installed Sharepoint Services on both of them.  Usually its the other way around and the problems always occur on the HQ servers.  Still, I'm delighted to know the SPS .NET library works on that machine so I am carefully study the differences in security and configuration.
 
But investigating the SPS2003 .NET library issue is more of a side issue, however, since I am in the middle of migrating a SPS2001-based intranet to Sharepoint Services 2003 and the migration is my priority.  I can use the SPS2003 Web Services to perform the functions I need to duplicate from the WebDAV SPS2001-based system, and do not NEED to employ the Sharepoint 2003 .NET library right now. 
 
I know I will work through this situation sometime hopefully soon, even though “Cannot complete this action...” type of errors are pretty darn worthless.  (Why not throw up a translucent bomb icon and an unhappy face on the screen while you're at it?)  Please check the Sharepoint category at a future date for my particular resolution of the “Cannot complete this action...” problem, though your mileage may vary.  If you google on this you'll find that its the SPS Library generic runtime error to darn-near everything. 
 
Published Jun 09 2004, 09:21 AM by daveburke
Filed under:

Comments

 

SBC said:

Dave - what's your deployment architecture like? Do you have several WSS nodes that are consolidated under a (root) SP2K3 Portal Server? Are the WSS nodes (& users) in various domains? I think it may have to do with user accounts (& access). Some clues here - http://support.microsoft.com/default.aspx?scid=kb;en-us;823278

Post your findings (please!).
June 9, 2004 10:54 AM
 

Dave Burke said:

SBC, Thanks so much for your thoughts. The KB seems to confirm that this "Cannot complete this action" runtime is a generic error message. A screenshot of my runtime error is below. It will be interesting to figure out what the problem turns out to be... Thx!

http://dbvt.com/x/blog/2004/spserror.gif


June 9, 2004 12:27 PM
 

Pedro Serrano said:

Hi,

We're struggling against the same darn error:

"Cannot complete this action.

Please try again."

We're trying to move our SharePoint Portal Server 2003 from one machine to another using the backup and restore tool. However, when we restore, the SharePoint Sites go live OK without any problems but the SharePoint Portal Server 2003 insists on returning that error ...

Any clue of what we might be doing wrong? Can anyone point me to any step-by-step or «how-to» guide on accomplishing this task of moving a SharePoint Portal Server 2003 from one machine to another machine?

Thanks in advance.

My kind regards,
Pedro Serrano
June 9, 2004 3:16 PM
 

Dave Burke said:

Pedro, I'm pretty sure this "Cannot complete" error represents MANY issues. I will definitely post my personal resolution here, or feel free to email me later to see if I've found out anything. Hopefully it will be soon!!!
June 9, 2004 3:21 PM
 

TrackBack said:

June 13, 2004 8:11 AM
 

TrackBack said:

June 16, 2004 9:23 AM
 

Nicolas Durand said:

Hi,

I am having exactly the same problem and it is driving me nuts...

I tried the MS resolution under http://support.microsoft.com/?kbid=823278&FR=1#appliesto, without much change... :(

I am using it in a different scenario than youguys, though:

SPSite ospSite = new SPSite("http://localhost:90/");
SPWeb ospWeb = ospSite.OpenWeb();
//Create a search against the lists in our web
SPSearchResultCollection ospSearchResults;
ospSearchResults = ospWeb.SearchListItems("staff");
output.Write( ospSearchResults.Count.ToString());
foreach(SPSearchResult ospSearchResult in ospSearchResults) {
output.Write( ospSearchResult.Title + " URL: " + ospSearchResult.Url);
}

It crashes at the line
ospSearchResults = ospWeb.SearchListItems("staff");


Any idea out there?

Many thank in advance to any clue!

Nico
June 30, 2004 5:30 AM
 

Dave Burke said:

Nico,
Oh heck, I've been through that KB several times. :-) It doesn't matter what scenario. When you reference the Microsoft.Sharepoint DLL, and .OpenWeb(), any method or property call generates the same error.

There are a ton of newsgroup posts out there with this generic "cannot continue" error, but nothing for our WSS2003 coding issue.

And what is so weird is that its working flawlessly on a staging server of mine, but NOT on my development server. How can I develop using the Sharepoint library though? :-)

If I find a fix I will DEFINITELY be posting it everywhere I can. I'm still dead in the water after installing, uninstalling, changing service user configurations, and more.

Thanks so much for your notes. I feel your pain.

June 30, 2004 7:27 AM
 

Paul D said:

First, open up IE
Second, select Tools > Internet Options > click the Security tab
Third, select Internet > then click the Custom Level button to pull up Security Settings
Forth, scroll to the very bottom of the settings where it says 'User Authentication' > select the second option 'Automatic logon..' (if you want to be prompted for logon info > select the 'Prompt for username and password).

Also, I would set this the same for Local intranet

Hit 'OK' and close your browser. Open up IE again and go to your portal.

I hope this is what you were asking for and that it helps.
July 15, 2004 9:11 AM
 

Dave Burke said:

Paul D, This is excellent advice. Thanks! I didn't know about the auto login custom settings options. I'll definitely remember it.

The Cannot Complete This Action problem using the MS.Sharepoint.dll library has been solved by adding "impersonate=true" to the web.config. Below is the URL.

Thanks again for taking the time to point out the User Authentication setting to me.

http://weblogs.asp.net/dburke/archive/2004/06/30/170270.aspx
July 15, 2004 9:18 AM
 

Ralph Krausse said:

I got this error because I was using impersonation within my code WindowsIdentity(). After looking at my code, I actually didn't need this and it resolved that error message. I got the error message when I called the URL property of SPWeb AFTER I did the impersonation. Calling it before worked fine...

September 8, 2007 11:05 AM
 

phried said:

I had the same error (after the site ran fine for 15 months) when trying to delete files, directories, sites, anything.  I had checked everything possible on the web server and was at my wits end so finally I went on to the database server and found out that the disk was out of space!  The problem was that the transaction log had grown to 12GB and filled the drive.  A quick shrink and everything worked fine.

Don't flame me, I didn't setup the DB server.  Yes, I setup a db maint plan to keep that from happening again.  Sheesh that was ridiculous.  I wanted it to be something complicated and of course it was something simple.  Always is.

July 28, 2008 9:32 PM

Leave a Comment

(required)  
(optional)
(required)  
Add