Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 10th, 2006, 12:36 PM
Authorized User
Join Date: Oct 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default Invalid ServicedComponent

Hi all,

I have the same problem when I tried to register my .Net DLL on a Window Server 2003 SP1, and codes of my test dll is very simple as below. It's strong name dll when I compiled. However, I still have problem to register with this command

c:\regsvcs MyDll.dll

Does anyone see any wrong with my codes.


John Dang

 /* Error *********************************/

The following installation error occurred:
1: Invalid ServicedComponent-derived classes were found in the assembly.
(Classes must be public, concrete, have a public default constructor, and meet a
ll other ComVisibility requirements)
    MyCompany.MyDLL.MyServer: Unspecified error

 /Code********************************************** **************/

using System;
using System.Reflection;
using System.EnterpriseServices;

[assembly: ApplicationName("MyDll")]
[assembly: Description("Sample Application for Enterprise Services")]
[assembly: ApplicationActivation(ActivationOption.Library)]

namespace MyCompany.MyDLL
    public class MyServer: ServicedComponent
        public MyServer(){}
        public String GetString()
           return this.GetType().Assembly.FullName;

Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid Selected Value RubyRue ASP.NET 1.0 and 1.1 Basics 2 November 5th, 2007 02:48 AM
ServicedComponent Proxies - Please HELP pwittig General .NET 0 September 21st, 2006 06:46 AM
ServicedComponent proxies - HELP pwittig .NET Web Services 0 September 21st, 2006 06:45 AM
Help with Invalid bracketing of name Corey Access VBA 1 February 18th, 2006 06:13 AM
Invalid use of property hanna VB.NET 2002/2003 Basics 1 March 31st, 2004 06:31 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.