I'm using vs2019 vb.net & project framework is 4.7.2
I recently updated iText7 to v7.2.4 from 7.2.1 & suddenly this line
'''
Dim form As PdfAcroForm = PdfAcroForm.GetAcroForm(doc, True)
'''
gave error null exception so I uninstalled 7.2.4 & reinstalled 7.2.1 now I have the following error & I can't find where the reference to 7.2.4 is coming from
Warning Found conflicts between different versions of "itext.commons" that could not be resolved.
There was a conflict between "itext.commons, Version=7.2.1.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" and "itext.commons, Version=7.2.4.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca".
"itext.commons, Version=7.2.1.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" was chosen because it was primary and "itext.commons, Version=7.2.4.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" was not.
References which depend on "itext.commons, Version=7.2.1.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" [C:\Users\Hugh\Documents\Visual Studio 2019\Projects\Points Data System\packages\itext7.commons.7.2.1\lib\net461\itext.commons.dll].
C:\Users\Hugh\Documents\Visual Studio 2019\Projects\Points Data System\packages\itext7.commons.7.2.1\lib\net461\itext.commons.dll
Can anyone help me resolve this so the code runs correctly again please
Found that it wasn't iText7 causing the issue. I turned on Debugging "Just My Code" as I found others who had similar issues with running the code under VS. I then uninstalled all iText7 NuGet packages & re-installed the latest version 7.2.4
Now the debugger doesn't error out & the data fields extraction works as it did before under VS & when compiled as an installer.
Refer this link. Scroll down to near the end of the page iText7 break VS
Related
I get a build error using Visual Studio for Mac with an iOS project. It also occurs in an Android project on Mac and in an iOS project in Visual Studio 2019 on Windows 10.
I was able to run the project when on an iPhone 8 when it was "clean", before I put any code in it.
Here is the error:
/Users/shinehah/VSProjects/iOSAppSpeechToText01/iOSAppSpeechToText01/MTOUCH: Error MT0009: Error while loading assemblies: /Users/shinehah/.nuget/packages/grpc.core/1.18.0/runtimes/win/native/grpc_csharp_ext.x64.dll (MT0009) (iOSAppSpeechToText01)
Here are the warnings:
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(5,5): Warning MSB3277: Found conflicts between different versions of "System.Numerics" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. (MSB3277) (iOSAppSpeechToText01)
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(5,5): Warning MSB3277: Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. (MSB3277) (iOSAppSpeechToText01)
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(5,5): Warning MSB3277: Found conflicts between different versions of "System.Net.Http" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. (MSB3277) (iOSAppSpeechToText01)
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(5,5): Warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190. (MSB3276) (iOSAppSpeechToText01)
/Users/shinehah/VSProjects/iOSAppSpeechToText01/iOSAppSpeechToText01/ViewController.cs(33,33): Warning CS1701: Assuming assembly reference 'Google.Protobuf, Version=3.4.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604' used by 'Google.LongRunning' matches identity 'Google.Protobuf, Version=3.5.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604' of 'Google.Protobuf', you may need to supply runtime policy (CS1701) (iOSAppSpeechToText01)
/Users/shinehah/VSProjects/iOSAppSpeechToText01/iOSAppSpeechToText01/ViewController.cs(29,29): Warning CS1701: Assuming assembly reference 'Google.Protobuf, Version=3.4.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604' used by 'Google.LongRunning' matches identity 'Google.Protobuf, Version=3.5.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604' of 'Google.Protobuf', you may need to supply runtime policy (CS1701) (iOSAppSpeechToText01)
The error occurs last, after the warnings.
I didn't add any code whatsoever. The only difference is that I installed Google.Cloud.Speech.V1.
That's everything I changed after a new clean project.
I have tried using Google.Cloud.Speech.V1 1.0.1 package instead of 1.1.0, but I get the same error.
I've setup a VB.NET desktop application in a Windows 8.1 pro 64-bit PC. After doing server configurations I'm trying to login to the application. It's when I'm getting the 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've installed SAP Crystal Reports 13.0.3 64-bit yet it's still not working.
What is the reason behind this problem?
Check you Application files in Project Settings,find status of log4net dll whether included or not .Make it included in your project as below :
Problem solved.
The problem raised due to the mismatch in version of the log4net.dll file. My solution had log4net version = 1.2.9.0, while it needed the version = 1.2.10.0, hence the exception occured. I replaced the existing log4net.dll file with the one which has appropriate version and the problem was solved.
currently I have a problem with getting a DLL into the Windows GAC. I tried to follow the steps of creating a DLL and loading it as described in this blog post:
http://blogs.technet.com/b/cloudpfe/archive/2014/02/01/how-to-create-a-custom-authentication-provider-for-active-directory-federation-services-3-0-part-2.aspx
At the point where I try calling the following command:
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7514a164b89fa979")
I get an error which tells me that System.EnterpriseServices could not be found:
Exception calling "Load" with "1" argument(s): "Could not load file or
assembly 'System.EnterpriseServices, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=7514a164b89fa979' or one of its dependencies. The
system cannot find the file specified."
The specified DLL (System.EnterpriseServices) does exist* on the machine.
So now my question is, why can't this method find the DLL and what do I have to do/change to get this command to work?
NOTE: I Tried this on a vanilla Windows Server 2012 R2 with just ADFS parts installed; And I've called the command from the Powershell.
*UPDATE: The System.EnterpriseServices DLL resides in
C:\Windows\Microsoft.NET\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a
and
C:\Windows\WinSxS\amd64_system.enterpriseservices_b03f5f7f11d50a3a_4.0.9600.16384_none_53a3f9b13fac0ba5\
So it should be available from the GAC.
I think your public Key token is incorrect, you found your own answer with your update :) .
It should be
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
Give this a try.
Running Nh 3.2 using SQLite throws the following exception:
---> NHibernate.HibernateException: Could not create the driver from NHibernate.Driver.SQLite20Driver, NHibernate, Version=3.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
I use the latest (net 4 compatible) version of SQlite: version 1.0.74.0. I have added the following to my config:
.Database(SQLiteConfiguration.Standard.InMemory().Raw("hbm2ddl.keywords", "none").ShowSql())
I, also added in the config file:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
The weird thing is that first it worked. And now I get the above error.
I fixed the issue using the solution provide above (thanks), but also figured out that by using nuget you can simply install System.data.sqlite straight to your project via the package manager, and you dont need any of the web.config settings.
Install-Package System.Data.Sqlite.x86
You probably know this, but just in case. Latest version of SQLite for .NET is distributed as 2 dlls.
System.Data.SQLite.dll
SQLite.Interop.dll
Both dlls need to be present in the same folder as your EXE. Interop dll is platform specific so you have to manually (or Post-build) copy x86 or x64 version. One thing to keep in mind is that SQLite.Interop.dll depends on MSVCR100.DLL. This is part of Visual C++ 2010 SP1 Redistributable Package, you need to make sure that you have it. Please see this answer.
Also in the web environment you might need this configuration:
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SQLite"/>
<add
name="SQLite Data Provider"
invariant="System.Data.SQLite"
description=".Net Framework Data Provider for SQLite"
type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/>
</DbProviderFactories>
</system.data>
use the version that came with fluentnhibernate binaries 1.0.60.0
I am using PRISM for Silverlight 4.0 in one of my projects where I also access Sharepoint 2010.
The strange thing is that randomly I get the error:
An exception occurred while initializing module 'SharepointServiceModule'.
- The exception message was: Die Methode add_GetListCompleted im Typ SharepointServiceModule.Services.SharepointObjectModelService der Assembly SharepointServiceModule, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null hat keine Implementierung.
- The Assembly that the module was trying to be loaded from was:SharepointServiceModule, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Check the InnerException property of the exception for more information. If the exception occurred while creating an object in a DI container, you can exception.GetRootException() to help locate the root cause of the problem.
Which is very strange for me because first of all it happens only randomly and second that the method "add_GetListCompleted" is an event which must be implemented because I use it and it works.
Does anybody have an idea of whats going on here?
I found a solution for my problem.
First I tried to change the name of the interface and I noticed that the interface name did not change in the error message.
Therefore I removed the affected xap module from the Web project (this can be done in the properties of the "name.Web" project under "Silverlight Applications") and added it again. Then I performed a clean of the solution and a rebuild. After that everthing worked fine...