473,791 Members | 3,179 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Placing a control on a form causes an error

Sometime when I place my usercontrol on a form I get a message that it can't
find a file that is referenced. The file is the only C# file in the solution
(say Library.DLL) .

I just noticed that the C# bin folder has a Debug and Release Folders which
contain Library.DLL, while vb bin contains Library.DLL.
Also, the file in question is the first file in the build sequence.
Also, that library shares a namespace with a VB library which inherits from
the C# library.

It's a real time waster. When it happens I close IDE, search and find all
the Library.DLL, delete them. Open Ide, rebuild and then I can continue.

I have no idea how to debug this. Any ideas??

Thanks
Nov 21 '05 #1
6 991
Is this on new or existing projects which contain this library ?
--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmv ujpotXjui/OFU".ToCharArra y()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar( Convert.ToInt16 (ch(i)) - 1)
Next
Process.Start(" mailto:" & New String(ch))
--
" Just Me" <gr****@a-znet.com> wrote in message
news:Ok******** ******@TK2MSFTN GP09.phx.gbl...
Sometime when I place my usercontrol on a form I get a message that it
can't find a file that is referenced. The file is the only C# file in the
solution (say Library.DLL) .

I just noticed that the C# bin folder has a Debug and Release Folders
which contain Library.DLL, while vb bin contains Library.DLL.
Also, the file in question is the first file in the build sequence.
Also, that library shares a namespace with a VB library which inherits
from the C# library.

It's a real time waster. When it happens I close IDE, search and find all
the Library.DLL, delete them. Open Ide, rebuild and then I can continue.

I have no idea how to debug this. Any ideas??

Thanks

Nov 21 '05 #2
I've been working on these projects, including the library, for about a year
and have been putting up with this problem for a very long time.

I've asked for help before but I guess nobody knows what's wrong.

Thanks for the interest.

"OHM ( Terry Burns )" <me@mine.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Is this on new or existing projects which contain this library ?
--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmv ujpotXjui/OFU".ToCharArra y()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar( Convert.ToInt16 (ch(i)) - 1)
Next
Process.Start(" mailto:" & New String(ch))
--
" Just Me" <gr****@a-znet.com> wrote in message
news:Ok******** ******@TK2MSFTN GP09.phx.gbl...
Sometime when I place my usercontrol on a form I get a message that it
can't find a file that is referenced. The file is the only C# file in the
solution (say Library.DLL) .

I just noticed that the C# bin folder has a Debug and Release Folders
which contain Library.DLL, while vb bin contains Library.DLL.
Also, the file in question is the first file in the build sequence.
Also, that library shares a namespace with a VB library which inherits
from the C# library.

It's a real time waster. When it happens I close IDE, search and find all
the Library.DLL, delete them. Open Ide, rebuild and then I can continue.

I have no idea how to debug this. Any ideas??

Thanks


Nov 21 '05 #3
Just a suggestion. Delete the reference in your project to the Library.dll.
Delete all Library.Dll's. Recompile the c# Lbrary source code in the debug
mode. That should put the Library.Dll in the C# debug folder. Next open
your project and create a reference to that Library.Dll. At least that will
eliminate the C# Release version. The Library.dll should also show up in
your vb project bin folder after you rebuild the vb project.

"Just Me" wrote:
I've been working on these projects, including the library, for about a year
and have been putting up with this problem for a very long time.

I've asked for help before but I guess nobody knows what's wrong.

Thanks for the interest.

"OHM ( Terry Burns )" <me@mine.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Is this on new or existing projects which contain this library ?
--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmv ujpotXjui/OFU".ToCharArra y()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar( Convert.ToInt16 (ch(i)) - 1)
Next
Process.Start(" mailto:" & New String(ch))
--
" Just Me" <gr****@a-znet.com> wrote in message
news:Ok******** ******@TK2MSFTN GP09.phx.gbl...
Sometime when I place my usercontrol on a form I get a message that it
can't find a file that is referenced. The file is the only C# file in the
solution (say Library.DLL) .

