Hi all,
I am new to the Microsoft .Net and hope that someone can help me on my
problem.
I have my C# program compiled but when I run it, one of the Microsoft
Enterprise Library - Jan 2006 throw an exception handle by
ConfigurationErrorsException. The error message is:
An error occurred creating the configuration section handler for
enterpriseLibrary.ConfigurationSource: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=3be2f8f49e972371' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040) (C:
\GEM\IMS Server\IMS.Server\bin\Debug
\IMSIndicatorManager.vshost.exe.config line 4)
The above exception is thrown from this function implementation:
public static Database CreateDatabase(string name)
{
try
{
DatabaseProviderFactory factory = new
DatabaseProviderFactory(ConfigurationSourceFactory .Create());
return factory.Create(name);
}
catch (ConfigurationErrorsException
configurationException)
{
TryLogConfigurationError(configurationException,
name);
throw;
}
}
Is there any suggestions to fix it?Thanks.
HS 4 1803
On Jan 31, 11:38 am, hsph...@usa.com wrote:
Hi all,
I am new to the Microsoft .Net and hope that someone can help me on my
problem.
I have my C# program compiled but when I run it, one of the Microsoft
Enterprise Library - Jan 2006 throw an exception handle by
ConfigurationErrorsException. The error message is:
An error occurred creating the configuration section handler for
enterpriseLibrary.ConfigurationSource: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=3be2f8f49e972371' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040) (C:
\GEM\IMS Server\IMS.Server\bin\Debug
\IMSIndicatorManager.vshost.exe.config line 4)
The above exception is thrown from this function implementation:
public static Database CreateDatabase(string name)
{
try
{
DatabaseProviderFactory factory = new
DatabaseProviderFactory(ConfigurationSourceFactory .Create());
return factory.Create(name);
}
catch (ConfigurationErrorsException
configurationException)
{
TryLogConfigurationError(configurationException,
name);
throw;
}
}
Is there any suggestions to fix it?Thanks.
HS
Hi,
Not sure what .net framework you are using. EntLib Jan2006 works only
on Framework 2.0 with VS 2005.
If you already have then you need to put the required assemblies in
GAC or bin directory and then add the refrence to your project before
use them.
let me know if this is this not case.
Cheers,
Amer
Yes, I am using VS2005. I checked the .net framework v2.0, there is
not gacutil.exe likes v1.1 How to assemblies in GAC? I have added all
necessary files installed in my VS project.
Cheers.
HS
On Jan 31, 10:29 am, "WishMaster" <amer.chaud...@gmail.comwrote:
On Jan 31, 11:38 am, hsph...@usa.com wrote:
Hi all,
I am new to the Microsoft .Net and hope that someone can help me on my
problem.
I have my C# program compiled but when I run it, one of the Microsoft
Enterprise Library - Jan 2006 throw anexceptionhandle by
ConfigurationErrorsException. The error message is:
An error occurred creating the configuration section handler for
enterpriseLibrary.ConfigurationSource: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=3be2f8f49e972371' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exceptionfrom HRESULT: 0x80131040) (C:
\GEM\IMS Server\IMS.Server\bin\Debug
\IMSIndicatorManager.vshost.exe.config line 4)
The aboveexceptionis thrown from this function implementation:
public static Database CreateDatabase(string name)
{
try
{
DatabaseProviderFactory factory = new
DatabaseProviderFactory(ConfigurationSourceFactory .Create());
return factory.Create(name);
}
catch (ConfigurationErrorsException
configurationException)
{
TryLogConfigurationError(configurationException,
name);
throw;
}
}
Is there any suggestions to fix it?Thanks.
HS
Hi,
Not sure what .net framework you are using. EntLib Jan2006 works only
on Framework 2.0 with VS 2005.
If you already have then you need to put the required assemblies in
GAC or bin directory and then add the refrence to your project before
use them.
let me know if this is this not case.
Cheers,
Amer- Hide quoted text -
- Show quoted text -
On Jan 31, 8:16 pm, hsph...@usa.com wrote:
Yes, I am using VS2005. I checked the .net framework v2.0, there is
not gacutil.exe likes v1.1 How to assemblies in GAC? I have added all
necessary files installed in my VS project.
Cheers.
HS
On Jan 31, 10:29 am, "WishMaster" <amer.chaud...@gmail.comwrote:
On Jan 31, 11:38 am, hsph...@usa.com wrote:
Hi all,
I am new to the Microsoft .Net and hope that someone can help me on my
problem.
I have my C# program compiled but when I run it, one of the Microsoft
Enterprise Library - Jan 2006 throw anexceptionhandle by
ConfigurationErrorsException. The error message is:
An error occurred creating the configuration section handler for
enterpriseLibrary.ConfigurationSource: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=3be2f8f49e972371' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exceptionfrom HRESULT: 0x80131040) (C:
\GEM\IMS Server\IMS.Server\bin\Debug
\IMSIndicatorManager.vshost.exe.config line 4)
The aboveexceptionis thrown from this function implementation:
public static Database CreateDatabase(string name)
{
try
{
DatabaseProviderFactory factory = new
DatabaseProviderFactory(ConfigurationSourceFactory .Create());
return factory.Create(name);
}
catch (ConfigurationErrorsException
configurationException)
{
TryLogConfigurationError(configurationException,
name);
throw;
}
}
Is there any suggestions to fix it?Thanks.
HS
Hi,
Not sure what .net framework you are using. EntLib Jan2006 works only
on Framework 2.0 with VS 2005.
If you already have then you need to put the required assemblies in
GAC or bin directory and then add the refrence to your project before
use them.
let me know if this is this not case.
Cheers,
Amer- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
it is weird...
No, you don't have to put the assemblies in GAC.
If assemblies are in your project refrence it should be fine as well.
just make sure you have added the
"Microsoft.Practices.EnterpriseLibrary.Common. dll " in project
refrence.
If possible send me the list of files you have in your project
refrence.
I will check my setting tomorrow in office machine and let you know.
Cheers,
Amer
Thanks for your help. I do not think I can post my project to you due
to my company copyright issue.
I noticed that my laptop default .net framework is V1.1. How to change
it to V2.0? Fyi, run the "assembly" command, all dll does not have any
entlib v2.0 library registered.
HS
On Jan 31, 7:35 pm, "WishMaster" <amer.chaud...@gmail.comwrote:
On Jan 31, 8:16 pm, hsph...@usa.com wrote:
Yes, I am using VS2005. I checked the .net framework v2.0, there is
not gacutil.exe likes v1.1 How to assemblies in GAC? I have added all
necessary files installed in my VS project.
Cheers.
HS
On Jan 31, 10:29 am, "WishMaster" <amer.chaud...@gmail.comwrote:
On Jan 31, 11:38 am, hsph...@usa.com wrote:
Hi all,
I am new to the Microsoft .Net and hope that someone can help me on my
problem.
I have my C# program compiled but when I run it, one of the Microsoft
Enterprise Library - Jan 2006 throw anexceptionhandle by
ConfigurationErrorsException. The error message is:
An error occurred creating the configuration section handler for
enterpriseLibrary.ConfigurationSource: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=3be2f8f49e972371' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exceptionfrom HRESULT: 0x80131040) (C:
\GEM\IMS Server\IMS.Server\bin\Debug
\IMSIndicatorManager.vshost.exe.config line 4)
The aboveexceptionis thrown from this function implementation:
public static Database CreateDatabase(string name)
{
try
{
DatabaseProviderFactory factory = new
DatabaseProviderFactory(ConfigurationSourceFactory .Create());
return factory.Create(name);
}
catch (ConfigurationErrorsException
configurationException)
{
TryLogConfigurationError(configurationException,
name);
throw;
}
}
Is there any suggestions to fix it?Thanks.
HS
Hi,
Not sure what .net framework you are using. EntLib Jan2006 works only
on Framework 2.0 with VS 2005.
If you already have then you need to put the required assemblies in
GAC or bin directory and then add the refrence to your project before
use them.
let me know if this is this not case.
Cheers,
Amer- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
it is weird...
No, you don't have to put the assemblies in GAC.
If assemblies are in your project refrence it should be fine as well.
just make sure you have added the
"Microsoft.Practices.EnterpriseLibrary.Common. dll " in project
refrence.
If possible send me the list of files you have in your project
refrence.
I will check my setting tomorrow in office machine and let you know.
Cheers,
Amer- Hide quoted text -
- Show quoted text -
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Chuck Hartman |
last post by:
I have a Windows service that requests web pages from a site using an
HttpWebRequest object. When I try to request a page from an ASP.NET 2 site,
I get a WebException with message "The remote...
|
by: Dave Stewart |
last post by:
I recently wrote my first Vb.net application, or at least my first complex app since moving up from vb6. When run from the VS.NET IDE, the program shows no errors and runs fine. When the output exe...
|
by: Lucvdv |
last post by:
Can someone explain why this code pops up a messagebox saying the
ThreadAbortException wasn't handled?
The first exception is reported only in the debug pane, as expected.
The second (caused by...
|
by: Samuel R. Neff |
last post by:
When you have an unhandled exception in vb.net how do you view the
exception information in the debugger?
In C# the debugger creates a local variable that points to the
exception and you can...
|
by: Colmeister |
last post by:
I recently read Jason Clark's excellent article on Unhandled Exceptions
(http://msdn.microsoft.com/msdnmag/issues/04/06/NET/default.aspx) and have
attempted to incorporate the features he talks...
|
by: NickP |
last post by:
Hi there,
Im experiencing an unhandled exception that seems to be impossible for
me to catch. I am launching an assembly of mine from within another
assembly using the Process object. Once the...
|
by: Bob |
last post by:
I MUST be able to trap unhandled exceptions, bring the thread to a routine
that then closes the thread on which the execption occurred without closing
or affecting the other threads. Think of an...
|
by: Bob |
last post by:
If I induce and unhandled exception in my vb.net code for instance using
'-- just a simple "object not initialized" exception (should read "as new")
Dim x As Specialized.NameValueCollection
...
|
by: Bob |
last post by:
In Vs 2005 you have new applicationsEvents.vb I was testing it in a simple
app and found that it was easier to implement unhandled exception management
tah it was in Vs2003 (vb.net) You can, if you...
|
by: =?Utf-8?B?c3VydHVyeg==?= |
last post by:
Hi,
I feel like a noob for asking this.
When I publish a VB windows application, I want to disable the ability of
the the user to continue when there is an unhandled exception.
For example,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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,...
|
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: 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...
| |