Could not load file or assembly 'System.Data' or one of its dependencies

Hopefully I got the right forum here.

 I've converted a web application from ASP.NET 2.0 in VS 2005 to ASP.NET 3.5 in VS 2008. When I run the site from within VS everything works fine. When I deploy it to my local IIS 7 server I get the following error.

Server Error in '/PrzemekLach' Application.

Could not load file or assembly 'System.Data' or one of its dependencies. An attempt was made to load a program with an incorrect format.

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.BadImageFormatException: Could not load file or assembly 'System.Data' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Data' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:

[BadImageFormatException: Could not load file or assembly 'System.Data' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +465
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +181
   System.Reflection.Assembly.Load(String assemblyString) +42
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190

[ConfigurationErrorsException: Could not load file or assembly 'System.Data' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +3642024
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +402
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +155
   System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +36
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +235
   System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +214
   System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +57
   System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +259
   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +406
   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +125
   System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +203
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +52
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +50
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +419
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +274


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

 

From that last line it appears the IIS is running only ASP.NET 2.0xxx. I have ASP.NET 3.5 installed.

So, is the problem in fact that IIS is using the wrong version of ASP.NET and if so how do I go about changing it. Or is this another problem altogether.

Thanks in advance.

0
przemeklach
1/19/2008 5:42:16 AM
asp.net.visual-studio-2008 3408 articles. 0 followers. Follow

8 Replies
380 Views

Similar Articles

[PageSpeed] 39

 First, enabling assembly load logging (easiest way is with fuslogvw.exe tool) will allow you to see what .NET is trying to load (and from where).

przemeklach:

From that last line it appears the IIS is running only ASP.NET 2.0xxx. I have ASP.NET 3.5 installed.

So, is the problem in fact that IIS is using the wrong version of ASP.NET and if so how do I go about changing it. Or is this another problem altogether.

 

.NET 3.5 is new compilers and assemblies added  on top of 3.0, which was assemblies added on top of 2.0: i.e. to use .NET 3.5, you need IIS configured to be ASP.NET 2.0.

 


Richard
0
rjcox
1/19/2008 8:15:27 AM

Thanks for your reply.

I started the Assembly Binding Log Viewer and ran my site in IE. Nothing showed up in the logger.

I went through all the settings in IIS. I'm not sure where I'm supposed to look to see if IIS is configure for ASP.NET 2.0. In my Application Pool settings the .NET version is set to v2.0xxx. I'm assuming that is it?

Thanks.

0
przemeklach
1/19/2008 7:26:56 PM

przemeklach:
In my Application Pool settings the .NET version is set to v2.0xxx. I'm assuming that is it?
 

You should be checking this on the web site root or virtual directory rather than application pool. 

przemeklach:
Nothing showed up in the logger.
 

Hmm.... another route to getting this data is to look at the details of the exception... you'll need to ensure debugger is running and stop on the exception to look at the details.

All of this seems to be either a configuration problem (which can be all about the details -- double check everything like the output from "aspnet_regiis -lk"), or the .NET installation has been corrupted (but this seems a lot less likely).


Richard
0
rjcox
1/20/2008 8:04:34 AM

I could not find a drop down anywhere where I can switch between the differnet versions of .NET. When I looked under the .NET Compilations/Assemblies settings I saw a mixture of 2.0, 3.0 and 3.5 ASP.NET assembly references. Not sure if that is where I'm supposed to look and if these are correct? Can you tell me where I'm supposed to look? I'm not that familiar with IIS.

I'm don't know where to get the output from aspnet_regiis. I ran my site again and for some reason I got more error information this time. Here it is, maybe this is what you're looking for. I've also attached my web.config file.

1    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll
2    Running under executable  c:\windows\system32\inetsrv\w3wp.exe
3    --- A detailed error log follows. 
4    
5    === Pre-bind state information ===
6    LOG: User = NT AUTHORITY\NETWORK SERVICE
7    LOG: DisplayName = System.Data
8     (Partial)
9    LOG: Appbase = file:///C:/inetpub/wwwroot/PrzemekLach/
10   LOG: Initial PrivatePath = C:\inetpub\wwwroot\PrzemekLach\bin
11   Calling assembly : (Unknown).
12   ===
13   LOG: This bind starts in default load context.
14   LOG: Using application configuration file: C:\inetpub\wwwroot\PrzemekLach\web.config
15   LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config
16   LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
17   LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
18   LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/przemeklach/e61519c5/f77cb8c9/System.Data.DLL.
19   LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/przemeklach/e61519c5/f77cb8c9/System.Data/System.Data.DLL.
20   LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/PrzemekLach/bin/System.Data.DLL.
21   ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
22   

 

1    
2    <configuration>
3        <configSections>
4            <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
5                <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
6                    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
7                    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
8                        <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
9                        <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
10                       <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
11                       <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
12                   </sectionGroup>
13               </sectionGroup>
14           </sectionGroup>
15       </configSections>
16       <appSettings/>
17       <connectionStrings>
18           <add name="database" connectionString="Data Source=localhost;Initial Catalog=****;Persist Security Info=True;UID=****;PWD=****;" providerName="System.Data.SqlClient"/>
19           <!--<add name="database" connectionString="Data Source=****;Initial Catalog=****;Persist Security Info=True;UID=****;PWD=****" providerName="System.Data.SqlClient"/>-->
20       </connectionStrings>
21       <system.web>
22           <compilation debug="true">
23               <assemblies>
24                   <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
25                   <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
26                   <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
27                   <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
28                   <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
29                   <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
30               </assemblies>
31           </compilation>
32           <!--<authentication mode="Windows"/>-->
33           <authentication mode="Forms">
34               <forms loginUrl="Default.aspx" protection="Validation" timeout="300"/>
35           </authentication>
36           <authorization>
37               <allow users="*"/>
38           </authorization>
39           <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
40           <membership>
41               <providers>
42                   <remove name="AspNetSqlMembershipProvider"/>
43                   <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider,System.Web, Version=2.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="database" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
44               </providers>
45           </membership>
46           <profile>
47               <providers>
48                   <remove name="AspNetSqlProfileProvider"/>
49                   <add name="AspNetSqlProfileProvider" connectionStringName="database" applicationName="/" type="System.Web.Profile.SqlProfileProvider,System.Web, Version=2.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"/>
50               </providers>
51           </profile>
52           <roleManager enabled="true">
53               <providers>
54                   <remove name="AspNetSqlRoleProvider"/>
55                   <add name="AspNetSqlRoleProvider" connectionStringName="database" applicationName="/" type="System.Web.Security.SqlRoleProvider,System.Web, Version=2.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"/>
56               </providers>
57           </roleManager>
58           <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
59               <providers>
60                   <add name="XmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="Web.sitemap" securityTrimmingEnabled="true"/>
61               </providers>
62           </siteMap>
63           <pages theme="Default" masterPageFile="~/Default.master" maintainScrollPositionOnPostBack="true">
64               <controls>
65                   <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
66                   <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
67               </controls>
68           </pages>
69           <httpHandlers>
70               <remove verb="*" path="*.asmx"/>
71               <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
72               <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
73               <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
74           </httpHandlers>
75           <httpModules>
76               <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
77           </httpModules>
78       </system.web>
79       <location path="Admin">
80           <system.web>
81               <authorization>
82                   <allow roles="Administrators"/>
83                   <deny users="*"/>
84               </authorization>
85           </system.web>
86       </location>
87       <system.codedom>
88           <compilers>
89               <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
90                   <providerOption name="CompilerVersion" value="v3.5"/>
91                   <providerOption name="WarnAsError" value="false"/>
92               </compiler>
93               <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
94                   <providerOption name="CompilerVersion" value="v3.5"/>
95                   <providerOption name="OptionInfer" value="true"/>
96                   <providerOption name="WarnAsError" value="false"/>
97               </compiler>
98           </compilers>
99       </system.codedom>
100      <system.webServer>
101          <validation validateIntegratedModeConfiguration="false"/>
102          <modules>
103              <remove name="ScriptModule"/>
104              <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
105          </modules>
106          <handlers>
107              <remove name="WebServiceHandlerFactory-Integrated"/>
108              <remove name="ScriptHandlerFactory"/>
109              <remove name="ScriptHandlerFactoryAppServices"/>
110              <remove name="ScriptResource"/>
111              <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
112              <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
113              <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
114          </handlers>
115      </system.webServer>
116      <runtime>
117          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
118              <dependentAssembly>
119                  <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
120                  <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
121              </dependentAssembly>
122              <dependentAssembly>
123                  <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
124                  <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
125              </dependentAssembly>
126          </assemblyBinding>
127      </runtime>
128  </configuration>
129  
 
0
przemeklach
1/21/2008 8:09:28 PM

So I still have no solution. I started a project from scratch and I tested it everytime I added something. I incrementally added stuff: masterpage, sitemaps etc... each time testing to see if things would run. The error came up when I added an AJAX extender to a button.

The setup of IIS 7 that I have is just the default one. I'm confused as to why no one else has had this problem. What I'm trying to do here is run a simple website with and AJAX control. Has no one else done this yet?

0
przemeklach
1/23/2008 1:22:13 AM
przemeklach:
I saw a mixture of 2.0, 3.0 and 3.5 ASP.NET assembly references. Not sure if that is where I'm supposed to look and if these are correct
 

That is what you will see,. both 3.0 and 3.5 are incremental additons to 2.0 core (now with SP1).

przemeklach:
I'm don't know where to get the output from aspnet_regiis.
 

You run it from the command line, it outputs to standard output.

 

przemeklach:
I got more error information this time. Here it is, maybe this is what you're looking for.

Yes... and it shows there is something wrong, why is there no looking for the assembly in the GAC?

This is what I get from looking for System.Data (with correct full assembly name):

*** Assembly Binder Log Entry  (2008-01-23 @ 08:26:42) ***

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable C:\Documents and Settings\richard_cox\Local Settings\Application Data\Temporary Projects\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = XX\YY
LOG: DisplayName = System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/YY/Local Settings/Application Data/Temporary Projects/ConsoleApplication1/bin/Debug/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : ConsoleApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
LOG: Reusing an assembly instance that was previously loaded (C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll).
(With domain/usernames deliberately obscured.) Note that System.Data was already loaded.
But, if I try and load something that does not exist (slight change to the name):
 *** Assembly Binder Log Entry  (2008-01-23 @ 08:31:39) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable C:\Documents and Settings\richard_cox\Local Settings\Application Data\Temporary Projects\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = XX\YY
LOG: DisplayName = SystemX.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/YY/Local Settings/Application Data/Temporary Projects/ConsoleApplication1/bin/Debug/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : ConsoleApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: SystemX.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Documents and Settings/richard_cox/Local Settings/Application Data/Temporary Projects/ConsoleApplication1/bin/Debug/SystemX.Data.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/richard_cox/Local Settings/Application Data/Temporary Projects/ConsoleApplication1/bin/Debug/SystemX.Data/SystemX.Data.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/richard_cox/Local Settings/Application Data/Temporary Projects/ConsoleApplication1/bin/Debug/SystemX.Data.EXE.
LOG: Attempting download of new URL file:///C:/Documents and Settings/richard_cox/Local Settings/Application Data/Temporary Projects/ConsoleApplication1/bin/Debug/SystemX.Data/SystemX.Data.EXE.
LOG: All probing URLs attempted and failed.

Note the highlighted lines [Appears highlighting gets lost when I post... lines starting "LOG: DisplayName" and "LOG: GAC Lookup"]:

  1. In your log it shows "System.Data" for the display name, not the strong name. How exactly are you referencing System.Data?
  2. There was a check in the GAC before probing application local paths.

 

It seems there is either something seriously wrong with your setup/configuration. Or that something is wrong with the reference to System.Data in the code.

For the first I can only think that a uninstall/reinstall is the approach (but if significantly broken may require an OS reinstall). For the latter try looking at the references in the compiled assembly (using IDLASM or (easier) Reflector for .NET). 



Richard
0
rjcox
1/23/2008 8:38:51 AM

When I try to run aspnet_regiis from the command line, it tells me that it's not recognized as an internal or external command.....

I searched my HD for aspnet_regiis and nothing was found either.

I downloaded Reflector but I don't really know what to do with it. When I start it up I get list of assemblies. System.Data is in the list and its path is: %SystemRoot%\Microsoft.net\Framework\v2.0.50727\System.Data.dll. Not sure if that's right or not.

Despite all this I have found a solution for my problem. I use a web deployment project to pre-compile, merge and move my site from my development folder to my C:\inetpub\wwwroot\PrzemekLach directory. When I run the deployment poject it creates a whole bunch of assemblies in both my development bin folder and the bin folder in the C:\inetpub\wwwroot\PrzemekLach directory, these include: System.Data.dll, System.Data.OracleClient.dll, System.EnterprisesServices.dll just to name a few.

 If I move the site manually, without precompiling and using the deployment project the website runs fine. What gives? Why is it doing this?

Thanks in advance.

0
przemeklach
1/24/2008 2:10:53 AM
przemeklach:
I searched my HD for aspnet_regiis and nothing was found either.
 

It should be in %WinDir%\Microsoft.NET\Framework\v2.0.50727

If not you don't have a complete install.

przemeklach:
I downloaded Reflector

Select something (e.g. an assembly, or a function) in the tree, and press space to expand to show details (assembly level attributes, code). Details for a reference is the compiled in stroing name.

przemeklach:
Despite all this I have found a solution for my problem. I
 

Good.

przemeklach:
hese include: System.Data.dll, System.Data.OracleClient.dll, System.EnterprisesServices.dll
 

I think you have a problem, core .NET dll's should not be included directly in an install... but I'm not expert on deployment projects so don't know how they know what is part of the .NET install itself and what is part of the application install. 


Richard
0
rjcox
1/24/2008 8:17:41 AM
Reply:

Similar Artilces:

Server Error in '/Webapp' Application. Could not load file or assembly 'System.Data' or one of its dependencies. An attempt was made to load a program with an incorrect format.
 10 minutes ago, my web app worked fine.  Now it appears broken and I hadn't touched the web.config file.  Anyone know what might be going on here?  I checked my web server's .NET folder (C:\WINDOWS\microsoft.net\Framework64\v2.0.50727) and there is indeed a system.data.dll file...  Could not load file or assembly 'System.Data' or one of its dependencies. An attempt was made to load a program with an incorrect format. Description: An unhandled exception occurred during the execution of the current web request. Plea...

IIS + .NET 3.5 Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
 Ok folks I need some help here. I have MS Server 2003 with IIS installed. Frameworks 2.0, 3.0 & 3.5 installed. The server has VS 2008 Web Developer installed because I am developing on it remotely. When I run the web site from inside VS everything is fine. I created a new website in IIS (named Intranet) and set it to run on Framework 2.0 and set the path to the root folder of the site (D:\Intranet). I also confirmed that VS was building for framework 3.5. When I open Internet Explorer on the server and go to http://localhost/Intranet I get the following error: "Could not ...

Could not load file or assembly 'System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified
 Hi, I am using Jasper.. I downloaded JASPER and the sample code from http://www.microsoft.com/downloads/details.aspx?FamilyId=471BB3AC-B31A-49CD-A567-F2E286715C8F&displaylang=en but when  i try to run Samples.. I get the error :  Could not load file or assembly 'System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified i can find only System,Core under 3.5 version. I tried running the project from VS2005 and from VS2008.. still the problem persists.. Pls help.. Babs I think I read some where that the version of the System.Core dll got changed from 2.0.0 to 3.5. So, if you downloaded an application developed by beta version of VS.NET 2008, you might receive that error.. Try changing the version of this dll in the web.config, if there is any reference about it.. Then try to add the System.Core dll from the Add reference dailogKumar Reddi...

Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
Hi, I am using VS2008 and .net 3.5, #. i m trying to access default.aspx in the browser and it shows the error as "Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified."   Also when i use any of the Ajaxcontrol toolkit tools, i m getting the these kind of errors. I hav copied the ajaxcontroltoolkit.dll and .pdb in the bin folder. but i m getting the same error. Please help me.  I will  be grateful if anyone can send me the co...

Could not load file or assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does n
Hello All,If this is a repeat of posting that have been created, I sincerely apologize.  I have been looking for a solution for quite some time and although I have run across a lot of different posts offering solutions, nothing seems to be work.  Here is my dilemma:I have created a website with several pages using ASP.NET 2.0 and AJAX Extensions (including the AJAX Control Toolkit).  The pages run fine on my Development machine but on my IIS machine, I continue to recreate a Parser Error in regard to System.Web.Extensions.  Here is what I have done thus far: I have a...

Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified
I have downloaded the Ajax Control Toolkit Website Project. I want to run on Visual Studio 2005. But when I run the project I got the error like  Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified . </system.web>     <httpModules>        <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,                             PublicKeyToken=31bf3856ad364e35"/>     </httpModules></system.web> The DLL present in my Bin folder  is AjaxControlToolkit.dll Version 1.0.20229.0What should I have do to run the project successfully.  Sunny PatilSoftware EngineerMumbai,India. You need to download and install the ASP.NET AJAX extensions. Follow this link: http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en  I have solved this problem. This problem comes because  the two assemblies name as System.Web.Extensions and System.Web.Extensions.Design are not present in Global Assemble Cache (GAC) i.e. in C://Windows/Assembly folder. Therefore we need to add these two dll i...

Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
hello i am getting this error in my application...i used ajax in web site..please help me Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.Source Error: Line 30: <compilation debug="true" defaultLanguage="c#"> Line 31: <assemblies> Line 32: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> Line 33: <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> Line 34: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>Source File: C:\Inetpub\vhosts\hamaracar.com\httpdocs\web.config    Line: 32 Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded. WRN: Assembly binding logging is turned OFF. To enable assembly bi...

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
Hi, I am using Visual Studio 2008.  I have installed AJAX and have the ajaxToolkit.dll within my bin folder.  I am able to drag all the AJAX items into my page. I am launching my Visual Studio application through a URL which is hosted on a web server.  My web.config file is not within the solution but within the root of the folder. I get the following error: Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser ...

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
Ive just started to transfer the website to the server and i keep getting this error "Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified." It works fine in VS, and the AjaxControlToolkit.dll is in the bin directory.  Ive added the assembly reference to the config:<controls> <add tagPrefix="AtlasControl" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" /></controls> Any suggestions?      I'd guess that maybe the web server doesn't have ASP.NET AJAX Beta 2 installed.http://blogs.msdn.com/DelayThis posting is provided "AS IS" with no warranties, and confers no rights. I'd guess that maybe the web server doesn't have ASP.NET AJAX Beta 2 installed.http://blogs.msdn.com/DelayThis posting is provided "AS IS" with no warranties, and confers no rights. I also had this error when visiting the web site on the URL (although I could debug it from Visual Studio). I solved it by creating an application on the directory of the AJAX project in IIS (In the Internet Information Services Manager). Hope that helps.   Thanks - I had exactly the same problem myself, and creating the Application in IIS Manager fixed it. Thanks for the tip. Cheers,Mike Hi, i also have the same problem while deploy my web to window server 2003.  It seem it cannot find the naming of the ajaxtoolkit which i store inside a "bi...

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified
Hi,How do you install the ajax control toolkit on a computer that does not have visual studio or visual web developer installed?It is running asp.net and the ajax extensions appear to be installed correctly too. I have tested pages on my local machine, which has the toolkit installed properly (and has visual web developer installed too). However when I try looking at the pages on the server, I get this error"Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified"Do I need to register the assembly? How do I do that?  I realised just after I posted this that I just needed to include a reference to the dll in the project. Sorry I realised I just had to include the dll as a reference in the project right after I posted this.  I'm having the same problem.  How do I include the dll as a reference in the project?"Sometimes I spend so much time going the wrong direction on a problem. K.I.S.I.S = Keep It Simple I'm Stupid :)"Matt Even I am facing the same issue. It works perfectly on local machine, however, when I upload it on the server. It gives me the following error message.. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load file or assembly ...

Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. #2
Hi, i copied the solution folder   and put this folder to another  computer and i try to run it show the error message " Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified." Please guide me very urgent.Regards,Kannandesikan You need to install the ASP.NET AJAX extensions on the web server. ...

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified #2
"Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified"Here's the source code that's causing the error: Line 1: <%@ Page Language="VB" %> Line 2: <%@ Import Namespace="System.Net.Mail" %> Line 3: <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %> Okay, I have the dll's loaded and everything and I keep getting this error. I am trying to use the ValidatorCalloutExtender of the Beta. Any ideas?John WootonInspireMedia http://www.inspiremediablog.com Make sure AjaxControlToolkit.dll is in the BIN directory of the web site.http://blogs.msdn.com/DelayThis posting is provided "AS IS" with no warranties, and confers no rights....

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified. #2
 hii am new to asp.net and asp.net  AjaxControls, pls help this error below. Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.Source Error: [No relevant source lines]Source File: none    Line: 0 Asse...

Could not load file or assembly 'FredCK.FCKeditorV2' or one of its dependencies. The system cannot find the file specified
i have developed an asp.net application.. in that im using FCKEditor to edit contents on my website dynamically.. i have added reference (.dll) file to the bin directory in my web application. it works fine in my local machine.. The Editor is diaplaying and i can able to modify my content. But in server its showing the following error.. Could not load file or assembly 'FredCK.FCKeditorV2' or one of its dependencies. The system cannot find the file specified. <%@ Page Language="C#" MasterPageFile="admin.master" AutoEventWireup="true" CodeFile="cm...

Unable to create type 'live:IDLoginStatus'. Could not load file or assembly 'System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The s
Hello,  I try to use a windowslive website in visual studio 2008 with framework 3.5 I have installed the framework 3.5 and i get following error although the site is working perfect in localhost: Unable to create type 'live:IDLoginStatus'. Could not load file or assembly 'System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.After this i check my gac and i manually (with configuration tool 2.0) installed 3.6 in my gac. I still get the same error. What am i doing ...

Could not load file or assembly 'ASPNetVideo.NET2.AJAX' or one of its dependencies. The system cannot find the file specified.
I have used AspNetVideo for window media player control that displays in the toolbox. I did everything that i wanted to and it's working fine in my local computer. The problem is it is not working online server. When I browse the particular file where media player is added it displays the result as; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error de...

Parser Error: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
I am getting an error and I opened a post in the wrong area.  It seems more fitting here. http://forums.asp.net/t/1269455.aspx Firstly, I did read many post reagrding this error in the forum and on google.  Yet, I could not find one that matched my particualr situation. I am getting the error: Parser Error: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified. I am using version 1 of the Ajax Extensions with VS 2005.  The website project works perfectly on my local machine.  However, after u...

Parser Error: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
Firstly, I did read many post reagrding this error in the forum and on google.  Yet, I could not find one that matched my particualr situation. I am getting the error: Parser Error: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified. I am using version 1 of the Ajax Extensions with VS 2005.  The website project works perfectly on my local machine.  However, after uploading it to my shared hosting account (Webhost4life).  I get the error above.  The hosting claims they have AJAX installe...

Parser Error Message: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
Hi,  I am using ASP.Net 2.0 with AJAX Extensions 1.0. And one of my aspx was using 2 of the ajaxtoolkit namely the ModalPopupExtender and RoundedCornersExtender. But why is it that when I will access the page from the web server the error below will display on the page. It's really frustrating because there's no problem when running locally in my machine thru Visual Web Developer 2005 Express Edition. I hope you could help me figuring the problem. Thanks Error message:  Server Error in '/' Application. Parser Error Description: An e...

Error 1 Could not load file or assembly 'Microsoft.Web.Preview' or one of its dependencies. The system cannot find the file specified.
Trying to run the samples and this is the error I get.  After looking around I see others have gotten this error but with the beta versions.  My install is not a beta release and I have not had any of the betas installed.  Any ideas? I would look to your web config file or possibly your machine config file.   Im betting you somehow got some old beta settings in it.  possibly do a search for Microsoft.Web.Preview in your entire solution. AjaxButter The other thing i just noticed is you said you were running the samples. Im betting your usin...

Parser Error Message: Could not load file or assembly 'Microsoft.Web.Atlas' or one of its dependencies. The system cannot find the file specified.
hi all,I have a not so nice error that I can't solve. I use asp .net 2.0 and Atlas. The site works in dev but not on my server... I hope someone can help me out. RegardsStijnParser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load file or assembly 'Microsoft.Web.Atlas' or one of its dependencies. The system cannot find the file specified.Source Error: Line 1: <...

could not load file or assembly 'Microsoft.Web.Extensions.Design' or one of its dependencies.The located assembl' manifest definitation does not match the assembly reference.
 Hi All,  I have got problem while deploying in windows server 2003.When I run deployed site I get this error,The error message is "could not load file or assembly 'Microsoft.Web.Extensions.Design' or one of its dependencies.The located assembl' manifest definitation does not match the assembly reference." Please help me to find the solution. Regards,Shiva Reddy.P v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} ..shape {behavior:url(#default#VML);} Normal 0 false...

Could not load file or assembly 'App_Web_zdfvephf, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
 When  i tried  to access  my home page  it  shows the following  Error Could not load file or assembly 'App_Web_zdfvephf, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. Try to Find your project folder from this location, Close your Visual Studio and delete it, and restart your visual studio and then rebuild. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files Hope you are Using ASP.NET v. 2.0. Hope this Helps,-Deepak - DeepakDon&...

Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Hi,  Ima using Crystal Reports for Visual Studio .NET 2005 Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.I am getting this error after I deploy the application. Then I installed Crystal Reports for Visual Studio .NET 2005 - Service Pack 1 (Updated Nov. 2007) Merge Modules for Crystal Reports for Visual Studio .NET 2005 This file contains the latest merge modules required for deploying .NET applications using Crystal Reports for Visual Studio .NET 2005. These merge modules may be incorporated into MSI-based setup packages to include the appropriate runtime files. Crystal Reports for .NET Framework 2.0 x86 Redistributable Package (32 bit) Still it is not working  Komakulas Check Windows/Assembly folder to see if the dll exists or not, and check the Version and Publick key. If not, you need to install the dll in this folder "Object reference not set to an instance of an object" Hi, I am facing the same problem now. Did you find that solution? If yes then please help me in solving the issue. Yours any help will be appriciated.......

Web resources about - Could not load file or assembly 'System.Data' or one of its dependencies - asp.net.visual-studio-2008

List of countries and dependencies by population - Wikipedia, the free encyclopedia
A map of world population. Gray-scale legend: 0 to 50 M to 400 M to 1,336 M (million), 2011. This is a list of countries and dependent territories ...

List of countries and dependencies by area - Wikipedia, the free encyclopedia
This is a list of the world's sovereign states and their dependent territories by area, ranked by total area. Entries in this list are based ...

Link: Dependencies are Evil by Mike Cottmeyer
Learn more about transforming people, process and culture with the Real Agility Program Great article by Mike Cottmeyer: Dependencies are Evil ...

3 Thinking Tools for Minimizing Dependencies Between Products
... work together in an integrated fashion. Each of these smaller products have a backlog, a […] The post 3 Thinking Tools for Minimizing Dependencies ...

Google Play Services 6.5 Rolling Out Now With Granular SDK Dependencies And New Features In Fit, Maps ...
Most of us don't want to think of Android without Google Play services. There's a good reason for that, without all of the tools Google offers, ...

Codea Is Now More Dependable With Project Dependencies And Other New Coding Features
... If you can’t see the video embedded above, please click here . This time, the latest update to Codea introduces support for project dependencies. ...

Article: Cut off wrong dependencies in your .NET code
Today, we got published the article Cut off wrong dependencies in your .NET code on InfoQ. I re-introduce there the two ideas of namespaces as ...

Interface vs. Implementation Dependencies in Java
I often use the notion of interface and implementation dependencies, where interface dependencies are mostly always smaller. I think this is ...

Identifying Agile Impediments, Relationships, and Dependencies
Identifying Agile Impediments, Relationships, and Dependencies

For your app-roval: My horrifying digital dependencies
For your app-roval: My horrifying digital dependencies

Resources last updated: 3/12/2016 11:25:17 PM