473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error : there are no registrable types in the built assembly

I'm trying to create a com object, code looks fine for me ( like other com
objects I've created )
but this time I'm getting error : "There are no registrable types in the
built assembly"
Anyone knows how to fix it ?

About my object :
+ In project options I have option "Register for COM Interop" checked
+ In my COM Object I'm referencing other C# dll which are not signed (
without strong names )
+ My COM object is not signed

Here you can see some code :

using System.Runtime.InteropServices;

using System;

using System.Data;

using System.Data.OleDb;

using System.IO;

using System.Text;

using OCSClassLibraries.VopUtilities;

using OCSClassLibraries.FileUtilities;

namespace OCS_BlueContactlessPass2_COM

{
[Guid("15D1806A-B83C-4d74-806C-28E9FF647E9A")]

public interface InputFileGenerator_Interface

{

bool GenerateJobFile(char batchCode, out string error);

}
// Events interface

[Guid("6CF790ED-203C-4a06-A1E7-C0F539E2846F"),

InterfaceType(ComInterfaceType.InterfaceIsIDispatc h)]

public interface InputFileGenerator_Events

{

}
[Guid("E6AE937D-DEC8-4b15-B6E2-D354B93E16FD"),

ClassInterface(ClassInterfaceType.None),

ComSourceInterfaces(typeof(InputFileGenerator_Even ts))]

public class InputFileGenerator : InputFileGenerator_Interface

{

string wipFile;

string inputFileDir; // input JVD file for VOP1015
public InputFileGenerator(string wipFileName, string inputFileDir)

{

this.wipFile = wipFileName;

this.inputFileDir = inputFileDir;

}

........................ etc
Thanks,
Roman Prigozhin
Nov 15 '05 #1
4 2100
Hi,

Ensure you don't have [assembly:ComVisible(false)] in AssemblyInfo.cs.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Prigozhin Roman" <pr************@yahoo.com> wrote in message
news:uB**************@TK2MSFTNGP10.phx.gbl...
I'm trying to create a com object, code looks fine for me ( like other com
objects I've created )
but this time I'm getting error : "There are no registrable types in the
built assembly"
Anyone knows how to fix it ?


Nov 15 '05 #2
I've checked this, and I don't have this line in my AssemblyINfo.cs file.
These are the only parameters I have in the file.
[assembly: AssemblyTitle("")]

[assembly: AssemblyDescription("")]

[assembly: AssemblyConfiguration("")]

[assembly: AssemblyCompany("")]

[assembly: AssemblyProduct("")]

[assembly: AssemblyCopyright("")]

[assembly: AssemblyTrademark("")]

[assembly: AssemblyCulture("")]

[assembly: AssemblyDelaySign(false)]

[assembly: AssemblyKeyFile("")]

[assembly: AssemblyKeyName("")]
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:eY**************@TK2MSFTNGP09.phx.gbl...
Hi,

Ensure you don't have [assembly:ComVisible(false)] in AssemblyInfo.cs.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Prigozhin Roman" <pr************@yahoo.com> wrote in message
news:uB**************@TK2MSFTNGP10.phx.gbl...
I'm trying to create a com object, code looks fine for me ( like other com objects I've created )
but this time I'm getting error : "There are no registrable types in the built assembly"
Anyone knows how to fix it ?

Nov 15 '05 #3
Error was finaly found, the problem is in overloaded constructor.
[Guid("15D1806A-B83C-4d74-806C-28E9FF647E9A")]

public interface InputFileGenerator_Interface

{

bool GenerateJobFile(char batchCode, out string error);

}
// Events interface

[Guid("6CF790ED-203C-4a06-A1E7-C0F539E2846F"),

InterfaceType(ComInterfaceType.InterfaceIsIDispatc h)]

public interface InputFileGenerator_Events

{

}
[Guid("E6AE937D-DEC8-4b15-B6E2-D354B93E16FD"),

ClassInterface(ClassInterfaceType.None),

ComSourceInterfaces(typeof(InputFileGenerator_Even ts))]

public class InputFileGenerator : InputFileGenerator_Interface

{

private string wipFile;

private string inputFileDir; // input JVD file for VOP1015
public InputFileGenerator(string wipFileName, string inputFileDir) <----
this is the error

{

this.wipFile = wipFileName;

this.inputFileDir = inputFileDir;

}

....... etc
Nov 15 '05 #4
What's strange still is that the compiler (or the COM registration tool)
hasn't complained about parameterized constructors at all. These are
incompatible with COM by definition, so I'd expect at least a warning
message to be issued.

The actual error produced, obviously, is loosely related to the problem.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Prigozhin Roman" <pr************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Error was finaly found, the problem is in overloaded constructor.
[Guid("15D1806A-B83C-4d74-806C-28E9FF647E9A")]

public interface InputFileGenerator_Interface

{

bool GenerateJobFile(char batchCode, out string error);

}
// Events interface

[Guid("6CF790ED-203C-4a06-A1E7-C0F539E2846F"),

InterfaceType(ComInterfaceType.InterfaceIsIDispatc h)]

public interface InputFileGenerator_Events

{

}
[Guid("E6AE937D-DEC8-4b15-B6E2-D354B93E16FD"),

ClassInterface(ClassInterfaceType.None),

ComSourceInterfaces(typeof(InputFileGenerator_Even ts))]

public class InputFileGenerator : InputFileGenerator_Interface

{

private string wipFile;

private string inputFileDir; // input JVD file for VOP1015
public InputFileGenerator(string wipFileName, string inputFileDir) <----
this is the error

{

this.wipFile = wipFileName;

this.inputFileDir = inputFileDir;

}

...... etc


Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chris Peacock | last post by:
Using Visual Studio .NET 2003, I'm intermittently getting the VB.NET error BC30002 ("Type ... is not defined.") when I build a particular assembly that I have written. This error does not occur every...
4
by: scottrm | last post by:
We have two developers, call them A and B, (on Windows XP) developing a number of asp.net web sites on a shared server (Windows 2003). Everything has been ok but recently for no apparent reason...
1
by: Dan | last post by:
Hi everyone, I have a web application that was built in .net. I received the source code and the DLL files, compiled the application, and when I run it on IIS, I get the following error. ...
1
by: mrkurt | last post by:
I've built a few webservices locally that work just fine. Deployed them to a server and I get the following exception. This exception happens on even the most basic webmethod call. Hitting the...
12
by: TC | last post by:
I'm trying to figure out what the "Friend" keyword does. I know it specifies that "elements are accessible from within the same assembly", but that doesn't help because I don't know what an...
6
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my...
4
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
2
by: akhilesh.noida | last post by:
I am trying to compile glibc-2.5 for ARM based board. But I am getting errors while configuring it. Please check and give your inputs for resolving this. configure command : $...
55
by: tonytech08 | last post by:
How valuable is it that class objects behave like built-in types? I appears that the whole "constructor doesn't return a value because they are called by the compiler" thing is to enable...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.