473,399 Members | 4,177 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,399 software developers and data experts.

class library

Hi !

I created a class library and in it I have a class that call
"ConfigurationManager" to find out what type of database I work and the
connection string.When I call this class from a form, everithing is running
well, no errors.When I call this class from a custom control I receive the
message "Object reference not set to an instance of an object"
Does anyoane know what is happening ?

Thanks,
Mihai
Oct 10 '06 #1
8 2408
Mihai,

You have somewhere not instanced an object, try to find that in your code.
For us that is impossible, this newsgroup has not the possibility to look
through that video camera on your head.

Cor

"Mihai Velicu" <bv*****@telus.netschreef in bericht
news:ihCWg.6769$P7.2840@edtnps89...
Hi !

I created a class library and in it I have a class that call
"ConfigurationManager" to find out what type of database I work and the
connection string.When I call this class from a form, everithing is
running well, no errors.When I call this class from a custom control I
receive the message "Object reference not set to an instance of an object"
Does anyoane know what is happening ?

Thanks,
Mihai

Oct 10 '06 #2
So this line work perfectly if from a form I call the class that contain
this line
mConnectionString =
ConfigurationManager.ConnectionStrings(DataBaseCon nectionName).ConnectionString.ToString()

In a custom control that reside in a control library if i call the class
that reside in a library class and that has somewhere in a method this line,
is not working.Gave me that error message.

So don't be rude with comments like that one bellow.I tried a couple of
hours to see what is happening - debugging and serching in MSDN but
unfortunately with no results.That why I ask help on this newsgroup.

Regards,
Mihai
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:Om*************@TK2MSFTNGP03.phx.gbl...
Mihai,

You have somewhere not instanced an object, try to find that in your code.
For us that is impossible, this newsgroup has not the possibility to look
through that video camera on your head.

Cor

"Mihai Velicu" <bv*****@telus.netschreef in bericht
news:ihCWg.6769$P7.2840@edtnps89...
>Hi !

I created a class library and in it I have a class that call
"ConfigurationManager" to find out what type of database I work and the
connection string.When I call this class from a form, everithing is
running well, no errors.When I call this class from a custom control I
receive the message "Object reference not set to an instance of an
object"
Does anyoane know what is happening ?

Thanks,
Mihai


Oct 10 '06 #3
Mihai,

Don't you find your own question rude, asking something and giving not any
information. Is your configuration manager a shared class or has it to be
instanced, nothing that you show.

There should be a reason why it is not working, but even with this simple
code string we cannot see it, you suppose we start a kind of guessing
context. There is not a kind of wonder that protects it to be working in
this situation.

However as most people than reply, we don't have to anwer your questions, we
just can ignore it.

Cor

"Mihai Velicu" <bv*****@telus.netschreef in bericht
news:uaFWg.4579$P7.1012@edtnps90...
So this line work perfectly if from a form I call the class that contain
this line
mConnectionString =
ConfigurationManager.ConnectionStrings(DataBaseCon nectionName).ConnectionString.ToString()

In a custom control that reside in a control library if i call the class
that reside in a library class and that has somewhere in a method this
line, is not working.Gave me that error message.

So don't be rude with comments like that one bellow.I tried a couple of
hours to see what is happening - debugging and serching in MSDN but
unfortunately with no results.That why I ask help on this newsgroup.

Regards,
Mihai
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:Om*************@TK2MSFTNGP03.phx.gbl...
>Mihai,

You have somewhere not instanced an object, try to find that in your
code. For us that is impossible, this newsgroup has not the possibility
to look through that video camera on your head.

Cor

"Mihai Velicu" <bv*****@telus.netschreef in bericht
news:ihCWg.6769$P7.2840@edtnps89...
>>Hi !

I created a class library and in it I have a class that call
"ConfigurationManager" to find out what type of database I work and the
connection string.When I call this class from a form, everithing is
running well, no errors.When I call this class from a custom control I
receive the message "Object reference not set to an instance of an
object"
Does anyoane know what is happening ?

Thanks,
Mihai



Oct 10 '06 #4

Mihai Velicu wrote:
Hi !

I created a class library and in it I have a class that call
"ConfigurationManager" to find out what type of database I work and the
connection string.When I call this class from a form, everithing is running
well, no errors.When I call this class from a custom control I receive the
message "Object reference not set to an instance of an object"
Does anyoane know what is happening ?

Thanks,
Mihai
Mihai,

Can you give show us your app.config (obviously, change any sensitive
data :)... And maybe the method where you are calling this.

Thanks,

--
Tom Shelton

