Microsoft WebView2 evergreen standalone runtime not working - delphi

Accordingly to
https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution#understanding-the-webview2-runtime
It is supposedly okay having users download/install "The Evergreen Standalone Installer":
https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section
If using this solution, I found the actual installed paths for the DLLs are:
C:\Program Files (x86)\Microsoft\EdgeCore\95.0.1020.40\EBWebView\x64\EmbeddedBrowserWebView.dll
C:\Program Files (x86)\Microsoft\EdgeCore\95.0.1020.40\EBWebView\x86\EmbeddedBrowserWebView.dll
or
C:\Program Files (x86)\Microsoft\EdgeWebView\Application\95.0.1020.40\EBWebView\x64\EmbeddedBrowserWebView.dll
C:\Program Files (x86)\Microsoft\EdgeWebView\Application\95.0.1020.40\EBWebView\x86\EmbeddedBrowserWebView.dll
(with version number matching whatever version user downloaded from the above page)
This is fine, I can scan for this and select newest...
But trying to load these fails because
"CreateCoreWebView2EnvironmentWithOptions" is not found... (Unlike if you use "WebView2Loader.dll")

Related

Visual Studio 2019 Setup Project - Download prerequisites from the same location

I'm trying to create an installer using VS 2019 for a .NET Core 3.1 Console App.
It will be installed in a computer without internet and without the .NET Core 3.1 there.
I have added .NET Core Runtime 3.1.x as a Prerequisite in the Prerequisite Dialog.
When I build, its coming up with this error:
ERROR: To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file 'netcore3coreruntime_x64\dotnet-runtime-3.1.18-win-x64.exe' for item '.NET Core Runtime 3.1.18 (x64)' to your local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=616018.
The question is, in my development PC where should I put this file?
Place the installfile "dotnet-runtime-3.1.18-win-x64.exe" in directory "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\BootstrapperPackages\netcore3coreruntime_x64"
And check in the "product.xml" file in same directory, that the key "publickey" is not "0" and is set to "3082010a0282010100d0e4cf8fb3f5fb04dbafe41ff423aba80f08f43493a8d4aad542a3bb82045771c925c93ad62f8c4c4a18c8a2ed88b1b62717aef05f3540ab93a6e287be2dfcd20cece371bea6b34d20068d0e41aab04350628f227b36f0dff342357d6f4e2fbe8ab745a9736ceb1a1cdc1dd6fbba93ebbf1bd234d52fc4adec830ed84eddf5e35d2fa44a7cc9f04497f85df19cc0bf8ec30a02798f5ce6dbde6cd515591cda7a3288901553840a6e00c0ada5dbc8be60447524ee08a654c7e38bafcd7f6846724768cbd6cd9129a333f2e2334ed830ea6dc36ce3387b0163211353d615503e08723f127e67012bc2bcb9ae47fb7cab86dcf1747c408649412a7ed94ea6da574d0203010001"

YSOD Could not load file or assembly CMS.DataEngine - after Kentico 11.0.0 upgrade to Kentico 12 SP1

Just finished upgrading Kentico 11.0.0 with MVC, to Kentico 12 SP1 using https://docs.kentico.com/k12sp/installation/upgrading-to-kentico-12
No issues during upgrade.
Kentico CMS is coming up fine on local IIS and Azure app.
MVC site came up fine on local IIS.
But staging MVC site is showing this error in Azure app:
Server Error in '/' Application.
Could not load file or assembly
'CMS.DataEngine, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=834b12a258f213f9' or one of its dependencies. The
located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040)
Had to delete old files when publishing
Warning
Backup your Kentico CMS published version's media folder before doing this. That is where media library files are stored. Database only contains a reference. Once published and you confirm CMS is up, you will see a yellow exclamation mark next to every image in media library application. Restore the folder from backup so that Media Library files get synced up.
I've found that several DLLs from kentico 11 were left in the bin folder and that was the reason for this error while VS project compiled successfully without any issue:
Once I deleted them all started working fine and the website loaded successfully.
I have the same error.
The Lib folder was exist inside the folder of the solution with file explorer, but unlike the previous version (Kentico 11), when I have performed the upgrade, the Lib folder was not under the solution in visual studio! I have added the folder in visual studio under the solution with all the DLL and XML files from Lib folder. I have perform "clean solution", build all the projects and published it. Now it works.

Incude error: "Cannot open source file "d3dx9.h"