I just noticed that the C# bin folder has a Debug and Release Folders
which contain Library.DLL, while vb bin contains Library.DLL.
Also, the file in question is the first file in the build sequence.
Also, that library shares a namespace with a VB library which inherits
from the C# library.

It's a real time waster. When it happens I close IDE, search and find all
the Library.DLL, delete them. Open Ide, rebuild and then I can continue.

I have no idea how to debug this. Any ideas??

Thanks



Nov 21 '05 #4
I just noticed that in C# project properties I can make the dll go into bin
for both the release and debug versions. I don't know if that makes any
difference to anything.

Maybe I could do what you suggest but use the bin directory so the dll will
be there for both versions. Do you have any ideas.

Thanks
"Dennis" <De****@discuss ions.microsoft. com> wrote in message
news:8E******** *************** ***********@mic rosoft.com...
Just a suggestion. Delete the reference in your project to the
Library.dll.
Delete all Library.Dll's. Recompile the c# Lbrary source code in the
debug
mode. That should put the Library.Dll in the C# debug folder. Next open
your project and create a reference to that Library.Dll. At least that
will
eliminate the C# Release version. The Library.dll should also show up in
your vb project bin folder after you rebuild the vb project.

"Just Me" wrote:
I've been working on these projects, including the library, for about a
year
and have been putting up with this problem for a very long time.

I've asked for help before but I guess nobody knows what's wrong.

Thanks for the interest.

"OHM ( Terry Burns )" <me@mine.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
> Is this on new or existing projects which contain this library ?
> --
> OHM ( Terry Burns ) * Use the following to email me *
>
> Dim ch() As Char = "ufssz/cvsotAhsfbuTpmv ujpotXjui/OFU".ToCharArra y()
> For i As Int32 = 0 To ch.Length - 1
> ch(i) = Convert.ToChar( Convert.ToInt16 (ch(i)) - 1)
> Next
> Process.Start(" mailto:" & New String(ch))
> --
> " Just Me" <gr****@a-znet.com> wrote in message
> news:Ok******** ******@TK2MSFTN GP09.phx.gbl...
>> Sometime when I place my usercontrol on a form I get a message that it
>> can't find a file that is referenced. The file is the only C# file in
>> the
>> solution (say Library.DLL) .
>>
>> I just noticed that the C# bin folder has a Debug and Release Folders
>> which contain Library.DLL, while vb bin contains Library.DLL.
>> Also, the file in question is the first file in the build sequence.
>> Also, that library shares a namespace with a VB library which inherits
>> from the C# library.
>>
>> It's a real time waster. When it happens I close IDE, search and find
>> all
>> the Library.DLL, delete them. Open Ide, rebuild and then I can
>> continue.
>>
>> I have no idea how to debug this. Any ideas??
>>
>> Thanks
>>
>>
>
>


Nov 21 '05 #5
I would just try the debug version first after deleting all the .dll's. If
that works, you could then try the other. Note that when you create a
reference to the .dll in your vb.net project, it will copy and keep the
latest version of the Library.dll in the vb.net project bin directory.
However, everytime you build your Vb.Net project, it will get the latest
version of the Library.dll that was referenced and copy it to the Vb.Net
project bin directory.

"Just Me" wrote:
I just noticed that in C# project properties I can make the dll go into bin
for both the release and debug versions. I don't know if that makes any
difference to anything.

Maybe I could do what you suggest but use the bin directory so the dll will
be there for both versions. Do you have any ideas.

Thanks
"Dennis" <De****@discuss ions.microsoft. com> wrote in message
news:8E******** *************** ***********@mic rosoft.com...
Just a suggestion. Delete the reference in your project to the
Library.dll.
Delete all Library.Dll's. Recompile the c# Lbrary source code in the
debug
mode. That should put the Library.Dll in the C# debug folder. Next open
your project and create a reference to that Library.Dll. At least that
will
eliminate the C# Release version. The Library.dll should also show up in
your vb project bin folder after you rebuild the vb project.

"Just Me" wrote:
I've been working on these projects, including the library, for about a
year
and have been putting up with this problem for a very long time.

I've asked for help before but I guess nobody knows what's wrong.

