I published my app in Visual Studio 2008.
I'm getting a problem installing on another PC(this PC dont have .net).
During the install, the following error appears:
"Unable to run or install the application. The application requires that
assembly stdole version 7.0.3300.0 be installed in the Global Assembly Cache (GAC)
first."
plz help me.
If you want to install a .NET program on another PC, you have to install the same version of the .NET framework as your are targeting with your program first. (With visual studio 2008 that is probably 3.5)
Also, make sure you deploy the assembly for stdole in your installation package.
Related
Error:
Method 'MyController' in type 'MyProject.AppStart.Selector' from
assembly 'MyProject, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=......' does not have an implementation.
Background:
I have an ASP.NET project with target framework set to .NET Framework 4.6.2. After installing Microsoft.Azure.SignalR.AspNet 1.0.0-preview1-103a17from nuget package manager, it builds and runs fine on Visual Studio 2017. No problem at all. When I deploy the release to my server and try to access any of its services, I get the above-mentioned error. The method is implemented in a class which implements System.Web.Http.Dispatcher.IHttpControllerSelector.
Configuration:
The machine on which code works: Windows 10 Version 1809 (OS Build 17763.316). Visual Studio 2017 15.9.6.
The machine on which code does not work: Windows Server 2012 R2 Version 6.2 Build 9200. IIS version 8.5.9600.16384.
What I tried:
Clean/Rebuild deploy again.
Delete obj and bin folder, publish and deploy again.
Deleted CachedAssessmbly as suggested here.
Change Configuration from Release to Debug.
Install Azure SDK in the Windows Server 2012 R2 machine.
Try to install the dependencies of Microsoft.Azure.SignalR.AspNet without directly installing Microsoft.Azure.SignalR.AspNet. It appears that the error starts to Microsoft.Azure.SignalR.Protocols is installed. The dependencies of the Microsoft.Azure.SignalR.Protocols are:
All of these four dependencies are being added when I install Microsoft.Azure.SignalR.Protocols i.e. they are not already being used.
I can't seem to find the issue.
Update:
I deployed the folder on the above mentioned Windows 10 machine and used IIS Manager to create an application. The application works fine on the same machine without Visual Studio.
In the Windows Server 2012 R2 machine, I had originally installed .NET Core 2.2 runtime instead of the SDK. I installed the following in order:
.NET Core 2.2 SDK (deployment still didn't work)
.NET Framework 4.7.2 Dev Pack (asked for restarted, postponed it)
.NET Framework 4.6.1 Dev Pack
After installing the .NET Framework 4.6.1 Dev Pack, I restarted. And now the deployment works.
I can't pinpoint the solution but my guess is that installing .NET Core 2.2 SDK fixed the issue. After it got installed, the installation window prompted some version of Microsoft.AspNetCore has been installed. It didn't ask for a restart but I guess as .NET Core 2.2 Runtime was already installed and being used by another application, a restart was needed.
It is quite strange that Microsoft.AspNetCore wasn't installed along with .NET Core 2.2 Runtime.
It took quite some time to fix this issue as typeloadexception can arise in many other scenarios.
Hope this solution helps other people as well.
I have a solution with projects pointing to .Net Framework 4.5 which I have opened in Visual Studio 2017 and tried to Unit Test Project pointing to .Net Framework 4.5. I am getting the following error
Package Installation error .
Could not add all required packages to the project. The following packages failed to install from 'C:\Program Files(x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\502SXCIF.E5I\Packages':
MSTest.TestFramework.1.1.11: Failed to add reference to 'Microsoft.VisualStudio.TestPlatform.TestFramework'
I have tried changing the Platform to x86 as suggested on some online resources.
I am using a Windows 7 Enterprise 64 bit. Has anyone been able to resolve this.
MsUnit test related template got missed in your local system.if you have another version please try to copy respective folder it will resolve the issue.
I've made a fresh Xamarin Forms Portable Project from the Cross Platform templates in Visual Studio 2015. Haven't touched or modified any of the project files. Then When I try to initially build it, I get the following build error:
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1098,5): error MSB3644: The reference assemblies for framework "MonoAndroid,Version=v6.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
My Project defaults are:
Looking at similar questions, it would seem that, indeed, that version of the framework is not installed. But it seems to be. Android SDK Manager shows the following:
What is going on here? How can I resolve this.
When you get these type of errors, that are really 'out there' and hint of system configuration problems, it's time to reinstall.
I had to completely remove all remnants of Visual Studio, SDKs and Xamarin. 'Modify' and 'Repair' didn't work.
After the complete fresh install of VS 2015 and Xamarin, things are back to normal.
I have installed TeamCity Professional 8.1.3 (build 30101) onto a clean box and I am trying to run a new build. I have copied over the msbuild tools from my local dev machine to the new server and placed them in the x86 folder. I have also installed the IIS web role, .net feature, registered IIS from the cmd line, and installed MSBUILD tools 2013. For some reason, I still am unable to compile anything. I get the following error
SGEN An attempt was made to load an assembly with an incorrect format:
C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll.
Is anyone familiar with this error? I am trying to build an app in .NET v4 using msbuild tools v4.
I was getting this error building a project that targeted .NET Framework 4.5.1. I resolved the issue by installing Microsoft .NET Framework 4.5.1 Developer Pack
You can get the SDK (aka Targeting Pack, aks Developer Pack) for other versions you may want to target at .NET SDKs and Downloads
The solution was installing VS2012 on my build machine. This may not be the most efficient, but it beats installing small packages and chasing around things that need to be registers in the GAC.
I am on a Windows 8.1 x64 machine and trying to connect to my locally installed Oracle 11g database through an ASP.NET WebForms 4 application that I am running from Visual Studio 2013 and IIS Express.
I downloaded ODP.NET from this NuGet package. But I keep getting the error Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format.
Someone please help me troubleshoot this problem. There so little source code and sample out there regarding Oracle and .NET that is up to date.
This usually happens when referencing an assembly that is either 32-bit from a 64-bit application or the inverse. Please make sure you're WebForm project is targeting the same platform as the referenced Oracle assembly.
Quote from the page you downloaded your Oracle.DataAccess.dll:
Oracle will still need to be installed on the production or development machine in order to connect to Oracle (those libraries are greater than 100MB in size, so it didn't make sense to include them in a NuGet package), but this package will at least allow the project to be successfully built
So now you can only build your code, not run it. To run it you should get: 64-bit ODAC 11.2 Release 5 (11.2.0.3.20) for Windows x64 from this Oracle page: http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
Your ASP.NET if installed so after your download and install it run command like this:
C:\oracle\product\11.2.0\client_1\odp.net\bin\4> OraProvCfg /action:gac /providerpath:"C:\oracle\product\11.2.0\client_1\odp.net\bin\4\Oracle.DataAccess.dll"
(assuming your install directory will be C:\oracle\product\11.2.0\client_1\)