473,772 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The format of the file 'Microsoft.Prac tices.Enterpris eLibrary.Data' is invalid

js
I got this error when I moved my application to a new Windows 2003
server. I installed and recompiled the
'Microsoft.Prac tices.Enterpris eLibrary - June 2005" then added these
assemblies to the development machine's Assembly Cache. The assemblies
version appears to be 1.1.0.0. I changed the project reference to the
newly compiled EnterpriseLibra ry DLLs. The Web.Config of my
application root, I also have the following <configSections >. I don't
know why at runtime it is still asking for
Microsoft.Pract ices.Enterprise Library.Data, Version=1.0.0.0 . Please
help. Thanks.

=============== ========= My Web.Config (partial)
=============== ===========
<configSections >
<section name="enterpris elibrary.config urationSettings "
type="Microsoft .Practices.Ente rpriseLibrary.C onfiguration.Co nfigurationMana gerSectionHandl er,
Microsoft.Pract ices.Enterprise Library.Configu ration,
Version=1.1.0.0 ,
Culture=neutral ,
PublicKeyToken= 60c24972b7c20af 7" />
</configSections>

<enterpriselibr ary.configurati onSettings
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
applicationName ="DMS_ASPX"
xmlns="http://www.microsoft.c om/practices/enterpriselibra ry/08-31-2004/configuration">
<configurationS ections>
<configurationS ection xsi:type="ReadO nlyConfiguratio nSectionData"
name="dataConfi guration" encrypt="false" >
<storageProvide r xsi:type="XmlFi leStorageProvid erData"
name="XML File Storage Provider" path="dataConfi guration.config " />
<dataTransforme r xsi:type="XmlSe rializerTransfo rmerData"
name="Xml Serializer Transformer">
<includeTypes />
</dataTransformer >
</configurationSe ction>
</configurationSe ctions>
<keyAlgorithmSt orageProvider xsi:nil="true" />
<includeTypes />
</enterpriselibra ry.configuratio nSettings>

=============== ========== Runtime Error =============== ==========
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.BadImage FormatException : The format of the
file 'Microsoft.Prac tices.Enterpris eLibrary.Data' is invalid.

Source Error:
[No relevant source lines]
Source File: c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary
ASP.NET Files\root\88f3 1b66\ffb9ac8b\x-56vhi4.0.cs Line: 0

Assembly Load Trace: The following information can be helpful to
determine why the assembly 'Microsoft.Prac tices.Enterpris eLibrary.Data'
could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Pract ices.Enterprise Library.Data,
Version=1.0.0.0 , Culture=neutral , PublicKeyToken= 60c24972b7c20af 7
(Fully-specified)
LOG: Appbase = file:///C:/Inetpub/DMS_Net
LOG: Initial PrivatePath = bin
Calling assembly : DMS_ASPX, Version=0.0.0.0 , Culture=neutral ,
PublicKeyToken= null.
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(c:\windows\mic rosoft.net\fram ework\v1.1.4322 \aspnet.config) .
LOG: Using machine configuration file from
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ config\machine. config.
LOG: Post-policy reference: Microsoft.Pract ices.Enterprise Library.Data,
Version=1.0.0.0 , Culture=neutral , PublicKeyToken= 60c24972b7c20af 7
LOG: Attempting download of new URL
file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET
Files/root/88f31b66/ffb9ac8b/Microsoft.Pract ices.Enterprise Library.Data.DL L.
LOG: Attempting download of new URL
file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET
Files/root/88f31b66/ffb9ac8b/Microsoft.Pract ices.Enterprise Library.Data/Microsoft.Pract ices.Enterprise Library.Data.DL L.
LOG: Attempting download of new URL
file:///C:/Inetpub/DMS_Net/bin/Microsoft.Pract ices.Enterprise Library.Data.DL L.

Stack Trace:
[BadImageFormatE xception: The format of the file
'Microsoft.Prac tices.Enterpris eLibrary.Data' is invalid.]
DMS_ASPX.Helper .DataBroker..ct or() +0
DMS_ASPX.form.m ain..ctor() +53
ASP.main_aspx.. ctor() in
c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET
Files\root\88f3 1b66\ffb9ac8b\x-56vhi4.0.cs:0

[TargetInvocatio nException: Exception has been thrown by the target of
an invocation.]
System.RuntimeT ype.CreateInsta nceImpl(Boolean publicOnly) +0
System.Activato r.CreateInstanc e(Type type, Boolean nonPublic) +66
System.Web.UI.T emplateControlP arser.GetCompil edInstance(Stri ng
virtualPath, String inputFile, HttpContext context) +164

