SMO restore and Windows 7 - windows-7

I have an application that uses SMO to manage databases. It works great on XP and Server 2003.
However, when I try to run it on Windows 7, I get the following exception:
Restore failed for Server 'localhost'. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.SqlServer.BatchParser, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
Is this a UAC/permissions issue? Windows 7 is the only variable between the two computers.
Database used is Sql Server 2005 on both machines as well. Using .NET 3.5.
Thanks.

This issue had to do with the fact this dll is not installed on x64 Windows. To resolve it, I had to download SQL Server feature pack:
SQL Server Feature Pack.

Related

Getting [INS-13001] error. Oracle Database is not supported on this operating system

I am trying to install Oracle 19c on windows 11 but getting the below error.
[INS-13001] Oracle Database is not supported on this operating system. Installer will not perform prerequisite checks on the system.
I have performed the below task to resolve the issue but couldn't get through.
1.I extracted the installation folder to a different location and tried installation.
2.I tried to run the setup.exe file and setup application as administrator.
3.If I am skipping this error message(1_err.png), I am getting another error(2_err.png).
4.Stopping the OracleRemExecServiceV2 service and again tried installing it.
I have attached the error snapshot for the same i.e 1_err.png and 2_err.png

System.PlatformNotSupported exception with service stack

I am trying to run a service stack application, it works fine on my dev machine when deployed on another box, I get System.PlatformNotSupported exception.
Stack trace below:
Unhandled Exception: System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.Net.HttpListener..ctor()
at ServiceStack.Host.HttpListener.HttpListenerBase.Start(IEnumerable`1 urlBases, WaitCallback listenCallback)
at ServiceStack.Host.HttpListener.HttpListenerBase.Start(String urlBase)
at ExcaliburAppHost.Program.Main(String[] args)
I am trying to build a Restful app with self hosting (with no IIS support on the other box).
var listeningOn = args.Length == 0 ? "http://*:8090/" : args[0];
var appHost = new AppHost()
.Init()
.Start(listeningOn);
error occurs in AppHost().Start() method
If you have any unmanaged .dlls e.g. sqlite3.dll you may need to set the Platform Target of your project as x86.
You can also try running the Console App as Administrator / sudo in-case it's a permissions issue.
To whom facing with exception "System.PlatformNotSupportedException: ServiceController enables manipulating and accessing Windows services and it is not applicable for other operating systems." - in my case I had to add "System.ServiceProcess.ServiceController" NuGet package to my .net 5 Worker Service project and issue is gone.
For me, I was building a .NET 6 worker service in a Docker container on a Linux host, building a Windows service to run on Windows Server 2016. My csproj file has the following properties set, but I was receiving the same PlatformNotSupportedException as the OP:
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<OutputType>Exe</OutputType>
<InvariantGlobalization>true</InvariantGlobalization>
<PublishSingleFile>false</PublishSingleFile>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<PublishReadyToRun>false</PublishReadyToRun>
I was able to resolve this by specifying the runtime option (-r win-x64) directly to the dotnet publish command in my Dockerfile.
Now the application builds from a Docker container running on a Linux host, but the resulting binaries run fine on the Windows Server 2016 platform.

Oracle 12c client installer error

I'm trying to install Oracle client 12.1.0.2.0 (32-bit) on a completely clean copy of windows Server 2012, and I'm hitting a problem.
The installer runs fine until it gets to the final part - the net configuration assistant. An error message appears and says "[INS-20802] Oracle Net Configuration Assistant failed.". Here's the relevant part of the log file that is generated (I can post the entire thing if requested, but here's the bit with the actual error occurs):
INFO: Read: UnsatisfiedLinkError exception loading native library: oranjni12
INFO: Stderr Read: java.lang.UnsatisfiedLinkError: oracle.net.common.NetGetEnv.jniGetOracleHome()Ljava/lang/String;
WARNING: Skipping line: UnsatisfiedLinkError exception loading native library: oranjni12
INFO: Read: java.lang.UnsatisfiedLinkError: C:\app\ORACLE_USER\product\12.1.0\client_1\BIN\oranjni12.dll: Can't find dependent libraries
INFO: Stderr Read: at oracle.net.common.NetGetEnv.jniGetOracleHome(Native Method)
INFO: Stderr Read: at oracle.net.common.NetGetEnv.getOracleHome(Unknown Source)
INFO: Stderr Read: at oracle.net.ca.NetCALogger.getOracleHome(NetCALogger.java:230)
INFO: Stderr Read: at oracle.net.ca.NetCALogger.initOracleParameters(NetCALogger.java:215)
INFO: Stderr Read: at oracle.net.ca.NetCALogger.initLogger(NetCALogger.java:130)
INFO: Stderr Read: at oracle.net.ca.NetCA.main(NetCA.java:433)
WARNING: Skipping line: java.lang.UnsatisfiedLinkError: C:\app\ORACLE_USER\product\12.1.0\client_1\BIN\oranjni12.dll: Can't find dependent libraries
INFO: Read:
WARNING: Skipping line:
INFO: Read: Error: oracle.net.common.NetGetEnv.jniGetOracleHome()Ljava/lang/String;
WARNING: Skipping line: Error: oracle.net.common.NetGetEnv.jniGetOracleHome()Ljava/lang/String;
INFO: Read: Oracle Net Services configuration failed. The exit code is 1
WARNING: Skipping line: Oracle Net Services configuration failed. The exit code is 1
INFO: Completed Plugin named: Oracle Net Configuration Assistant
Here are a few things I have tried:
turning the firewall off
disconnecting from network (clutching at straws!)
running the installer as administrator
re-downloading the client installer from Oracle, in case it had somehow been corrupted
None of these things made any difference. I have successfully installed this exact version of the client on a Windows Server 2012 PC in the past and it worked fine...
Has anyone else encountered this issue?
It turns out that the Oracle 12.1.0.2.0 client needs the MSVC 2010 redistributable to be installed first.
I got it from here: https://www.microsoft.com/en-gb/download/details.aspx?id=5555
Once installed the Oracle client installer runs fine! Couldn't find this anywhere in the Oracle documentation, and the error message is not helpful at all...
Quick, clean easy fix:-
There is a bug in the 32-bit Oracle Installer file ./install/oraparam.ini, it’s trying to install the 64-bit version of MSVC instead of the 32-bit version.
Open install/oraparam.ini
Replace MSVCREDIST_LOC=vcredist_x64.exe
with
MSVCREDIST_LOC=vcredist_x86.exe
Save
Run installer
Having the same problem "[INS-20802] Oracle Net Configuration Assistant failed" and trying to install many times Oracle12cR2 on Windows1O. I installed Oracle12cR1 without problems, so I realized that "vcredist_x64.exe" file is even latest than the file I downloaded before from Microsoft webpage.
In this case, I uninstalled Oracle12cR1 and Installed again the Oracle12cR2 version, but using the vcredist_x64.exe that came together in the installation of Oracle12cR1.
Doing this, I was able to install the Oracle12cR2 without problems on Windows10.
I just got the same problem that oracle client did not install successful.
It stops with error [INS-20802] Oracle Net-Konfigurationsassistent nicht erfolgreich.
Just press button Überspringen/Skip a few times - it installs the needed dlls anyway. Then close/finish the installation.
Now you can start oracle/SQL Developer.

OperationFailedException when using vNext template in Microsoft Release Management

I am getting the following error while running a workflow in microsoft release management 2013 update 4:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. ---> Microsoft.TeamFoundation.Release.Common.Helpers.OperationFailedException: System.AggregateException: Failed to install 'VisualStudioRemoteDeployerbd3a8a59-325a-45d0-89f5-86a548554a12' from service executable path VisualStudioRemoteDeployer.exe . Consult the logs below:
c:\Users\vmadmin\AppData\Local\Temp\mfurnl9w.0.cs(95) : ; expected
c:\Users\vmadmin\AppData\Local\Temp\mfurnl9w.0.cs(94) : IntPtr policyHandle = IntPtr.Zero;
c:\Users\vmadmin\AppData\Local\Temp\mfurnl9w.0.cs(95) : >>> var attributes = new LSA_OBJECT_ATTRIBUTES()
c:\Users\vmadmin\AppData\Local\Temp\mfurnl9w.0.cs(96) :
I am using a vNext Release Template. I have added an action "Deploy using PS/DSC" which is supposed to execute a powershell script on the machine.
All I get is the above error.
I have verified that remoting is setup as per here (on-premise section): https://www.visualstudio.com/en-us/get-started/deploy-no-agents-vs.aspx
I have also referenced this: http://roadtoalm.com/2015/02/04/start-with-visual-studio-release-management-vnextvs-rm-for-dummies/
but our error is slightly different as it doesn't complain about the account. Although i am assuming the account is ok... I did use a couple variations and when the account is incorrect i get an obvious failure.
any help would be appreciated.
I found this question because I had the same issue. In RoadToAlm article he is using Windows Server 2012 on his VM. My Azure VM was Windows Server 2008 SP2 and I resolved the issue by installing Windows Management Framework 3.0 (http://go.microsoft.com/?linkid=9811175) which includes a newer Powershell than was installed on my server. After this update the issue was resolved.
I was facing the same issue on a destination Windows Server 2008 R2. I just shift down the UAC level and it let the deployment tools be copied by the task into the c:\Windows\DtlDownloads folder (with VisualStudioRemoteDeployer.exe).
From the moment this file was available, the artifact copy had been successful.

SQL Server CE v4 on Windows 8

I built the app using SQL Server CE 4.0 and it runs just fine in Windows 7.0 dev machine, but got the following error message running it in Windows 8 (x64 version, Lenovo All-In-One Horizon 27' HW platform):
Is not a valid Win 32 application (Exception from HRESULT: 0x800700C1)
In app directory I can clearly see the
System.Data.SqlServerCe.dll
and all other 7 DLLs:
Sqlceca40.dll Sqlcecompact40.dll Sqlceer40EN.dll
Sqlceme40.dll Sqlceoledb40.dll Sqlceqp40.dll Sqlcese40.dll
taken from C:\Program Files\Microsoft SQL Server Compact Edition\v4.0 root directory and included in the app dir as per recommendation at: http://msdn.microsoft.com/en-us/library/vstudio/aa983326%28v=vs.110%29.aspx .
Other settings:
Configuration Platform: Any CPU Target Platform: x86 Setup
TargetPlatform: x64
Any idea on what went wrong and how to fix it? Thx.

Resources