.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

Could not load file or assembly

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :
 

Don't know if I am in the right forum, but will start here. I was directed here from the VB forums and am not sure what my problem is at this point.

I have an app developed in VB2008 express and it installs and runs correctly on 3 of my computers. I have now tried to distribute the program to a partners computers and have run into some problems. One computer is Toshiba laptop with windows 7 on it and is new and the other computer is an old XP sp3 unit. Both come up with the same error message and will not access the databases or run normally. The error message is as follows:

Could not load file or assembly 'System.Data. SqlService Ce. Version=3.5.0.0. Culture=Neutral. Public Key Token=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

I checked for .net framework 3.5 etc. and the computers seem to be set up ok. The Windows 7 computer is a 64 bit system and the XP computer is a 32 bit system. There must be a file missing, but I haven't run into a problem on my personal units. I do have VB2008 installed on all 3 of my sysems and maybe there is a file that needs to be distributed with the program in addition to the .exe file. It has me stumped! Not sure what file is missing or how to distribute it. Could the computers the program won't run on be missing the Sql Server software and the program is looking for


View Complete Post


More Related Resource Links

Could not load file or assembly - Web Deployment Project

  

Hi,

I have the following projects in a solution :

- A Web Application

- A Class Library

- A Web Deployment project

The Web Application compiles and run fine when I don't go through the Web Deployment Project. However when I try to use that, I get the following error:

Error 1 An error occurred creating the configuration section handler for hibernate-configuration: Could not load file or assembly 'NHibernate' or one of its dependencies. The system cannot find the file specified. (F:\Folke\Folke.csproj_deploy\Release\web.config line 4) 1 1 Folke.csproj_deploy

"An error occurred creating the configuration section handler for hibernate-configuration: Could not load file or assembly 'NHibernate' or one of its dependencies. The system cannot find the file specified. (F:\Folke\Folke.csproj_deploy\Release\web.config line 4)"

This is the beginning of my Web.config:

<?

Could not load file or assembly 'Microsoft.SqlServer.BatchParser' or one of its dependencies

  
I got this problem when I tried to migrate one of my web deployment project from vs2005 to vs2010 on windows 7 machine. The exactly error message is like this: Could not load file or assembly 'Microsoft.SqlServer.BatchParser' or one of its dependencies. An attempt was made to load a program with an incorrect format.(description) ASPNETCOMPILER(file), myWebDeploy (project) I have installed all of suggested feature packs as suggested by others: SQLServer2005_ADOMD_x64.msi, SQLServer2005_XMO_x64.msi. Can somebody please help? Thanks a lot 

Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0......

  
Hello to everyone. I have a .exe which uses the Server Management Objects(SMO) When I try it on my pc it runs without any problem. But on another pc it gives this error: Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. I'm using SQL Server 2000 and for the application: Visual Studio 2005. Any idea would be very useful!! Thanks in advance!!

AjaxContorlToolkit - issue: Could not load file or assembly

  
Hi everyone. Can somebody please tell me how to solve this problem with my ajax controls ?I've tried with copy the .dll's files in the project, and seems they are working fine in the visual studio with drag&drop, but when I'm trying to start the project i got this error. Thanks a lot.--------------------------------------------------- Server Error in '/' Application. Could not load file or assembly 'AjaxControlToolkit.resources.ar' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 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.IO.FileLoadException: Could not load file or assembly 'AjaxControlToolkit.resources.ar' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)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

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

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

Could not load file or assembly 'TraceWrapper, Version=1.0.523.0, Culture=neutral, PublicKeyToken=3

  
Hello Friends, I am new in dot net. I am download SCVMM WCF code from Microsoft site and made some changes and build the solution "It is Successfully build" and Successfully RUN and Give the output. I got error when I browse the .svc file in browser. error message is below - Could not load file or assembly 'TraceWrapper, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An attempt was made to load a program with an incorrect format. body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } Server Error in '/' Application. Could not load file or assembly 'TraceWrapper, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An attempt was made to l

Could not load file or assembly 'TraceWrapper, Version=1.0.523.0, Culture=neutral, PublicKeyToken=3

  
Hello Friends,   I am new in dot net. I am download SCVMM WCF code from microsof site and made some changes and build the solution "It is successfuly build" and Successfuly RUN and Give the output.   I got error when I browse the .svc file in browser. error message is below - Could not load file or assembly 'TraceWrapper, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An attempt was made to load a program with an incorrect format. body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } Server Error in '/' Application. Could not load file or assembly 'TraceWrapper, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An attempt was mad

Could not load file or assembly error

  
hi i got alot of this error in my error list..   Unknown build error, 'Could not load file or assembly ' or one of its dependencies. The system cannot find the file specified.   please adviceChange

Could not load file or assembly 'Microsoft.Scripting.ExtensionAttribute, Version=2.0.0.0

  
Dear ASP.NET I keep getting this strange error (below) on my local machine on the first time the page loads, Then if I reload it - it loads correctly... What is really strange is that it does not happen on the server (same settings)   I'm using AJAXControlToolkit.dll version 4.1.40412.2 and this script manager (if not I get the Common.Common.js error)<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AJAX" %> <AJAX:ToolkitScriptManager runat="server" ID="_scriptManager" AsyncPostBackTimeout="600" EnablePartialRendering="true" EnableHistory="true" />   I also tried to add this: <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Microsoft.Scripting.ExtensionAttribute" publicKeyToken="28f01b0e84b6d53e"/> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="AjaxControlToolkit" publicKeyToken="31bf3856ad364e35"/> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.1.40412.0"/> </depende