[HttpException (0x80004005): Failed to create page of type
'ASP.main_aspx' .]
System.Web.UI.T emplateControlP arser.GetCompil edInstance(Stri ng
virtualPath, String inputFile, HttpContext context) +341
System.Web.UI.P ageParser.GetCo mpiledPageInsta nceInternal(Str ing
virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.P ageHandlerFacto ry.GetHandler(H ttpContext context,
String requestType, String url, String path) +44
System.Web.Http Application.Map HttpHandler(Htt pContext context,
String requestType, String path, String pathTranslated, Boolean
useAppConfig) +699

System.Web.MapH andlerExecution Step.System.Web .HttpApplicatio n+IExecutionSte p.Execute()
+95
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +173


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2300;
ASP.NET Version:1.1.432 2.2300

Mar 9 '06 #1
2 6115
js
Ok. I solved this problem myself. It turns out that the Enterprise
Library Configuration utility created two .config files in the
application root:

web.config
dataconfigurati on.config

I changed the reference version in both of the config file to the
correct version.

Mar 13 '06 #2
js
Ok. I solved this problem myself. It turns out that the Enterprise
Library Configuration utility created two .config files in the
application root:

web.config
dataconfigurati on.config

I changed the reference version in both of the config file to the
correct version.

Mar 13 '06 #3

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

Similar topics

1
11409
by: Goran Djuranovic | last post by:
Hi everyone, I copied an asp.net project to another machine by using "Copy Project" menu item from "Project" menu in VS.NET 2003 IDE. The project contains Crystal Reports that are being exported to .PDF file and displayed in IE using Adobe ..pdf viewer. This is the error description I get when try to display one of the reports: Error in File E:\Temp\temp_4023d958-6102-4006-ac49-048796f2d7db.rpt: Invalid export DLL or export format....
0
1727
by: Nick Zdunic | last post by:
Hi, I using the Security Application Block from the Enterprise Library in my application. I'm getting the following error message: There is an error in the XML document. The specified type was not recognized: name='DbRolesProviderData', namespace='http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/security',
1
2133
by: Bakunin | last post by:
Hi, I may be doing something dumb but.......I have been using the data access ent lib to do the HOL's. All is well. However I now want to add the data access functionality to my BTS2004 project, therefore requiring strong name key. When I try to compile the Data solution from source I get Namespace "Configuration" does not exist in Microsoft.practices.EnterpriseLibrary.Data are you missing..... The problem is that I am not. I can't...
3
5919
by: Marauderz | last post by:
Hello guys, got a little question regarding the regional language settings . Anyway I got a Windows 2003 Server machine that was installed with the date format "dd/MM/yyyy" and location still locked in US. As we migrated certain apps over to the new machine. we found out something... someone coded a Now.ToString in a database query... and the SQL Box is running MM/dd/yyyy! Chaos follows!!! I tried setting the Administrator account's...
0
2742
by: Chris Dunaway | last post by:
Enterprise Library January 2006 Visual Studio 2005 Lanugage: C# I am attempting to use the Enterprise Library to read data from an Excel spreadsheet file. I got the following connection string from connectionstrings.com: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1"
1
10021
by: =?Utf-8?B?UmljaA==?= | last post by:
In the Registry at HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Jet \ 4.0 \ Engines \ Text the default key for Text Format is: "Format" = "CSVDelimited" I can use the following OleDB connection string with an OleDB dataAdapter to read a comma delimited text file when "Format" = "CSVDelimited"
5
2345
by: Michael Howes | last post by:
I'm upgrading a VS 2003/.Net 1.1 ASP.Net application to VS 2008/.Net 3.0 The application uses an older version of the Microsoft Data Blocks for database access. The version in the Microsoft.ApplicationBlocks.Data.dll is 2.0 The call to SqlConnection.Open() fails after I upgrade to .Net 3.0 The application runs under a tweaked version of Medium trust. After the upgrade and the call to .Open() fails if I change the trust to Full the...
1
2591
by: MasterLalit | last post by:
Hi, i am using a app.config file in my console application. App.config code--> <configuration> <configSections> <section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </configSections> <enterpriseLibrary.ConfigurationSource...
0
1671
livid86
by: livid86 | last post by:
Hello, I'm trying to create a simple test project that will read and write from a SQL CE database. I have written a small amount of code and getting weird errors that i have googled and do not understand. This is the code i have got using System; using System.Linq; using System.Collections.Generic; using System.ComponentModel; using System.Data;
0
9621
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
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10264
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...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
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
6716
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
5355
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
4009
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
2851
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.