PDFNet 5.7 .Net 4.5 Windows 8.1x64 crash - pdftron

I've encountered a crash when using PDFNet 5.7 in a .Net 4.5 64 bit application running on Windows 8.1 The issue is only occurring in this scenario. .Net 3.5 works fine with Windows 8.1 and .Net 4.5 works fine on Windows 8.1 64-bit when run in 32 bit application.
The actual crash is (from EventLog):
Faulting application name: PdfNetDriver.exe, version: 1.0.0.0, time stamp: 0x543f4825
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17055, time stamp: 0x532954fb
Exception code: 0xe0434352
Fault offset: 0x0000000000005bf8
Faulting process id: 0x1174
Faulting application start time: 0x01cfe98da8d3f94c
Faulting application path:
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: e6be82fb-5580-11e4-8263-b8ca3a956626
Faulting package full name:
Faulting package-relative application ID:
FileLoadException
Faulting application name: PdfNetDriver.exe, version: 1.0.0.0, time stamp: 0x543f4825
Faulting module name: PDFNet.dll, version: 5.7.0.0, time stamp: 0x4f061bd8
Exception code: 0xc0000005
Fault offset: 0x00000000007682d3
Faulting process id: 0x1174
Faulting application start time: 0x01cfe98da8d3f94c
Faulting application path:
Faulting module path: \bin\x64\Debug\PDFNet.dll
Report Id: e6a6ab32-5580-11e4-8263-b8ca3a956626
Faulting package full name:
Faulting package-relative application ID:
When the exception occurs - the exe dies straight away. No exceptions pop up. Nothing can be done. The program never makes it through the method that initializes the PDFNet component, eg.:
public static void SubMain()
{
// Initialize PDF
PDFNet.Initialize(LIC_KEY);
PDFNet.Terminate();
}
Any ideas?

PDFNet for .Net comes in four flavours, and each has a dependency on VC++ Redistributable
.Net 2.0 x86 : http://www.microsoft.com/en-us/download/details.aspx?id=29
.Net 2.0 x64 : http://www.microsoft.com/en-us/download/details.aspx?id=15336
.Net 4.0 x86 : http://www.microsoft.com/en-us/download/details.aspx?id=5555
.Net 4.0 x64 : http://www.microsoft.com/en-us/download/details.aspx?id=14632
So you say
PDFNet 5.7 in a .Net 4.5 64 bit application running on Windows 8.1
does not work
I don't think the PDFNet .Net 2.0 build will work in .Net 4.5, so make sure you are using .Net 4.0 version. Since it is 64 bit you can use either the 32 or 64 bit versions. You just need to ensure the VC++ redistributable is available.
You can check what a particular PDFNEt.dll is by checking the details tab, in the properties menu, in Windows Explorer.
Make sure to expand the filename column as if it is 64bit that will be indicated at the end of the line.
.Net 4.0 PDFNet Getting Started Guide

Related

Azure .Net core with sql internal server error

I am following microsoft documentation to deploy .Net core with sql. when I go to my website the following is displayed:
An error occurred while starting the application. .NET Core X86
v4.1.1.0 | Microsoft.AspNetCore.Hosting version 1.1.2 |
Microsoft Windows 10.0.14393 | Need help?
When I run the app on local machine there are no errors and I am able to add toDo Items.
In my CsProj file:
<TargetFramework>netcoreapp1.1</TargetFramework>
I have seen other people with similar issue discuss a global.json file, but i do not see any and am not sure if I should create one and what exactly to put in it.
Possibly Related info:
When I push to azure in command line I get this error:
warning NU1701: Package 'Microsoft.Composition 1.0.27' was restored
using '.NETPortable,Version=v0.0,Profile=Profile259' instead of the
project target framework '.NETCoreApp,Version=v1.1'. This package may
not be fully compatible with your project. remote: Restore completed
in 269.7 ms for D:\home\site\repository\DotNetCoreSqlDb.csproj.
the deployment is successful though.
You could try to add the below to the <PropertyGroup> element in your DotNetCoreSqlDb.csproj
<PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>
This is because the Microsoft.Composition 1.0.27 is an old nuget package which does not compatible with the your project target framework which is .NET Core 1.1.
The supported framework for the Microsoft.Composition 1.0.27 is as below:
Supported Platforms:
.NET Framework 4.5
Windows 8
Windows Phone 8.1
Windows Phone Silverlight 8
Portable Class Libraries
Reference: Package Microsoft.Composition 1.0.27 is not compatible with netcoreapp1.1

Why can't I create a .NET Core/Standard 2.0 project?

I've installed the .NET Core 2.0 SDK from https://www.microsoft.com/net/core. If I run dotnet new classlib --framework netstandard2.0 I get the following output:
Error: Invalid values for parameter(s) [--framework] for template Class library.
Options:
-f|--framework
netcoreapp1.0 - Target netcoreapp1.0
netcoreapp1.1 - Target netcoreapp1.1
netstandard1.0 - Target netstandard1.0
netstandard1.1 - Target netstandard1.1
netstandard1.2 - Target netstandard1.2
netstandard1.3 - Target netstandard1.3
netstandard1.4 - Target netstandard1.4
netstandard1.5 - Target netstandard1.5
netstandard1.6 - Target netstandard1.6
Configured Value: netstandard2.0
Default: netstandard1.4
If I omit the --framework parameter it creates a .NET Standard 1.4 app; I can then change the target framework manually to netstandard2.0 and build it with no problems.
In Visual Studio 2017.4 the project properties page displays blank against the target framework.
Running dotnet --info produces the following:
.NET Command Line Tools (1.0.4)
Product Information:
Version: 1.0.4
Commit SHA-1 hash: af1e6684fd
Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.4
Microsoft .NET Core Shared Framework Host
Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
Does this mean I need to update my CLI tools, and if so how? I thought they were included in the SDK. And how do I get Visual Studio to understand about 2.0?
Worked this out in the end: I had an old global.json file in my root code directory that referenced version 1.0.0-rc1-final. Deleting this enabled the 2.0 tooling.