Framework error:Could not load file or assembly 'Microsoft.AnalysisServices, Version=9.0.242.0

  
Hi,I use sql clr sp's to load data in to database using .net framework 2.0. I never had aproblem using this and it went well for months.I recently updated to net framework 3.5 sp1 and sqlserver sp3 on 32-bit sql server and win 2003.I am facing an error which i could not resolve.Error:System.IO.FileLoadException: Could not load file or assembly 'Microsoft.AnalysisServices, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. Assembly in host store has a different signature than assembly in GAC. (Exception from HRESULT: 0x80131050)System.IO.FileLoadException:    at StoredProcedures.checktable(String paramComponent, String paramParameters)I have gone through different forums, and trie different options,but did not help. I am using 'unsafe'  option.I also tried to alter assembly which is mentioned in http://support.microsoft.com/kb/949080/pt But when i tried to alter the assembly using the above link or try to change the permission to external access on the assembly, i get the below error.Alter ASSEMBLY AccessibilityFROM 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Accessibility.dll'Cannot alter the assembly 'Accessibility', because it does not exist or you do not have permission.I am an admin on the server/sqlCan some one suggest how to alter assembly with permissions or solve this issue or am i missing anything important.Do i

MVC2 Could not load file or assembly 'xxxx.Models' shared hosting

  
Hello,I have an mvc2 site that runs fine locally but when i deploy it to my shared hosting account i keep getting this error.Could not load file or assembly 'AppMVC2.Models, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.I have run Reflector againts the dll to see what dependencies the dll has, I then took each one of the dependant dlls and set them to copy local in the project and deployed them all to the shared hosting account even ones that should be on the server like System.Web. except for mscorlib.dll, but i still get the error.I have also tried to bin deploy and deploy the code files and get the same error.I have seen people write about fusion log but i don't see any examples on how to get this running on shared hosting.Just wondering does anyone else have any recommendations on how to track down the source of this problem?

Cannot load file or assembly 'CLI.implementation, Version=2.0.2693.36850

  
All I wanted to do was update my ATI Catalyst and my video drivers... but no. I had to install a new version of the .NET framework. After installing .NET framework 3.0 from the Microsoft Updates page, I restarted my computer. Upon reaching the desktop, the ATI Catalyst Control Center would not open, giving me the message:     Cannot load file or assembly 'CLI.implementation, Version=2.0.2693.36850, culture=neutral, publickeytoken=90ba9c70f846762e' or one of it's dependencies. The system cannot find the file specified.     I'm really not savvy with this stuff, and I have no idea what to do. I'd like to learn, if not for bettering my knowledge than for the purpose of getting my Catalyst to work again.. Please help!

System.IO.FileNotFoundException: Could not load file or assembly 'System.EnterpriseServices

  
Hi, I am getting the following error with a WPF/C# application on one of the machines that we run the application on. The application works fine on other machines. I compared the "System.EnterpriseServices.dll" file on the machine that throws the error with the dll file on the machine that works fine. I did not any differences. We are using .NET 4 (client profile) framework on XP/x86. Can someone please provide some clue as to why the error is thrown on one of the machines? System.IO.FileNotFoundException: Could not load file or assembly 'System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'    at System.Data.Common.ADP.IsSysTxEqualSysEsTransaction()    at System.Data.Common.ADP.NeedManualEnlistment()    at System.Data.OleDb.OleDbConnection.Open()    at TDS.MainWindow.initializeDB(String fileWithPath) 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

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. There is not enou

  
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0x80070070) I had this error on one of my websites today, I've done some searching trying to figure out what might have caused this error. The server is fine and it does not seem to be a disk space issue. I fixed the problem by copying my back-up file over the website on the server and it works fine now. I read mabey it has something to do with the ajaxcontroltoolkit.dll file? I just wont to try to pin-point the problem so it dosen't happen again, or on any of my other sites. Any ideas or suggestions on what might be the problem or what to check?  Thanks! DA

Could not load file or assembly 'Compliance, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'

  
We recently upgraded from .NET 1.1 to .NET 3.5. The project was running fine until yesterday when I tried to create a set up project. When I add a new Websetup project and rebuild solution I get error :  Error 79 Could not load file or assembly 'Compliance, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417) Y:\Development_Sites\Development_Server_RW\QMComet\SGEN Compliance Now when I run the project  , I get : Server Error in '/QMComet' 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 type 'Jennison.Compliance.Global'.Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Jennison.Compliance.Global" %> Source File: /QMComet/global.asax    Line: 1     Please help. I wwas able to run the project before I tried to create a set up.   Thanks,Rohit

Could not load a file or assembly in Asp.net

  
Hello,Parser Error Message: Could not load file or assembly 'file:///C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\EmployeeApplication\8cbcad13\cb3f8f70\App_Web_login_ masterpage.master.cdcab7d2._dv8ypao.dll' or one of its dependencies. The system cannot find the file specified.when i build the application am experiencing the above error from 2 days.Please do the needful.Its urgent.

Could not load file or assembly '0 bytes loaded from System, Version=2.0.0.0, Culture=neutral, Publ

  
Hi I have a clickonce deployed application in my machine. When I tried to load the application, 90% of the application window is getting loaded but finally, I get the following error: Could not load file or assembly '0 bytes loaded from System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. An attempt was made to load a program with an incorrect format. I have read somewhere that this error could be caused when something goes wrong with the .net framework in the machine. My machine is having .Net framework 2.0, 3.0 and 3.5. So which framework should I reinstall? The application is developed using .net 2.0. Also, please let me know how the application is partially loading(90%) if the framework is corrupted.? Regards Anoop.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend