cannot complete this action

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Robert Phillips (robert.phillips_at_myfloridahouse.gov)
Date: 11/16/04


Date: Tue, 16 Nov 2004 14:52:46 -0500

I'm getting the infamous "cannot complete this action" error in a console
application. It only happens on my production server, which is a web farm
setup. I cannot get the simplest example to work. Everything is working
fine Sharepoint wise, as are my custom web services. So I don't think it is
a server setup issue.

The blog referenced below talks about the same error, but this seemed to be
in the context of a web app. I actually have the same code working fine in
a web app, it's the console application that will not work.

http://weblogs.asp.net/dburke/archive/2004/06/09/151660.aspx

When use the code below using the string URL to the site, I actually get the
error "could not find global configuration data..." I switched this code to
use the site's guid from the database and I get the "cannot complete this
action..." error.

SPSite siteCollection = new SPSite("http://Server_Name");
    SPWebCollection sites = siteCollection.AllWebs;

    foreach (SPWeb site in sites)
    {
        SPListCollection lists = site.Lists;

        Console.WriteLine("Site: " + site.Name + " Lists: " +
lists.Count.ToString());
    }

    Console.WriteLine("Press ENTER to continue");
    Console.ReadLine();



Relevant Pages

  • Re: Win SBS 2003: Retrieve User CALs: How ?
    ... Setup from Add/remove programs, and set the missing pieces to 'reinstall'. ... That should get your console back, and you can move forward from there. ... i can go to the Server Management Console and launch Licensing right? ...
    (microsoft.public.windows.server.sbs)
  • Re: Problem shelling to local console app from production server
    ... > console application: ... > When I transfer my ASP.Net project to the production server, ... MACHINE\ASPNET did not have any execute privileges. ...
    (microsoft.public.dotnet.framework.aspnet)
  • [9fans] off list - Re: recent plan9.iso on hosted kvm/qemu
    ... console, or it's falling over probing devices for the .ini file. ... Now it hangs right where 9load would normally say "no ethernet devices ... Do you happen to know who the support staff member is that setup your cron ...
    (comp.os.plan9)
  • Re: [9fans] off list - Re: recent plan9.iso on hosted kvm/qemu
    ... console, or it's falling over probing devices for the .ini file. ... Do you happen to know who the support staff member is that setup your cron ... He seems eager to help and doesn't mind that I send him numerous emails all day long... ...
    (comp.os.plan9)
  • Re: IPConfig under Linux
    ... i went into setup and redid the network setup and such and then in COnsole i ... typed ifdown eth0 and ifupeth0 and it goesn into the dertimining ip bit and ... > First type "setup" in some console. ... >> Download Spam Inspector, ...
    (linux.redhat.misc)