Android Studio crashes Mac OS due to symbolic link

I'm using Android Studio 2.2.1 on Mac OSX El Captain.
Here are my Android Studio version details:
Android Studio 2.2.1 Build #AI-145.3330264, built on October 6, 2016
JRE: 1.8.0_112-release-b05 x86_64 JVM: OpenJDK 64-Bit Server VM by
JetBrains s.r.o
Here are my Mac details:
Model Name: MacBook Pro
Model Identifier: MacBookPro12,1
Processor Name: Intel Core i5
Processor Speed: 2,7 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 3 MB Memory: 8 GB
Boot ROM Version: MBP121.0167.B17
SMC Version (system): 2.28f7
I'm using some cpp files in my android projects and it's on my module path. My module in ˜metehantoksoy/Repositories/MyProject/mymodule and cpp files in ˜metehantoksoy/Repositories/MyProject/cppmodule.
I created symbolic link from ˜metehantoksoy/Repositories/MyProject/mymodule/src/main/jni/c to ˜metehantoksoy/Repositories/MyProject/cppmodule .
When I try to open my cpp files through the Project Panel in the path of ˜metehantoksoy/Repositories/MyProject/mymodule/src/main/jni/c it opens and there is no exception. But when I try to open cpp file through the Project Panel in the path of ˜metehantoksoy/Repositories/MyProject/cppmodule Android Studio crashes and gives this error:
Crashed Thread: 27 Java: AWT-EventQueue-0 2.2#AI-145.3330264 Studio, eap:false, os
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000f2a93ca3
Exception Note: EXC_CORPSE_NOTIFY
Here is the paste for detailed Android Studio quit unexpectedly error.
I think this is symbolic link error but might be something else.
EDIT 1:
Also I saw this error for my all cpp files.
Failed to get the compiler information for file
Users/metehantoksoy/Repositories/MyProject/mymodule/src/main/jni/c/initialize.cpp
I had this problem with Android Studio 2.2.3 just installed on a new mac book air. On the bottom line of the frame of the Android Studio on main page is the familiar icon of a little green guy. This launched into a pat of the screen and then allowed me to detach it to run normally. All joy and light!

Visual studio 2012 wont start

I installed VS2012 Premium from our MSDN subscription and
it was working fine the first couple of days but then I installed a few extensions
but now VS2012 does not start and it gives the error:
Faulting application name: devenv.exe, version: 11.0.50727.1, time stamp:
0x5011ecaa
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc000041d
Fault offset: 0x77cc11f1
Faulting process id: 0x12c0
Faulting application start time: 0x01cf525c0d374f44
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio
11.0\Common7\IDE\devenv.exe
Faulting module path: unknown
Report Id: 4cd88dc0-be4f-11e3-bf75-0023245b4b3a
I'm running it on Windows 7 64 bit.I tried to repair \ Uninstall and install again.But it doesnt work.
You may try to to run devenv.exe with the /SafeMode
Also check VS 2012 will not start:
I had similar issue, you may be in the same boat.Found this from
somebody else when looking around.
The problem is with VS2012 Commands extension. It puts the registry
entry below that somehow causes the ntdll error. What I did was take
out the whole Layers key, start VS2012 and remove the extension. You
may have to do it twice if VS manages to put it back when you start
the first time.
[HKEY_CURRENT_USER\Software\Microsoft\Windows
NT\CurrentVersion\AppCompatFlags\Layers] "C:\Program Files
(x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"=""
So you follow the instruction from above:
Removed the key: [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]. VS2012 loading but then crashing before I could do anything else (error in C:\Windows\syswow64\KERNELBASE.dll)
Then remove:
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0]
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config]
and start again.

Visual Studio crash on F5

I'm using VS 2012 to develop SharePoint 2010 application.
I recently have installed Visual Studio 2013 RC, but I don't use it.
I still use VS 2012, but I can't start with debug (F5) anymore. Visual Studio crashes.
---------------------------
Microsoft Visual Studio
---------------------------
Unable to start debugging on the web server. The Microsoft Visual Studio Remote Debugging Monitor has been closed on the remote machine.
Click Help for more information.
---------------------------
OK Help
---------------------------
In the event log I get this message :
Faulting application name: devenv.exe, version: 11.0.60610.1, time stamp: 0x51b52140
Faulting module name: vsdebug.dll, version: 10.0.40219.1, time stamp: 0x4d5f149a
Exception code: 0xc0000005
Fault offset: 0x00007329
Faulting process id: 0xfe8
Faulting application start time: 0x01ceb51ac1e92518
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
Faulting module path: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\Debugger\vsdebug.dll
Report Id: 202357b5-210f-11e3-80bd-00155d67020d
Faulting package full name:
Faulting package-relative application ID:
I don't know if its related, but the faulting module points to the 10.0 folder instead of the 11.0.
I repaired VS 2012, with no more success.
Any suggestion?
[edit] I removed my answer, as the problem reappeared
Because I believe my question is too specific to my setup, I simply revert back to a previous state of my dev computer.
It works again.

Resources