Oct 10 '06 #5
I'm using Factory model to determine at runtime what kind of database I'm
using and to get the connection string from app.config.

I'm using the "ConfigurationManager " static class provided by .Net
framework 2.0.

I marked in the code where the error is. I repeat again, from a form
everithing is running properly only from a user control that reside in a
control library is the problem. It seems I have to declare somehow the
static method in the code .
because the ConfigurationManager is a static method I cannot use New....

If you want to help me
Create a control library and in it, a control and put this code and try to
execute and you can see the results I mean the error message.You have to add
reference to System.Configuration.
Bellow is the code and App.Config.

Thank you very much !
Mihai

The code is :

Imports System
Imports System.Data
Imports System.Data.Common
Imports System.Configuration
Public Class NrSystemForAccounts
'Private gts As GenericDb.GenericDbWrapper.GenericTableServices
Private dt As DataTable
Private mConnectionString As String
Private mFactoryName As String
Private mFactory As DbProviderFactory
Private mFactoryConnection As DbConnection
Private mFactoryCommand As DbCommand
Private mDataAdapter As DbDataAdapter

Private Sub SetFactory(ByVal DataBaseConnectionName As String)

!!!!!!!! The error is in the line bellow :"Object reference not set to an
instance of an object"

mConnectionString =
ConfigurationManager.ConnectionStrings(DataBaseCon nectionName).ConnectionStr
ing.ToString()
mFactoryName =
ConfigurationManager.ConnectionStrings(DataBaseCon nectionName).ProviderName.
ToString()
mFactory = DbProviderFactories.GetFactory(mFactoryName)
End Sub

Private Sub NrSystemForAccounts_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
Me.SetFactory("DatabaseConnection1")
End sub
End class
The App.config code is :

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- This section defines the connections and database providers -->
<connectionStrings>

<add name="DatabaseConnection1"
connectionString="Persist Security Info=False;Integrated
Security=SSPI;database=Conta;server=(local);"
providerName="System.Data.SqlClient" />
<add name="DatabaseConnection2"
connectionString="" providerName="Oracle" />
</connectionStrings>

<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for
My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Uncomment the below section to write to the Application Event Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceLi stener,
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter"/>
<!-- Uncomment the below section and replace APPLICATION_NAME with the name
of your application to write to the Application Event Log -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener"
initializeData="APPLICATION_NAME"/-->
</sharedListeners>
</system.diagnostics>
</configuration>

"Mihai Velicu" <bv*****@telus.netwrote in message
news:ihCWg.6769$P7.2840@edtnps89...
Hi !

I created a class library and in it I have a class that call
"ConfigurationManager" to find out what type of database I work and the
connection string.When I call this class from a form, everithing is
running
well, no errors.When I call this class from a custom control I receive the
message "Object reference not set to an instance of an object"
Does anyoane know what is happening ?

Thanks,
Mihai


Oct 11 '06 #6
Hi Mihai,

If you're trying to access data from an app.config file from a Class Library
(*.dll), the name of the config file must be the name of the callling
assembly.

For example say I have a Windows Forms EXE app called "MyProgram.exe" which
references a class library called "MyLibrary.dll". Inside my library, I make
the call:

mConnectionString =
ConfigurationManager.ConnectionStrings(DataBaseCon nectionName).ConnectionStr
ing.ToString()

Now, if the config file is not name "MyProgram.exe.config" (it should NOT be
named "MyLibrary.dll.config"), or if the connection string does not exist in
the file, a NULL (Nothing) value will be returned at this portion of the
statement:

ConfigurationManager.ConnectionStrings(DataBaseCon nectionName)

Now since this part of the statement is returning Nothing, calling the
".ConnectionString.ToString()" part will throw the exception you are seeing.
I would recommend doing something like this:

Dim connStrings As ConnectionStringSettingsCollection
connStrings = ConfigurationManager.ConnectionStrings

Dim conStr As ConnectionStringSettings
conStr = connStrs(DataBaseConnectionName)

If conStr Is Nothing then
Throw New Exception("App.config or connection string not found")
end If

If the exception gets thrown through the if statement check, then there's a
good change the DLL can not find the app.config file. Make sure your
connection strings are defined in the App.config file of the Calling Assembly
(of the .exe project).

"Mihai" wrote:
I'm using Factory model to determine at runtime what kind of database I'm
using and to get the connection string from app.config.

I'm using the "ConfigurationManager " static class provided by .Net
framework 2.0.

I marked in the code where the error is. I repeat again, from a form
everithing is running properly only from a user control that reside in a
control library is the problem. It seems I have to declare somehow the
static method in the code .
because the ConfigurationManager is a static method I cannot use New....

