System.IO.FileNotFoundException: Could not load file or assembly 'App_GlobalResources' or one of its dependencies.

 Hello,
I have a project that have resources in App_GlobalResources folder in which .resx files' custom tool are set to GlobalResourceProxyGenerator.
So that I can use my resouce files like 
Resources.myResource.myString 
This works without any problems.
However when I add UnitTests to my project and run those tests, whenever main application uses the resources it throws following exception:
 System.IO.FileNotFoundException: Could not load file or assembly 'App_GlobalResources' or one of its dependencies.
I have been searching for a possible solution for a week but no chances. I have a co-worker here in the same company who has the same problem in different project.
Is this a known bug or do we do something wrong?
Thanks in advance.
Yusuf DemiragYusuf

 
Hello Yusuf,
Thank you for your post!  I would suggest posting your question in one of the MS Forums, 
Home › ASP.NET Forums
located here:  http://forums.asp.net/
Have a great day!

Similar Messages

  • Could not load file or assembly '9LensesLogger' or one of its dependencies. Access is denied.

    Could not load file or assembly '9LensesLogger' or one of its dependencies. Access is denied.
    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 '9LensesLogger' or one of its dependencies. Access is denied.
    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 '9LensesLogger' 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:
    [FileLoadException: Could not load file or assembly '9LensesLogger' or one of its dependencies. Access is denied.]
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17
    System.Reflection.Assembly.Load(String assemblyString) +35
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +130
    [ConfigurationErrorsException: Could not load file or assembly '9LensesLogger' or one of its dependencies. Access is denied.]
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +1220
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +435
    System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +132
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334
    System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +148
    System.Web.Compilation.BuildManager.ExecutePreAppStart() +171
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1037
    [HttpException (0x80004005): Could not load file or assembly '9LensesLogger' or one of its dependencies. Access is denied.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +646
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +778
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18449

    Hi vaibhavdaji.86,
    >>An unhandled exception was generated during the execution of the current web request.
    Base on the description, I think your project is a web project.
    The forum supports .net framework setup. I suggest you post your issue to ASP.NET forum below.
    http://forums.asp.net/
    I will move the thread to off-topic forum. Thanks for your understanding.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

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

    This was all working yesterday, but this morning, I cannot run in the dev fabric, or even setting the website project as a startup project directly, I get the following error:
    Could not load file or assembly 'msshrtmi' 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 'msshrtmi' 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 'msshrtmi' could not be loaded.
    === Pre-bind state information ===
    LOG: User = Andrew-VAIO\Andrew
    LOG: DisplayName = msshrtmi
    (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: msshrtmi | Domain ID: 3
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
    LOG: Appbase = file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/
    LOG: Initial PrivatePath = C:\Users\Andrew\Desktop\Beko2011Azure\Website\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\Andrew\Desktop\Beko2011Azure\Website\web.config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/bin/msshrtmi.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
    Stack Trace:
    [BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
    System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
    System.Reflection.Assembly.Load(String assemblyString) +28
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
    [ConfigurationErrorsException: Could not load file or assembly 'msshrtmi' 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) +618
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
    System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
    System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677
    [HttpException (0x80004005): Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9079228
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
    Note that the dev machine is x64 Win7.
    I have not tried deploying this to staging since the issue started as I'm a bit nervous of touching the staging/live environment until this is solved.
    Removing the PlatformTarget element from the project file has no effect
    Removing the msshrtmi.dll file from the bin directory of the website project ends up with 
    'Could not load file or assembly 'Microsoft.WindowsFabric.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified'
    I have used Git to revert to the last working build to no effect (But I don't have the obj/bin folders in GIT), but it has atleast reset the project files etc.
    If I return msshrtmi.dll to the bin folder and switch the model and website projects to x64 there is no change
    If I switch both to x86 then I get an error Could not load file or assembly 'BekoModel2011' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    which is the model project - presumably because to run on my x64 machine I need the 64bit version?
    I really need to be able to debug and then publish some changes ASAP.
    Andrew

    Hi,
    Is it true that you're using IIS to host the application? Could you check whether the process is x64 or x86 one via task manager or config in IIS manager?
    http://blogs.msdn.com/b/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-at-the-same-time-on-different-worker-processes.aspx
    Allen Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Could not load file or assembly 'Ajaxcontroltoolkit' or one of its dependencies. Access denied

    Hi all,
    I have searched a lot in google, but could not find the same scenario i am facing.
    I have a asp.net 3.5 web application, which use ajax toolkits. Also, I am impersonating the logged active directory users to connect sql server with their own windows credential. Everything fine, but sometimes, I am getting the error "Could not load file
    or assembly 'Ajaxcontroltoolkit' or one of its dependencies. Access denied". If I republish the site, the error will go. I dont know which cause to this error?
    Any solution would be highly appreciated.

    Hi Ghouse,
    Sorry for my weak explanation. 
    Let me bit more clear. I publish the web app into a server. It works very fine. But, after few days, or even before, it show the subject error. Then it will keep on coming the same error. If I publish again, the web starts working again. After few days,
    the error will come again. I dont know what is the root cause.
    I see a message "This file came from another computer and might be blocked to help protect this computer" on the properties box of the ajax dll. I clicked on ublock. After that the access denied issue didnt appear. But, not sure this is the solution, I also
    have give full right to asp.net temperory file folder. 

  • Could not load file or assembly 'log4net' or one of its dependencies. An at

    Hi guys,
    Yesterday I downloaded the CR release for VS2010. Before this I was using the Beta (and later Beta2) version. Both worked fine. I first uninstalled the beta version, next I installed the release version. No problems with installing. But now I'm trying to use CR. I get the error:
    "Could not load file or assembly 'log4net' or one of its dependencies. An attempt was made to load a program with an incorrect format.".
    I noticed that it has something to do with the runtime enviroment. If I set the project's platform target to x86, it works fine. Turning it back to 'any CPU' or x64, it results in that error. (I'm using w7 x64).
    I did install the the x64 runtime (CRRuntime_64bit_13_0.msi, also asked at the end of the installation).
    Any ideas how to solve this?
    Why is CR using log4net anyway?
    Best,
    Danny

    Hi Ludek,
    Thanks for you replies. Let's answer them:
    -Is this a local install, or are you using some sort of a remote connection?
      It's my local development machine.
    -Are you getting the error at build time or at runtime?
      Both: VS2010 doesn't give a compiler error, but only a warning. At runtime in completly crashes.
    - Look in the GAC. Do you see Log4Net.dll? There should be two - one for 32 bit and one for 64 bit OS (same version though).
      Both are there.
    Further I noticed the following.
    - If I set the target platform to Any CPU (and thus x64), when building, log4net.dll is copied to the bin folder. If the target platform is set to x32, log4net.dll is not copied. If a take a look at the last modified time of the dll and compare this to the dll in the GAC, the 64-bit dll is copied. So this looks right.
    - If I selected the included reference in VS2010, it says that the path of the reference is the following: ...\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.ReportSource.dll. So it looks like the 32-bit version of CR is used.  When I go the folder Crystal Reports for ...\.NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86, I can find here a folder "dotnet", containing all the references included in the project. Taking a look into the "win64_x64" folder, I can't find the "dotnet" folder. I did install the 64-bit runtime version.
    Hope this information helps

  • Could not load file or assembly itextsharp or one of its dependencies.

    Hi
    I want to generate pdf files in Sharepoint 2010 and to that end have added the iTextSharp dll to my project’s ‘References’.
    However when I try to use the library I’m getting the below error in the browser:

    Adding it to the GAC using GAC util adds it to the file system, it does NOT make it part of the WSP.
    You do not HAVE to add the dll to the wsp package, instead you can use Gacutil and install on each server. I build deployment packages (batch file to add dlls, install solution, activate features) to simplify the process
    If you want to add the dll to the wsp via the advanced tab, don't do it!!! Not to the wsp for your solution anyway. The reason is, when you remove the wsp, SharePoint REMOVES THE DLLS IN THE ADVANCED TAB FROM THE GAC, EVEN IF THOSE DLLS ARE USED IN A DIFFERENT
    WSP.
    So you have project1.wsp and project2.wsp and both have that same dll in the advanced tab. You add both to the same server, then remove project1.wsp. SharePoint removes the dll and now you've broken project2. The dll might still be in the GAC, but be locked
    and unavailable.
    The best practice is to actually create a separate wsp for your dll, with a name and intention that it will never be removed, even if you remove your project.
    eg. Project1.wsp and Project1Dlls.wsp, Project2.wsp and Project2Dlls.wsp and you NEVER remove the dll projects, which are the ones with dlls added via Advanced tab in package. This way, if you have to remove one of the projects then the other will still
    function.

  • Log error "Could not load file or assembly 'BarcodeConversion' or one of its dependencies. Access is denied. This code work fine in server 2008 but get this error in server 2012

    This code work fine in server 2008, but get this error in server 2012.  Do yo have any idea?

    Need some more info as to where this is installed and how.
    First thing to try would be to uninstall the solution and reinstall.
    Check the GAC for your assembly as well as web.config.
    If you don't see it in one of those places, something went wrong with the install and you'll need to start over.
    Brandon James SharePoint Developer/Administrator

  • DB attach error: system.IO.FileNotFoundException: Could not load file or assembly 'Company.Solution.Update, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e2569ffaccb59eb4' or one of its dependencies.

    I did a DB attach restore of the production db to a dev server, and got an error:
    system.IO.FileNotFoundException: Could not load file or assembly 'Company.Solution.Update, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e2569ffaccb59eb4' or one of its dependencies. The system cannot find the file specified.    at System.Reflection.Assembly._nLoad(AssemblyName
    fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)     at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
    Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)     at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)    
    at System.Reflection.Assembly.Load(String assemblyString)     at System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName, Boolean throwOnFail)     at System.Web.UI.TemplateParser.AddAssemblyDependency(String
    assemblyName, Boolean addDependentAssemblies)     at System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistrationCore(TagNamespaceRegisterEntry nsRegisterEntry)     at System.Web.UI.BaseTemplateParser.ProcessDirective(String
    directiveName, IDictionary directive)     at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
    Recommendations, please.
    Thanks,
    Scott

    Hi Scott,
    from  "system.IO.FileNotFoundException: Could not load file or assembly 'Company.Solution.Update," error
    it seems some custom feature assemble missing in DEV. Do you have any custom feature installed in PROD and not in DEV ? Also make sure both environment are running on same SP / SQL versions.
    Let us know your results, thanks.
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Could not load file or assembly log4net or one of it dependencies

    I hit an error could not load file or assembly log4net or one of it dependencies when I run my web application on 2008 server 64 bit.
    I develop the web app using VS 2010 under Window 7 32 bit.  The crystal report using 32 bit as well.  I compile the system and  target to x64 platform and try to deploy it under Window server 2008 64 bit.  I have install the CR 2010 re-distribute 64 bit in the server.  May I know what the causes?  Is it I'm not able to build 64 bit application using VS 2010 run under 32 bit platform?
    Pleae help.

    See if KB 1543854 helps (use the search box in the top right corner of this page). Also search these forums for log4net and use the search box for the term also.
    - Ludek

  • Old MVC version: System.IO.FileLoadException: Could not load file or assembly

    Deploying my .NET application in Azure is stuck recycling over and over again.
    Apparently, it tries to load an old MVC version, which is not included in the project:
    Microsoft.WindowsAzure.ServiceRuntime Critical: 201 : ModLoad: 00007ffd`5d100000 00007ffd`5d206000   D:\Windows\Microsoft.NET\Framework64\v4.0.30319\diasymreader.dll
    Role entrypoint could not be created:
    System.TypeLoadException: Unable to load the role entry point due to the following exceptions:
    -- System.IO.FileLoadException: Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
    (Exception from HRESULT: 0x80131040)
    File name: 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
    The redirect in the web.config is obviously ignored:
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-5.1.0.0" newVersion="5.1.0.0" />
    </dependentAssembly>
    What do I need to do, to finally succeed deploying the application?

    Hi,
    It seems this assembly ''System.Web.Mvc' is missing when you deploy your application to azure, I suggest you check this assembly whether it exist, if not, please right click this assembly and set the property 'Copy Local' as True, then deploy again.
    Hope this helps.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • FileNotFoundException Could not load file or assembly - VS2008

    An error occurred when I wore ODAC with visual studio 2008, when I tried to follow the lesson of this site http://st-curriculum.oracle.com/obe/db/hol08/dotnet/buildnet/buildnet_otn.htm
    The error was to start the debug - "FileNotFoundException was unhandled - Could not load file or assembly 'Oracle.DataAccess, Version = 2.112.2.0, Culture = neutral, PublicKeyToken = 89b483f429c47342'or one of ITS dependencies. The system Can not find the file specified.
    I am developing a project with Oracle 11g and C # for college.
    Configuration:
    Windows 7 Professional SP1 64-Bit.
    Visual Studio 2008 Professional Edition (x86 and x64 WoW) Version 3.5 SP1
    ODAC 11.2 Release 3 (11.2.0.2.1) with Oracle Developer Tools for Visual Studio
    Oracle Database 11g Release 2
    Thank you for your attention

     
    Hello Yusuf,
    Thank you for your post!  I would suggest posting your question in one of the MS Forums, 
    Home › ASP.NET Forums
    located here:  http://forums.asp.net/
    Have a great day!

  • In 32bit system getting exception "Could not load file or assembly 'SIPEPS, Version=5.0.0.0' "

    Hi All,
    We are developing a windows service for Lync user state change using UCMA 4.0.
    It works fine in 64 bit system but once we run the window service in 32 bit system we are getting the exception as  below.
    Exception  message: Could not load file or assembly 'SIPEPS, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
    We are referring only “Microsoft.Rtc.Collaboration.dll” but internally this Dll refers SIPES.dll.
    Please let us know whether any SIPEPS.dll available for 32 bit system or how we can resolve this issue.
    Regards
    Saroj Singh

    Is there anyways by which we can make this working in 32bit system also.
    Any Roundabout for this specific SIPEPS.DLL for 32 bit system.

  • Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral

    Hi,
    I have a web site developed with vs 2010 (32-bit) and crystal report 13 (for sv 2010). It's working well i when crystal report installed in gac. I need to this app on a server WITHOUT crystal report installed. so I copied all required crystal assemblies into the bin folder and publish it. I always get following error message
    Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    I tried a lot of solutions in this forum, but none of them resolved my issue.
    Please help!!
    thanks,
    Max

    Stick with x86 or x64, not Any CPU.
    Don't include log4net manually
    Look at these Kbases:
    [1543854  - Error: Could not load file or assembly log4net|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343333333833353334%7D.do]
    [1550854  - "Could not load file or assembly 'log4net' or one of its dependencies" Error when building Visual Studio 2010 solution utilizing the Crystal Reports .NET Runtime|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353330333833353334%7D.do]
    [1544693  - Error BC30560: 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343334333633393333%7D.do]
    [1548993  - Server Error in '/' Application when running .NET Web Application using Crystal Reports for Visual Studio 2010|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343338333933393333%7D.do]
    - Ludek

  • Upgrading to MBAM 2.5: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0.....the system cannot find the file specified.

    Upgrading from MBAM 1.0 to 2.5 on the Administration and Monitoring server (database server already upgraded). To upgrade the administration server, I uninstalled MBAM 1.0 -> Deleted the MBAM website from IIS manually -> Reboot -> Installed MBAM
    2.5. After upgrade if I go to selfservice portal via
    https://myserver.mycompany.com/selfservice, I get this error:
    Server Error in '/SelfService' Application.
    Could not load file or assembly 'System.Web.WebPages.Razor,
    Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
    dependencies. The system cannot find the file specified.
    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.FileNotFoundException: Could not load file or assembly
    'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral,
    PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot
    find the file specified.
    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.
    Stack Trace:
    [FileNotFoundException: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
    System.Web.Mvc.PreApplicationStartCode.Start() +0
    [InvalidOperationException: The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..]
    System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +12980619
    System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +12980328
    System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +280
    System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151
    [HttpException (0x80004005): The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12979668
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12819261
    Anyone know how to solve this? Thanks in advance

    Sorry for late response. I fixed the issue by installing the correct version of ASP .NET 4 from
    here.
    If .NET Framework 4.5 is already installed, also run aspnet_regiis -i from C:\windows\microsoft.net\Framework\v4.0.30319

  • Could not load file or assembly 'System.EnterpriseServices

    Hello Guys,
    I"m new to Oracle and .Net, I'm trying to display data in a gridview but when I run my Asp.net application I get this error: "*System.IO.FileNotFoundException: Could not load file or assembly 'System.EnterpriseServices, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified*"
    I am not sure wat this means and I have been searching the internet with no success. I'm using Oracle 9i Client 9.2.0.1.0 and I downloaded ODP.NET Version=9.2.0.700 just recently. Cud this have caused the problem????
    Here is a snippet of my code and the program bombs at conn.open(), it seems like it cannot read my connectionString.
    public DataTable FetchData(string statement)
    DataTable dt = new DataTable();
    string constr = "Data Source=PSM1;User ID=CHRHRDM;Password=CHRHRDM";
    //conn.ConnectionString = "Data Source=PSM1;User ID=CHRHRDM;Password=CHRHRDM";
    OracleConnection conn = new OracleConnection(constr);
    conn.Open();
    OracleCommand cmd = new OracleCommand(statement, conn);
    cmd.ExecuteNonQuery();
    OracleDataAdapter adapter = new OracleDataAdapter(cmd);
    adapter.Fill(dt);
    //cmd.Connection.Close();
    conn.Close();
    return dt;
    And this is wat I see in my Event Viewer:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 2010/02/11 10:38:59 AM
    Event time (UTC): 2010/02/11 08:38:59 AM
    Event ID: 16667c76f5eb459abfa0066c08b62c6d
    Event sequence: 4
    Event occurrence: 1
    Event detail code: 0
    Application information:
    Application domain: 5ba4c282-1-129103511373281250
    Trust level: Full
    Application Virtual Path: /SSU_Website
    Application Path: C:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\
    Machine name: ACER-926C8D0979
    Process information:
    Process ID: 5328
    Process name: WebDev.WebServer.EXE
    Account name: ACER-926C8D0979\bothank
    Exception information:
    Exception type: FileNotFoundException
    Exception message: Could not load file or assembly 'System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    Request information:
    Request URL: http://localhost:1241/SSU_Website/Default2.aspx
    Request path: /SSU_Website/Default2.aspx
    User host address: 127.0.0.1
    User: ACER-926C8D0979\bothank
    Is authenticated: True
    Authentication Type: NTLM
    Thread account name: ACER-926C8D0979\bothank
    Thread information:
    Thread ID: 4
    Thread account name: ACER-926C8D0979\bothank
    Is impersonating: False
    Stack trace: at Oracle.DataAccess.Client.OpoConRefCtx..ctor()
    at Oracle.DataAccess.Client.OracleConnection.Open()
    at DAL.FetchData(String statement) in c:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\App_Code\DAL\DAL.cs:line 26
    at CommonQueries.GetAllDetails() in c:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\App_Code\BLL\CommonQueries.cs:line 30
    at Default2.populateGridView() in c:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\Default2.aspx.cs:line 28
    at Default2.Page_Load(Object sender, EventArgs e) in c:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\Default2.aspx.cs:line 20
    at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
    at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
    at System.Web.UI.Control.OnLoad(EventArgs e)
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Can Someone Please help me... I'm in desperate need

    Hi,
    For anyone with a similar error, I added System.EnterpriseService reference to my project. Now I can see my data on the gridview.
    Thanks

Maybe you are looking for

  • Problem importing PDF file from Word to Pages on IPad 2

    I am trying to import a PDF file from Word 2007 to Pages on my iPad 2 using the file sharing function in iTunes. I am able to import it, however when Pages saves it, I get the following message: "Pages doesn't support some od the original document. O

  • Disc drive

    i'm on a macbook g4 15" with 10.4.11 i've been having a problem with my disc drive for awhile. I accepted a while ago that it was probably just physically broken, but I noticed recently that when I insert any sort of disc, whether it be a pristine DV

  • Macbook Pro 13" + Dell US2410

    Hello fellas, bought a dell 2410 2 weeks ago and find that when i edit stuffs on lightroom 3, it kind of lags as compared to when i am running LR3 on my macbook itself without using the external monitor. would like to ask if the graphic card on board

  • Output audio different than video

    From FCP, timeline highlighted, I exported to Compressor. 30 minutes of video and corresponding audio. When it's finished the video is what was in the timeline in FCP, but the audio is from another clip altogether. I've tried the same steps with othe

  • Removing "User Settings"  in Travel & Expenses in ESS

    Hi All, In Travel and Expenses on any screen if  you "Right click" on header part  you will get "User Sttings" options  . I want to remove those options. is it possible from portal side or i have to do some changes in r/3. Thanks, Rameshb.