Thanks for the interest.

"OHM ( Terry Burns )" <me@mine.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
> Is this on new or existing projects which contain this library ?
> --
> OHM ( Terry Burns ) * Use the following to email me *
>
> Dim ch() As Char = "ufssz/cvsotAhsfbuTpmv ujpotXjui/OFU".ToCharArra y()
> For i As Int32 = 0 To ch.Length - 1
> ch(i) = Convert.ToChar( Convert.ToInt16 (ch(i)) - 1)
> Next
> Process.Start(" mailto:" & New String(ch))
> --
> " Just Me" <gr****@a-znet.com> wrote in message
> news:Ok******** ******@TK2MSFTN GP09.phx.gbl...
>> Sometime when I place my usercontrol on a form I get a message that it
>> can't find a file that is referenced. The file is the only C# file in
>> the
>> solution (say Library.DLL) .
>>
>> I just noticed that the C# bin folder has a Debug and Release Folders
>> which contain Library.DLL, while vb bin contains Library.DLL.
>> Also, the file in question is the first file in the build sequence.
>> Also, that library shares a namespace with a VB library which inherits
>> from the C# library.
>>
>> It's a real time waster. When it happens I close IDE, search and find
>> all
>> the Library.DLL, delete them. Open Ide, rebuild and then I can
>> continue.
>>
>> I have no idea how to debug this. Any ideas??
>>
>> Thanks
>>
>>
>
>


Nov 21 '05 #6
Thanks a lot

"Dennis" <De****@discuss ions.microsoft. com> wrote in message
news:63******** *************** ***********@mic rosoft.com...
I would just try the debug version first after deleting all the .dll's. If
that works, you could then try the other. Note that when you create a
reference to the .dll in your vb.net project, it will copy and keep the
latest version of the Library.dll in the vb.net project bin directory.
However, everytime you build your Vb.Net project, it will get the latest
version of the Library.dll that was referenced and copy it to the Vb.Net
project bin directory.

"Just Me" wrote:
I just noticed that in C# project properties I can make the dll go into
bin
for both the release and debug versions. I don't know if that makes any
difference to anything.

Maybe I could do what you suggest but use the bin directory so the dll
will
be there for both versions. Do you have any ideas.

Thanks
"Dennis" <De****@discuss ions.microsoft. com> wrote in message
news:8E******** *************** ***********@mic rosoft.com...
> Just a suggestion. Delete the reference in your project to the
> Library.dll.
> Delete all Library.Dll's. Recompile the c# Lbrary source code in the
> debug
> mode. That should put the Library.Dll in the C# debug folder. Next
> open
> your project and create a reference to that Library.Dll. At least that
> will
> eliminate the C# Release version. The Library.dll should also show up
> in
> your vb project bin folder after you rebuild the vb project.
>
> "Just Me" wrote:
>
>> I've been working on these projects, including the library, for about
>> a
>> year
>> and have been putting up with this problem for a very long time.
>>
>> I've asked for help before but I guess nobody knows what's wrong.
>>
>> Thanks for the interest.
>>
>> "OHM ( Terry Burns )" <me@mine.com> wrote in message
>> news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
>> > Is this on new or existing projects which contain this library ?
>> > --
>> > OHM ( Terry Burns ) * Use the following to email me *
>> >
>> > Dim ch() As Char =
>> > "ufssz/cvsotAhsfbuTpmv ujpotXjui/OFU".ToCharArra y()
>> > For i As Int32 = 0 To ch.Length - 1
>> > ch(i) = Convert.ToChar( Convert.ToInt16 (ch(i)) - 1)
>> > Next
>> > Process.Start(" mailto:" & New String(ch))
>> > --
>> > " Just Me" <gr****@a-znet.com> wrote in message
>> > news:Ok******** ******@TK2MSFTN GP09.phx.gbl...
>> >> Sometime when I place my usercontrol on a form I get a message that
>> >> it
>> >> can't find a file that is referenced. The file is the only C# file
>> >> in
>> >> the
>> >> solution (say Library.DLL) .
>> >>
>> >> I just noticed that the C# bin folder has a Debug and Release
>> >> Folders
>> >> which contain Library.DLL, while vb bin contains Library.DLL.
>> >> Also, the file in question is the first file in the build sequence.
>> >> Also, that library shares a namespace with a VB library which
>> >> inherits
>> >> from the C# library.
>> >>
>> >> It's a real time waster. When it happens I close IDE, search and
>> >> find
>> >> all
>> >> the Library.DLL, delete them. Open Ide, rebuild and then I can
>> >> continue.
>> >>
>> >> I have no idea how to debug this. Any ideas??
>> >>
>> >> Thanks
>> >>
>> >>
>> >
>> >
>>
>>
>>