If you want to help me
Create a control library and in it, a control and put this code and try to
execute and you can see the results I mean the error message.You have to add
reference to System.Configuration.
Bellow is the code and App.Config.

Thank you very much !
Mihai

The code is :

Imports System
Imports System.Data
Imports System.Data.Common
Imports System.Configuration
Public Class NrSystemForAccounts
'Private gts As GenericDb.GenericDbWrapper.GenericTableServices
Private dt As DataTable
Private mConnectionString As String
Private mFactoryName As String
Private mFactory As DbProviderFactory
Private mFactoryConnection As DbConnection
Private mFactoryCommand As DbCommand
Private mDataAdapter As DbDataAdapter

Private Sub SetFactory(ByVal DataBaseConnectionName As String)

!!!!!!!! The error is in the line bellow :"Object reference not set to an
instance of an object"

mConnectionString =
ConfigurationManager.ConnectionStrings(DataBaseCon nectionName).ConnectionStr
ing.ToString()
mFactoryName =
ConfigurationManager.ConnectionStrings(DataBaseCon nectionName).ProviderName.
ToString()
mFactory = DbProviderFactories.GetFactory(mFactoryName)
End Sub

Private Sub NrSystemForAccounts_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
Me.SetFactory("DatabaseConnection1")
End sub
End class
The App.config code is :

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- This section defines the connections and database providers -->
<connectionStrings>

<add name="DatabaseConnection1"
connectionString="Persist Security Info=False;Integrated
Security=SSPI;database=Conta;server=(local);"
providerName="System.Data.SqlClient" />
<add name="DatabaseConnection2"
connectionString="" providerName="Oracle" />
</connectionStrings>

<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for
My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Uncomment the below section to write to the Application Event Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceLi stener,
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter"/>
<!-- Uncomment the below section and replace APPLICATION_NAME with the name
of your application to write to the Application Event Log -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener"
initializeData="APPLICATION_NAME"/-->
</sharedListeners>
</system.diagnostics>
</configuration>

"Mihai Velicu" <bv*****@telus.netwrote in message
news:ihCWg.6769$P7.2840@edtnps89...
Hi !

I created a class library and in it I have a class that call
"ConfigurationManager" to find out what type of database I work and the
connection string.When I call this class from a form, everithing is
running
well, no errors.When I call this class from a custom control I receive the
message "Object reference not set to an instance of an object"
Does anyoane know what is happening ?

Thanks,
Mihai


Oct 12 '06 #7
Thank you very much for you answer.I disturb you once again.Please tell me
in what book I can find what you told me because belive me or not a read a
lot and it seems for nothing.The usualy books don't have any reference to
something like that.

Thank you very much again,
Maihai

"rmacias" <rm*****@newsgroup.nospamwrote in message
news:17**********************************@microsof t.com...
Hi Mihai,

If you're trying to access data from an app.config file from a Class
Library
(*.dll), the name of the config file must be the name of the callling
assembly.

For example say I have a Windows Forms EXE app called "MyProgram.exe"
which
references a class library called "MyLibrary.dll". Inside my library, I
make
the call:

mConnectionString =
ConfigurationManager.ConnectionStrings(DataBaseCon nectionName).ConnectionStr
ing.ToString()

Now, if the config file is not name "MyProgram.exe.config" (it should NOT
be
named "MyLibrary.dll.config"), or if the connection string does not exist
in
the file, a NULL (Nothing) value will be returned at this portion of the
statement:

ConfigurationManager.ConnectionStrings(DataBaseCon nectionName)

Now since this part of the statement is returning Nothing, calling the
".ConnectionString.ToString()" part will throw the exception you are
seeing.
I would recommend doing something like this:

Dim connStrings As ConnectionStringSettingsCollection
connStrings = ConfigurationManager.ConnectionStrings

Dim conStr As ConnectionStringSettings
conStr = connStrs(DataBaseConnectionName)

If conStr Is Nothing then
Throw New Exception("App.config or connection string not found")
end If

If the exception gets thrown through the if statement check, then there's
a
good change the DLL can not find the app.config file. Make sure your
connection strings are defined in the App.config file of the Calling
Assembly
(of the .exe project).

"Mihai" wrote:
>I'm using Factory model to determine at runtime what kind of database I'm
using and to get the connection string from app.config.

I'm using the "ConfigurationManager " static class provided by .Net
framework 2.0.

I marked in the code where the error is. I repeat again, from a form
everithing is running properly only from a user control that reside in a
control library is the problem. It seems I have to declare somehow the
static method in the code .
because the ConfigurationManager is a static method I cannot use New....

