Web Part Development - Cannot Complete this action

Web Part Development - Cannot Complete this action

Post by joshua_jac » Sun, 09 Jan 2005 08:25:31


Hi all,

I have a development server where I have been working on web parts.
Specifically, I have three web parts in a single CAB file, and the web
parts do the following:
1. Read an XML file located on the server
2. Query a database on a SQL 2000 server (several times)
3. Compare the current user to audiences listed in the database

I have this working on my development server to my satisfaction.

However, when I install these web parts on the production server, they
consistently generate the "Cannot Complete this action. Try again."
error.

Major differences:
SharePoint uses a different service account on the production server
(each service account is an administrator to its respective windows
server, however). The Production Server also has Microsoft Content
Management Server 2002 installed with the SPS - CMS connector. The
production server has different (fewer) web parts installed. The
production server allows basic authentication in addition to windows
authentication in IIS. The production server has more than 20 areas,
and the development server has fewer. The development server uses MSDE
for it's back-end database. The production server is load-balancing
with hardware (called F5).

Apart from some peripheral web parts registered as safe, the web.config
is identical. Both machines can ping the database server, the XML file
exists where it needs to be on all servers. I've done stack traces,
but they don't mention a single function that I developed -- all
internal SharePoint stuff. None of the function calls sound like
anything I invoked.

Any help is appreciated, although I understand that I'm dealing with a
lot of variables, and a stupid, generic, useless error message.
 
 
 

Web Part Development - Cannot Complete this action

Post by joshua_jac » Fri, 22 Apr 2005 04:48:56

I just re-read some messages that I posted. Nobody had much to say on
this, and I wanted to comment on it, in case somebody else had a
similar issue.

The problem ended up being the AudienceManager object. I couldn't
explicitly "close" it. Our best guess... cosmic rays? The object is
simply damaged on the production server, and can't execute the close
command without dying. The same code will execute on my development
server. I decided to just write sloppy code, and not explicitly close
that object when I was done with it, which resolved the issue.

----------------------------------------
Hi all,

I have a development server where I have been working on web parts.
Specifically, I have three web parts in a single CAB file, and the web
parts do the following:
1. Read an XML file located on the server
2. Query a database on a SQL 2000 server (several times)
3. Compare the current user to audiences listed in the database

I have this working on my development server to my satisfaction.

However, when I install these web parts on the production server, they
consistently generate the "Cannot Complete this action. Try again."
error.

Major differences:
SharePoint uses a different service account on the production server
(each service account is an administrator to its respective windows
server, however). The Production Server also has Microsoft Content
Management Server 2002 installed with the SPS - CMS connector. The
production server has different (fewer) web parts installed. The
production server allows basic authentication in addition to windows
authentication in IIS. The production server has more than 20 areas,
and the development server has fewer. The development server uses MSDE
for it's back-end database. The production server is load-balancing
with hardware (called F5).

Apart from some peripheral web parts registered as safe, the web.config
is identical. Both machines can ping the database server, the XML file
exists where it needs to be on all servers. I've done stack traces,
but they don't mention a single function that I developed -- all
internal SharePoint stuff. None of the function calls sound like
anything I invoked.

Any help is appreciated, although I understand that I'm dealing with a
lot of variables, and a stupid, generic, useless error message.