all groups > dotnet component services > december 2003 >
You're in the

dotnet component services

group:

changing dll in com+ application


changing dll in com+ application Pasha
12/1/2003 6:21:12 PM
dotnet component services:
Hello
I've inherited an application written in c#. Everything works fine at the moment. However I need to make dome changes and here is where I meet my problem. The application is referencing a dll, which is a com+ application (a SLQ server proxy). If I build the solution as is, it fails as there are calls from the main project to the proxy which are no longer there. I have found the dll (but alas not the original code) which will enable me to reference the new dll and build the project with my changes without issue.
However, I'm not at all familiar with com+ and if I try and run the application now, I get an error as the com+ I assume is still using the old dll. So how can I make the com+ application use the correct dll. Sorry if my terminolgy is incorrect. But at this point I'm forced to stay with the old application and not make any changes

Thanks much appreciated in advance for any suggestions

RE: changing dll in com+ application BradLin NO[at]SPAM online.microsoft.com
12/2/2003 11:23:12 PM
Prash,
I'm not able to completely understand the scenario you have, given your
description. So I'll try to just answer the question.

[quoted text, click to view]
Remove the old dll from the COM+ app & install the new dll in the COM+ app.

How you accomplish this depends on what the dll was written in. If it's
unmanaged code, then just delete it from the COM+ app. Then install the
new version (given it's written in unmanaged code) by right-clicking on the
Components folder under the COM+ app, select New, Install New Component.
If it's written in managed code then I would recommend
1. regsvcs -u on the assembly currently in the COM+ app
2. gacutil -u on the namespace of the old dll.
3. gacutil -if on the namespace of the new dll.
4. regsvcs on the new assembly.

- Brad
RE: changing dll in com+ application Prasha
12/3/2003 11:11:16 AM
Thanks Brad, I added the dll, but Now I get an error stating that access is denied when I try start the app. It asks am I a member of the correct rols. The acct I am using a admin on the server, I've also added it to admin role in system app

RE: changing dll in com+ application BradLin NO[at]SPAM online.microsoft.com
12/3/2003 8:32:55 PM
Prash,
Sounds like you're on WS03. Check out the "Application-Level Access Checks
Enabled by Default" section of this paper:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cossdk/htm/
whatsnewcomplus_350z.asp?frame=true

HTH
- Brad
AddThis Social Bookmark Button