If you want to help me
Create a control library and in it, a control and put this code and try
to
execute and you can see the results I mean the error message.You have to
add
reference to System.Configuration.
Bellow is the code and App.Config.

Thank you very much !
Mihai

The code is :

Imports System
Imports System.Data
Imports System.Data.Common
Imports System.Configuration
Public Class NrSystemForAccounts
'Private gts As GenericDb.GenericDbWrapper.GenericTableServices
Private dt As DataTable
Private mConnectionString As String
Private mFactoryName As String
Private mFactory As DbProviderFactory
Private mFactoryConnection As DbConnection
Private mFactoryCommand As DbCommand
Private mDataAdapter As DbDataAdapter

Private Sub SetFactory(ByVal DataBaseConnectionName As String)

!!!!!!!! The error is in the line bellow :"Object reference not set to an
instance of an object"

mConnectionString =
ConfigurationManager.ConnectionStrings(DataBaseCo nnectionName).ConnectionStr
ing.ToString()
mFactoryName =
ConfigurationManager.ConnectionStrings(DataBaseCo nnectionName).ProviderName.
ToString()
mFactory = DbProviderFactories.GetFactory(mFactoryName)
End Sub

Private Sub NrSystemForAccounts_Load(ByVal sender As System.Object, ByVal
e
As System.EventArgs) Handles MyBase.Load
Me.SetFactory("DatabaseConnection1")
End sub
End class
The App.config code is :

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- This section defines the connections and database providers -->
<connectionStrings>

<add name="DatabaseConnection1"
connectionString="Persist Security Info=False;Integrated
Security=SSPI;database=Conta;server=(local);"
providerName="System.Data.SqlClient" />
<add name="DatabaseConnection2"
connectionString="" providerName="Oracle" />
</connectionStrings>

<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for
My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Uncomment the below section to write to the Application Event
Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceL istener,
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter"/>
<!-- Uncomment the below section and replace APPLICATION_NAME with the
name
of your application to write to the Application Event Log -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener"
initializeData="APPLICATION_NAME"/-->
</sharedListeners>
</system.diagnostics>
</configuration>

"Mihai Velicu" <bv*****@telus.netwrote in message
news:ihCWg.6769$P7.2840@edtnps89...
Hi !

I created a class library and in it I have a class that call
"ConfigurationManager" to find out what type of database I work and
the
connection string.When I call this class from a form, everithing is
running
well, no errors.When I call this class from a custom control I receive
the
message "Object reference not set to an instance of an object"
Does anyoane know what is happening ?

Thanks,
Mihai




Oct 12 '06 #8
Honestly, a person can not learn to be a good troubleshooter and a good
programmer by reading books. Actually coding, debugging, making mistakes,
and learning from those mistakes is what makes a good coder. Experience
will always be the best teacher. It just takes some time. I hope this is
something you have learned and will remember the next time something like
this comes up.

Good luck!!

"Mihai Velicu" wrote:
Thank you very much for you answer.I disturb you once again.Please tell me
in what book I can find what you told me because belive me or not a read a
lot and it seems for nothing.The usualy books don't have any reference to
something like that.

Thank you very much again,
Maihai

"rmacias" <rm*****@newsgroup.nospamwrote in message
news:17**********************************@microsof t.com...
Hi Mihai,

If you're trying to access data from an app.config file from a Class
Library
(*.dll), the name of the config file must be the name of the callling
assembly.

For example say I have a Windows Forms EXE app called "MyProgram.exe"
which
references a class library called "MyLibrary.dll". Inside my library, I
make
the call:

mConnectionString =
ConfigurationManager.ConnectionStrings(DataBaseCon nectionName).ConnectionStr
ing.ToString()

Now, if the config file is not name "MyProgram.exe.config" (it should NOT
be
named "MyLibrary.dll.config"), or if the connection string does not exist
in
the file, a NULL (Nothing) value will be returned at this portion of the
statement:

ConfigurationManager.ConnectionStrings(DataBaseCon nectionName)

Now since this part of the statement is returning Nothing, calling the
".ConnectionString.ToString()" part will throw the exception you are
seeing.
I would recommend doing something like this:

Dim connStrings As ConnectionStringSettingsCollection
connStrings = ConfigurationManager.ConnectionStrings

Dim conStr As ConnectionStringSettings
conStr = connStrs(DataBaseConnectionName)

If conStr Is Nothing then
Throw New Exception("App.config or connection string not found")
end If

