Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / October 2005

Tip: Looking for answers? Try searching our database.

RegAsm warning: No types were registered

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Achim Domma (SyynX Solutions GmbH) - 06 Oct 2005 21:53 GMT
Hi,

I have the following class which I want to expose as COM object, but
regasm tells me, that no types were registered.

namespace SyynX
{
    [Guid("4ADD0E9C-E7CE-42fd-A920-D3C4E6AF29E8")]
    public interface ISVG
    {
        void Load(string xml);
        void Save(string path);
    };

    [ProgId("SyynX.Gfx.2")]
    [Guid("AC230A26-53D1-4b80-883F-C4D9AC33F03D")]
    public class Gfx : ISVG
    {
        public Gfx() {...}
        public void Load(string xml) {...}
        public void Save(string path) {...}
    }
}

The class and the interface are public, there is no ComVisible(false) in
my project. I also tried to set ComVisible(true) without success.
Obviously there is a default ctor without parameters and the assembly is
signed.

Could somebody give me a hint what might be going wrong?

regards,
Achim
Phil Wilson - 08 Oct 2005 01:32 GMT
Have you got any dependencies (references) that can't be loaded? When I try
a complete class library with code as below it regasms fine.

using System;
using System.Runtime.InteropServices;

namespace SyynX
{
[Guid("4ADD0E9C-E7CE-42fd-A920-D3C4E6AF29E8")]
public interface ISVG
{
 void Load(string xml);
 void Save(string path);
};

[ProgId("SyynX.Gfx.2")]
[Guid("AC230A26-53D1-4b80-883F-C4D9AC33F03D")]
public class Gfx : ISVG
{
 public Gfx()
 {}
 public void Load(string xml)
 {
  string x = xml;
 }
 public void Save(string path)
 {
  string x = path;
 }
}
}

1.1 framework.

Signature

Phil Wilson [MVP Windows Installer]
----

> Hi,
>
[quoted text clipped - 29 lines]
> regards,
> Achim
Achim Domma (SyynX Solutions GmbH) - 08 Oct 2005 13:33 GMT
> Have you got any dependencies (references) that can't be loaded? When I try
> a complete class library with code as below it regasms fine.

I realy messed up my dependencies with a very stupid error and your hint
brought me back to the right way. Thanks a lot!

Achim

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.