I've spent 2 hours trying to do this, I have DirectX SDK installed, I read 10 other questions like this and nothing worked.
VC++ Directories are set to "$(DXSDK_DIR)Include;$(IncludePath)" and "$(DXSDK_DIR)Lib\x86;$(LibraryPath)" for Include and Library directories respectively for all configurations—and the environment variable %DXSDK_DIR% points to C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\ as expected.
C/C++ > General settings has $(DXSDK_DIR)include listed in the Additional Include Directories.
I don't understand why it doesn't work.

Crystal Reports in Visual Studio 2017

I have a MVC .Net application that uses a Crystal Report to return a PDF file. It was working ok, but I wanted to install the most recent version of the runtime on the server to see if it would correct an issue with fonts that I was experiencing.
The server is Windows Server 2008 R2, and I installed the most recent version of CR for VS from the SAP website. This installed two things on the server: SAP Crystal Reports runtime engine for .NET Framework (64-bit) 13.0.21.2533, and SAP Crystal Reports, version for Visual Studio 13.0.21.2533.
My Visual Studio project has the following Nuget packages installed: CrystalDecisions.CrystalReports.Engine, CrystalDecisions.Shared, CrystalDecisions.ReportSource, CrystalDecisions.Web.
Now when I try to access this page and generate the PDF, I get the following server error:
Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
I'm not finding any coherent info online as to why this error is appearing or how to resolve it aside from copying DLLs to the bin folder. I tried adding a couple of Nuget packages relating to CrystalDecisions.ReportAppServer. There is not a Copy Local option for the DLL reference, so I tried to manually copy the DLL from the Nuget packages folder for the project and paste them into the bin folder, but that didn't lead anywhere except more errors that I couldn't resolve.
The documentation on this stuff is horrible and confusing, when it seems like it should be pretty straightforward, as I said this was already working before I upgraded the runtime and CR for VS.
Are the Nuget packages maybe not compatible with this newer version? On this SAP blog post, it mentions "As most of CR/RAS .NET Assemblies are now re-versioned from 13.0.2000.0 to 13.0.3500.0, user MUST remove all old CR assemblies from Reference list and add the new version of CR assemblies, then rebuild the application.", but I do not know where to get these assemblies aside from using the Nuget packages.
Please download all the packages of crystal reports 13.0.21. You have to download all packages are given below.
CrystalDecisions-CrystalReports-Engine
CrystalDecisions-ReportSource
CrystalDecisions-Shared
CrystalDecisions-Web
CrystalDecisions-ReportAppServer

Cannot compile Windows app with C++ Builder 10.1 Berlin Update 2

I installed RAD Studio 10.1 Update 2 using the web installer. It uninstalled the previous 10.1 Update 1 and performed everything without error messages.
The new version is able to build C++ projects for Android, iOS, and Mac OSX. But when I try to compile projects for Win32, both VCL and FMX, I get this unexpected error:
[bcc32 Error] windows.h(1): E2209 Unable to open include file 'winapifamily.h'
Full parser context
Project1.cpp(3): #include c:\program files (x86)\embarcadero\studio\18.0\include\windows\vcl\vcl.h
vcl.h(10): #include c:\program files (x86)\embarcadero\studio\18.0\include\windows\vcl\basepch0.h
basepch0.h(62): #include c:\program files (x86)\embarcadero\studio\18.0\include\windows\rtl\System.hpp
System.hpp(19): #include c:\program files (x86)\embarcadero\studio\18.0\include\windows\rtl\sysmac.h
sysmac.h(141): #include c:\program files (x86)\embarcadero\studio\18.0\include\windows\sdk\windows.h
From the following article on EDN:
Issues with winapifamily.h and other header files after installing C++Builder 10
There is a known issue where occasionally, after the C++Builder and RAD Studio 10.1 Berlin Update 2 installer has run, eight header files may be missing from C++Builder’s include\windows\sdk folder.
The bug manifests as trying to build a Windows C++ application, and getting a compiler error at the top of windows.h stating that winapifamily.h was not found.
These eight headers are available in a zip file for download.
Installation
It is not necessary to close RAD Studio or C++Builder.
Download the zip file. Right-click on it and choose Extract All, and ensure the checkbox ‘Show extracted files when complete’ is checked. Click Extract.
Once the extraction is complete and the folder where the files were extracted to is opened, select all eight header files, right-click on them, and select Copy.
Open another Explorer window and navigate to:
C:\Program Files (x86)\Embarcadero\Studio\18.0\include\windows\sdk
Right-click in an empty space in the folder, and click Paste. You will be prompted for administrative permissions in order to paste into this folder. Ensure ‘Do this for all current items’ is checked, and click Continue.
Once complete, return to C++Builder and you should be able to successfully compile.

Resources