If the exception gets thrown through the if statement check, then there's
a
good change the DLL can not find the app.config file. Make sure your
connection strings are defined in the App.config file of the Calling
Assembly
(of the .exe project).

"Mihai" wrote:
I'm using Factory model to determine at runtime what kind of database I'm
using and to get the connection string from app.config.

I'm using the "ConfigurationManager " static class provided by .Net
framework 2.0.

I marked in the code where the error is. I repeat again, from a form
everithing is running properly only from a user control that reside in a
control library is the problem. It seems I have to declare somehow the
static method in the code .
because the ConfigurationManager is a static method I cannot use New....

If you want to help me
Create a control library and in it, a control and put this code and try
to
execute and you can see the results I mean the error message.You have to
add
reference to System.Configuration.
Bellow is the code and App.Config.

Thank you very much !
Mihai

The code is :

Imports System
Imports System.Data
Imports System.Data.Common
Imports System.Configuration
Public Class NrSystemForAccounts
'Private gts As GenericDb.GenericDbWrapper.GenericTableServices
Private dt As DataTable
Private mConnectionString As String
Private mFactoryName As String
Private mFactory As DbProviderFactory
Private mFactoryConnection As DbConnection
Private mFactoryCommand As DbCommand
Private mDataAdapter As DbDataAdapter

Private Sub SetFactory(ByVal DataBaseConnectionName As String)

!!!!!!!! The error is in the line bellow :"Object reference not set to an
instance of an object"

mConnectionString =
ConfigurationManager.ConnectionStrings(DataBaseCon nectionName).ConnectionStr
ing.ToString()
mFactoryName =
ConfigurationManager.ConnectionStrings(DataBaseCon nectionName).ProviderName.
ToString()
mFactory = DbProviderFactories.GetFactory(mFactoryName)
End Sub

Private Sub NrSystemForAccounts_Load(ByVal sender As System.Object, ByVal
e
As System.EventArgs) Handles MyBase.Load
Me.SetFactory("DatabaseConnection1")
End sub
End class
The App.config code is :

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- This section defines the connections and database providers -->
<connectionStrings>

<add name="DatabaseConnection1"
connectionString="Persist Security Info=False;Integrated
Security=SSPI;database=Conta;server=(local);"
providerName="System.Data.SqlClient" />
<add name="DatabaseConnection2"
connectionString="" providerName="Oracle" />
</connectionStrings>

<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for
My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Uncomment the below section to write to the Application Event
Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceLi stener,
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter"/>
<!-- Uncomment the below section and replace APPLICATION_NAME with the
name
of your application to write to the Application Event Log -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener"
initializeData="APPLICATION_NAME"/-->
</sharedListeners>
</system.diagnostics>
</configuration>

"Mihai Velicu" <bv*****@telus.netwrote in message
news:ihCWg.6769$P7.2840@edtnps89...
Hi !

I created a class library and in it I have a class that call
"ConfigurationManager" to find out what type of database I work and
the
connection string.When I call this class from a form, everithing is
running
well, no errors.When I call this class from a custom control I receive
the
message "Object reference not set to an instance of an object"
Does anyoane know what is happening ?

Thanks,
Mihai




Oct 12 '06 #9

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

Similar topics

20
by: syd | last post by:
In my project, I've got dozens of similar classes with hundreds of description variables in each. In my illustrative example below, I have a Library class that contains a list of Nation classes. ...
6
by: Patrick | last post by:
Following earlier discussions about invoking a .NET class library via ..NET-COM Interop (using regasm /tlb) at...
4
by: Brian Shannon | last post by:
I am playing around with class libraries trying to understand how they work. I created a class library, library.vb. I placed the library.dll into the bin directory and set my reference. If I...
3
by: eBob.com | last post by:
I have several applications which mine web sites for personal information which they publish. They publish the info in one form, I transform the info into Excel spreadsheets. So all these...
5
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
0
by: tony | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. In this user control we have a class...
5
by: tony | last post by:
Hello! This is a rather long mail but it's a very interesting one. I hope you read it. I have tried several times to get an answer to this mail but I have not get any answer saying something...
5
by: Rainer Queck | last post by:
Hello NG, Is it possible to share the settings of an application with a class libreary? In my case I have a application and a set of different reports (home made) put into a class library. The...
0
by: drawing in aspnet | last post by:
Question about putting the data layer in a separate class library. I keep reading that the data layer should be separated from the presentation layer and put in its own class library. I am...
4
by: Steve Baer | last post by:
I've already tested this with C# and it works, but I'm being paranoid and I wanted to also check here. Our application has a large class library written in C++/CLI for plug-in projects. The...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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...
0
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...
0
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,...

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.