Nov 21 '05 #7

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

Similar topics

5
8174
by: Codemonkey | last post by:
Hi, When I first installed Visual Studio 2003, I noticed I was getting the follow error when showing a form: A first chance exception of type 'System.ArithmeticException' occurred in system.drawing.dll Additional information: Overflow or underflow in the arithmetic operation It is being thrown on the line that attempts to add the controls to the
12
1333
by: Logan | last post by:
Hi, I am not a very experienced asp.net developer, but have a fair idea on how it works & better idea on vb.net. My requirement is to place an asp.net page on a website - which currently has asp & html pages (not asp.net) - but this server has asp.net installed on it (.NET run time files). I can only access this server by uploading files to it via an ftp program. i created a very simple asp.net project (hello world) - to display a...
2
9855
by: ~~~ .NET Ed ~~~ | last post by:
I have a problem (don't we all?). I have a web form with multiple modules, some of these modules have an ASP.NET (server run) button. OK, now I have UserControlX which has one such button (say Login). In that user control I defined both the Command and Click events for the button and placed a break point on it (in addition to traces). This user control is then included in the main form within the Form element/tags. Both the user control...
0
2488
by: MarkD | last post by:
I have an ASP.NET (VB.NET) application that calls all VB6 COM DLL via Interop. The DLL uses functionality contained in a Custom OCX Control (Also VB6) that in turn contains a standard TreeView control. The Custom OCX is not used for visual purposes, but has some functionality that we require (hence hosting an OCX in a DLL). Everything worked fine until we installed the latest service pack for each respective windows operating system:...
1
1652
by: Shawn Eary | last post by:
Hello Everyone: I used VB.NET 2003 Standard to create a User Control which I named PersonControl and then overrode its OnLoad routine to use SQL commands to populate its sub-controls. When I tried to use the Form Designer to add my PersonControl to a form in my application, I got the following error dialog box: Title: Microsoft Development Environment Text: The ConnectionString property has not been initialized.
2
8631
by: Scott | last post by:
I have a BeforeUpdate Event Procedure as below and got an error message. BeforeUpdate Event Procedure If IsNull() Then = Now() Else = Now() End If
13
2002
by: PW | last post by:
Hi, This is bizarre. I've check and rechecked the spelling, cut and paste the name of the form (when trying to rename the form) and the control yet I still get a parameter prompt when the form runs. I've even deleted the control and started over. This is the code for the recordsource of the form: "SELECT * FROM qryGuestStorePurchases_pw WHERE
9
2434
by: timnels | last post by:
I have an issue where I have a user control that is launched into a floating form. At some point later, I allow the user to "unfloat" the user control by reparenting it on a split container in another form. Problem is if I wake a tooltip when the window is floated, and then try the same thing when it is reparented, the app crashes with " Cannot access a disposed object.Object name: 'Form'. Presumably, this is a result of the tooltips...
14
8158
by: AdamOnAccess | last post by:
I have an access form with a web browser control and I'm trying to enable it to resize with the form. The code causes the web browser control to shink and grow to the exact dimensions of the form, and leaves space at the top for the rest of the access form... Private Sub Form_Resize() On Error GoTo ResizeError 'resize the browser object with the form 'Turn off screen redraw Dim dblHeaderHeight As Double dblHeaderHeight = 1.5833
0
9666
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
10419
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
7531
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
6770
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
5424
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...
0
5552
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4100
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
2
3709
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2910
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.