I am trying to check out MvcRazorToPdf. I'm installing it from Nuget Manager.
When I attempt to build the project I get this error message:
Error 5 Assembly 'MvcRazorToPdf, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null' uses 'itextsharp, Version=5.5.3.0,
Culture=neutral, PublicKeyToken=8354ae6d2174ddca' which has a higher
version than referenced assembly 'itextsharp, Version=5.5.0.0,
Culture=neutral,
PublicKeyToken=8354ae6d2174ddca' d:\PROJECTS\Crowdiet\packages\MvcRazorToPdf.1.0.2\lib\40\MvcRazorToPdf.dll Crowdiet
In order to solve it I installed the latest version of iTextSharp from Nuget. Version 5.5.7
Now I'm building and so it runs.
However, when trying to execute MvcRazorToPdf code I get the following error message:
Could not load file or assembly 'itextsharp.xmlworker,
Version=5.5.3.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' 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 'itextsharp.xmlworker, Version=5.5.3.0, Culture=neutral,
PublicKeyToken=8354ae6d2174ddca' or one of its dependencies. The
located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040)
Any ideas how to deal with this? Thanks.
DSB I've written this as theres too much to place in a comment.
This link should help address your azure query SO.
In regards to what I had said about updating your wkhtml files you need to click this link wkhtml download (this is a link for the site wkhtml page) as this will provide you with the 3 updated files you need for rotativa. There's 2 things that you can do when the download has finished in order to get these new files into your solution. This download will save a setup program to your computer which contains the 3 files. When you are saving the files make a note of where you are saving them to.
Download 7 zip found at 7zip or any file extracting tool if you don't already have one. Right click on your download and use the extraction tool to extract and save the 3 updated files.
If you can't download or don't have an extraction tool then run the setup of the downloaded file. This should save into your program files in your standard drive. Navigate through program files to the wkhtmltopdf folder, click on it, then click the bin folder and inside this you'll find the 3 updated wkhtml files.
When you've got these three files add these to your existing rotativa folder inside your solution. Do a rebuild of the soultion if necessary just to update it. Hope this helps!!
Related
While opening a solution in Visual Studio 2017, I get a popup saying:
An exception has been encountered. This may be caused by an extension.
You can get more information by examining the file '[...]\AppData\Roaming\Microsoft\VisualStudio\15.0_ce1eea42\ActivityLog.xml'.
The specified file reports several errors related to assembly Microsoft.VisualStudio.TelemetryForPPT:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.TelemetryForPPT, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.TelemetryForPPT, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at GoToDef.GoToDefMouseHandlerProvider.GetAssociatedProcessor(IWpfTextView view) at Microsoft.VisualStudio.Text.Editor.Implementation.InputController.<UpdateMouseHandlers>b__7_0(IMouseProcessorProvider p) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter) 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].
Any suggestion to solve the problem?
PPT stands for Productivity Power Tools. I had the same problem as you have after installing PPT 2017 two days ago. Yesterday this problem went away after I uninstalled PPT. Last night Microsoft created a new version (15.0.2) of PPT 2017, so apparently something was wrong.
I tried to reinstall this new version just now, but in my case some issue is apparently still there, so I disabled all 15 components of PPT again and the problem disappeared again.
Some entries from the errorlog:
LegacySitePackage failed for package [OptionsPagePackage]Source: 'PPTOptionsPage' Description: Could not load file or assembly 'Microsoft.VisualStudio.TelemetryForPPT, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Het systeem kan het opgegeven bestand niet vinden.
System.IO.FileNotFoundException: Could not load file or assembly '
[Update-2017-04-12] After installing version 15.0.4 of PPT 2017 for four of the fifteen components of PPT 2017 this morning, in my case this problem appears to be solved.
As suggested by qxg, I launched a repair through Visual Studio Installer, and it's OK now. All 3rd party extensions have been uninstalled: I suspect that the issue was caused by one of them.
I kept getting this error after deploying my MVC 5 Web Application :
Could not load file or assembly 'System.Web.Http.WebHost,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or
one of its dependencies. The system cannot find the file specified.
After googling around, I found that the reason is the Bin folder lacks of System.Web.Http.WebHost.dll file, then I go to look in the Bin folder of my project, but I also can't find it, but it appears in the References section :
Now I have no idea how to solve this problem, any help is greatly appreciated!
P/s : the web application is running fine on my machine
Try right clicking the reference -> Properties, and set CopyLocal = true . That should put the dll in your bin folder (and thus be included in the deployment as well). Hope that helps!
I am trying to deploy a simple intranet application on my local machine. I've included the deployable assemblies and have deployed it in asp.netv4 app pool but when I try to browse the application i get the below error.
Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. The system cannot find the file specified
Could anyone please help ? thanks
The first thing you should do is to go to your MVC web application project and expand the References node in the project tree. Select the DotNetOpenAuth assemblies and in the Properties dialog, set Copy Local to True. and then deploy it.
MVC.NETProject->References->Remove OAuth*
Please keep in mind that I am new to world of .Net and F#. I apologize in advance if my question sounds stupid or I don’t use the correct terminology. Having said that, here is my question:
I wrote a simple F# consol application using visual studio 2010. After successfully executes the application on my computer, I moved the executable file found under debug directory to different computer and try to execute it. This results in the following execption
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
at .$Program.main#()
The tagger machine has .net 4 installed. I checked the GAC and found the following “FSharp.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”
But application is looking for FSharp.Core, Version=4.0.0.0. If I understood correctly, there is no such version of F# 4.0 is available, so why my application is looking for Version=4.0.0.0? Any help is welcome
Thanks
Sudaly
Does the other machine have the F# Runtime installed on it?
I am trying to upgrade the ASP.NET MVC 1.0 application to 2.0 preview 1. I am using the spark as view engine.
issue:
Spark used the System.Web.MVC 1.0.0.0 so I got the source code and recompiled using the 2.0.0.0 and used the new assembly. Now I am getting the different error as follows:
Could not load file or assembly 'Microsoft.Web.Mvc' 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 'Microsoft.Web.Mvc' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 163: return new ViewEngineResult(searchedLocations);
Line 164:
Line 165: entry = Engine.CreateEntry(descriptor);
Line 166: SetCacheValue(descriptorParams, entry);
Line 167: return BuildResult(entry);
Source File: C:\Data\Projects\Samples\spark 1.0 Src\src\Spark.Web.Mvc\SparkViewFactory.cs Line: 165
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Web.Mvc' 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].
My experience:
Get Spark source from this link: Spark development builds
Replace the file bin\aspnetmvc\System.Web.Mvc.dll with the 2.0 version (from %ProgramFiles%\Microsoft ASP.NET\ASP.NET MVC 2\Assemblies)
Execute the build.cmd script
The updated Spark.dll & Spark.Web.Mvc.dll are available in the build folder
Notes:
on the time of writing, the available spark development version is 1.0.39961.0.
The build script fails while looking for a jsunit file (I believe) but the DLLs are generated properly before it breaks. Just cancel its execution by hitting Ctrl+C when the error is displayed otherwise it'll retry the operation.
Hope it helps.