|
Hi I have developed one COM+ applicaition. Steps followed in developing COM+application- 1. Created class library project 2. Included System.EnterpriseServices namespace 3. Inherited class by Serviced COmponent 4. In Assemblyinfo.cs file i again inherited by system.enterprise service 5. Modified [assembly: ComVisible(false)] to [assembly: ComVisible(true)] 6. Added follwoing tag in assemblyinfo.cs file [assembly: ApplicationName("MTSTest")] [assembly: ApplicationActivation(ActivationOption.Library)] [assembly: ApplicationAccessControl(true)] 7. signed the assembly using strong name 8. register the dll in MTS using following command using visual studio command prompt regsvcs "......path of assembly with assembly name" 9. I could see the service with that name in Component Services -> Computers -> My Computer -> COM+Applications 10. i tried to export MSI using that service, MSI is created in that machine successfully at the given location. After that i tried to install that MSI from that location, but i got the following error- "Error registering COM+ application. Contact you support personnel for more information" Any pointer to this appriciated. Thanks, Anurag Bajpai
- Moved byYiChun ChenMSFTTuesday, August 04, 2009 4:31 AMDeployment issue (From:.NET Framework Setup)
- Moved byFigo FeiMSFTMonday, August 03, 2009 3:49 PMUnable to move thread
-
| | Anurag Bajpai Friday, July 31, 2009 9:30 AM | Hi Anurag, I am moving this thread from Base ".NET FrameworkSetup" forum to the "ClickOnce and Setup & Deployment Projects" forum, since the issue is related to deployment. There are more deployment experts in the "ClickOnce and Setup & Deployment Projects" forum. Thanks
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. | | YiChun Chen Monday, August 03, 2009 9:05 AM | Hi Anurag Bajpai, The step you have taken is correct to use COM+ in .NET CLR based application. Actually if you don't register your component with COM+, it will attempt to auto-register when you first run it. That require administrator privilege. The error message indicate that these component doesn't successfully registered. The reason is not easy to find, I have once met a similar problem with the antivirus software. Antivirus software's duty is to protect system register and that cause the COM+ register failed. So delete the registered COM+ and do the following. 1. Login Windows as administrator. 2. If it is Vista/Win7 with UAC, please run your application as admin. 3. Do not manually register it, let it auto-register. 4. Turn off antivirus software protection temporarily when registering. 5. If it failed, run cmd as admin to register it. Please inform me your test result. Sincerely, Kira Qian Please mark the replies as answers if they help and unmark if they don't.- Marked As Answer byKira QianMSFT, ModeratorMonday, August 10, 2009 1:36 AM
- Unmarked As Answer byKira QianMSFT, ModeratorMonday, August 10, 2009 5:11 AM
-
| | Kira Qian Wednesday, August 05, 2009 2:34 AM | HI Kiran, Sorry for the late response, i tried the solution given by you on couple of machines, but I am still getting the same message. Thanks, Anurag | | Anurag Bajpai Monday, August 10, 2009 4:41 AM | Hi, So you have tried auto-register? It appear to the services but still cannot run?
Please mark the replies as answers if they help and unmark if they don't. | | Kira Qian Monday, August 10, 2009 5:18 AM | Hi Kira, I have tried this option also, didn't get succeed. :( Thanks, Anurag | | Anurag Bajpai Wednesday, August 12, 2009 3:22 PM |
|