473,804 Members | 3,108 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

compiler error BC30652

Hi Folks!
I am developing with VB ASP .net and C#. I received an error
while compiling, BC30652. This error says that a reference to an
assembly missing.

The Details are this.
1 VB ASP.net web application - this is the component where the error
exists.
2 VB class project containing our credit card transactions.
3 C# class project with our datastore utility (static) access methods
, IE SQL Database.

in the ASP event for a webform button click, I create the VB credit
card classes and fill appropriate data from the web form. I then pass
these classes to a static C# datastore class method. This saves the
data to the database prior to the actual transaction in the VB
classes. Finaly I update the database with the responses from the
credit card transaction.

example: (in pseudo code)

VB Class assembly *************** ****
public class (VB) CreditCardTrans action
public variables {Transaction information etc...}

public function commit() as CreditCardRespo nse ' commits the
credit transaction to provider
...
end function
End class

public class (VB same assembly as above) CreditCardRespo nse
public variables {Response information filled in by commit}
end class

C# Class assembly *************** *****
public class DataStore{
// more util functions for generic database stuff
}

public class (C#) CreditCardDatab aseUtil : DataStore{
public static CreditCardRespo nse saveToDataBase(
CreditCardTrans action trans){
...
}
public static updateToDataBas e( CreditCardRespo nse resp){
}
}

ASP Project codeBehind: ***************
public sub On_Click()
dim trans as new CreditCardTrans action()
trans.{Set transaction information etc..}

saveCCToDataBas e.saveToDataBas e(trans) '{Error blue line
under trans}

dim response as CreditCardRespo nse = trans.commit()

updateToDataBas e(response) '{Error blue line under response}

end sub
}

The error BC30652 only applies to the paramaters of the method calls
for the datastore class, save and update ToDataBase.

I find this extremely weird. I have references to my VB and C#
classes in the ASP Project references. But the error insists I am
missing a reference to an assembly. What's more weird is trans is
created above the error with no warning at all. And if I remove the
datastore calls the ASP project compiles fine.

My Workaround was to change the datastore parameters of the save and
update methods from the transaction and response classes to Object
classes. In both those methods I check for the appropriate class by
if object.GetType == typeof(appropri ateclass);

but I am so confused as to why this happened. Anyone with any ideas?
How to prevent this in the future? Should I rely more on interfaces
to interact with an ASP project?

Thanks!

Erik
Nov 18 '05 #1
2 3384
Do you have project references or file references? Have you tried changing
them?

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.c om/info/cpyright.htm"
Nov 18 '05 #2
It's strange. I found another person with the same problem as me.
And he discovered more than I.

As you know the strangeness is the fact that you can create an object
of a type, reference it and such. but once you pass it off to the
datastore. Boom..

Turns out the exact scenario is, passing a VB class to a C# class of
different assemblies. Now the curious thing is in how you specify the
references. A DLL reference works, a project reference does not(as in
my case)

I was not happy with this so I ended up converting all the VB code to
C# and all is well. :)

Thanks for your response!

Erik
an*****@online. microsoft.com (Andy Mortimer [MS]) wrote in message news:<7t******* *******@cpmsftn gxa10.phx.gbl>. ..
Do you have project references or file references? Have you tried changing
them?

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.c om/info/cpyright.htm"

Nov 18 '05 #3

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

Similar topics

10
2574
by: Bjorn | last post by:
I'm using interfaces in C++ by declaring classes with only pure virtual methods. If then someone wants to implement the interface they needs to inherit from the class. If the implementing class forgets to implement some method I normally get a compile error(if the class is created in some way of course). When using the Visual Studio 6 compiler however, it does not generate a compile error in this case: - I have a implementing class A...
2
5842
by: Mary | last post by:
Hello, I am having a problem with the cl compiler. I have written a C class (RegConnect.c) which uses Win32 API functions such as RegOpenKey, RegCloseKey etc. Initially when I was trying to create a dll, using the cl compiler I was getting many unresolved external errors, Example 1 below (8 in total, 7 to do with the registry function calls and 1 from wsprintfA call) as I hadn't included the AdvAPI32.lib file. So I created a LINK...
0
2406
by: rollasoc | last post by:
Hi, I seem to be getting a compiler error Internal Compiler Error (0xc0000005 at address 535DB439): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around this problem, try simplifying or changing the program near the locations listed below. Locations at the top of the list are closer to the point at which the
1
13256
by: Ayende Rahien | last post by:
reparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 53168B12): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around this problem,
3
5269
by: Mark Rockman | last post by:
------ Build started: Project: USDAver2, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 535F072A): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around this problem, try simplifying or changing the program near the locations listed below. Locations at the top of the list are...
4
3327
by: David Sworder | last post by:
Consider the following line of code (it's not important what it does): resp.DocItem=Relations.SelectDocItems_BySearchString(req.SearchPhrase); It turns out that this line is in error. The property 'DocItem' should be 'DocItems.' The problem is that instead of notifying me of where the problem has occurred, the compiler just crashes with an "internal error" (see bottom of this message). Now if I were to write: ...
6
2730
by: David Lack | last post by:
Hi, I recently installed a 60-day trial of .NET 2003 on my development system. I made tests with previous personal projects (which compiled ok with VC6) and some open source files, and keep facing the same problem with many of them: I keep getting errors such as: ....\WinUser.h(8028): fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701)
0
2476
by: Sam Vanderstraeten | last post by:
Hi, - VB.NET - Visual Studio 2002 - 2 Solutions - Next errormessages in tasklist: ---------------------------- C:\Inetpub\wwwroot\myProject\BlahBlah.vb(92): Reference required to assembly 'ClassFormConfig' containing the type
27
3078
by: Dave | last post by:
I'm having a hard time tying to build gcc 4.3.1 on Solaris using the GNU compilers. I then decided to try to use Sun's compiler. The Sun Studio 12 compiler reports the following code, which is in the source (gcc-4.3.1/gcc/c-common.c) of gcc 4.3.1, is a syntax error. I'm inclined to agree, as it is like no C I have ever met. what is "C_COMMON_FIXED_TYPES (, fract);" supposed to mean? Could it be
0
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10564
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10308
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9134
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7609
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6846
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5513
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2981
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.