asp.net 4 mvc 2 error - sql-server

when I run the app on server I get:
Could not load file or assembly 'Microsoft.SqlServer.Replication.DLL' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.SqlServer.Replication.DLL' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
Some points:
On machines with sql server 2005 installed (from which that dll is copied) the app works. But the server does not have it, so I need to get it to work without sql server.
The file is in wwwroot/bin folder: Microsoft.SqlServer.Replication.dll
Do I need to include the file in References folder in VS? Set it to CopyLocal?
Any advice or solutions would be greatly appreciated
--MB

The Microsoft.SqlServer.Replication.DLL is part of the Replication Management Objects which in turn are part of the SMO pack. The only supported redistribution path for SMO is to use the installer that comes with the SQL Server feature pack download, see Distributing an Application That Uses SQL Server Management Objects. You must install the SMO redistributable packet on the server.

Related

SQL Server 2017 Installation Fails on Windows 10

I am attempting to install SQL Server 2017 Developer Edition on Windows 10 but I am getting an error "Exception has been throw by the target of the invocation." That is less than helpful.
If I run the System Configuration Checker, the setup administrator rule fails. I am at a loss to explain the failure since this I have one account on my computer and I am in the Administrator group. This computer is not part of a Windows domain. I tried running setup as an administrator by right-clicking run as administrator and got the same results.
Unsure if this is causing the setup failure but I figured it is where I should start. It is not even starting the setup so I don't think a log file is created that I can look at. I tried running the setup as administrator and I get the same results. Ideas on how I can troubleshoot this?
UPDATE
Found out the setup log file is located in the folder C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log. So I checked the error log and the error message was
Unable to load DLL 'sqlmu.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Sure enough that file was missing. So I re-downloaded the ISO and extracted it and now setup runs fine. Must have been a corrupted download. Hope that helps somebody.
Have a look at the SQL Server installation fails if the Setup account doesn't have certain user rights article, and following the steps included. Does that work?

Resolve SSIS Package with Kingswaysoft error: Connection type "DynamicsCRM" is not recognized as a valid connection manager type

I am using visual-studio-2015 to create an ssis package targeted at sql-server-2012. I am using KingswaySoft to connect to dynamics-crm to read & update some data. My package runs correctly when I run it from Visual Studio. However, when I deploy the package to my server, the package no longer runs successfully. I am receiving multiple errors with the first error being:
The connection type "DynamicsCRM" specified for connection manager "Dynamics CRM Connection Manager" is not recognized a valid connection manager type.
Why am I receiving this error and why is it only showing up when the package has been deployed?
I have tried restarting the Integration Services on the server.
I checked the license on the server and I noticed that although I have the Ultimate Edition of KingswaySoft, one of the License Manager's doesn't have a license and won't accept my license key. Perhaps it's a licensing issue?
The error message indicates that you do not have our software installed on your integration server.
Edit:
Re-installation solved the issue (per comments)

Unable to load DLL "SQLite.Interop.dll"

I just finished a C# WPF application for a client that uses a SQLite database. The program launches fine, but whenever the program tries to do something with the database, I get this error in my Try Catch:
Unable to load DLL "SQLite.Interop.dll": The specified module could not be
found. (Exception from HRESULT: 0x8007007E)
I read up on the other Stackoverflow questions and have not come up successful in any of the solutions. Note that I am building an installer with "Microsoft Visual Studio 2017 Installer Projects"
Here is what I have tried so far:
Setting Copy Local to True in all of my project References.
Using NuGet to obtain System.Data.SQLite, .Core and x64/x86.
Setting Any CPU to x64.
Prefer 32-bit false.
SQLite.Interop.dll and System.Data.SQLite.dll is inside of the the installed application's directory. This is not an issue on computers that have VS installed, only an issue on computers that don't have VS.

Visual Studio BI tool error

Good Day!
When you download in Web Service Task a WSDLfile - error
"SSL certificate response obtained from the server was not valid.
Cannot process the request."
What could be problem?
Visual Studio version 2013
Sounds like the SSL certificate on the server is not valid. This is probably because it's a temporary certificate, or you self-signed it.
Add the signer of the temporary certificate to the trusted authorities list on the computer running the package.
Or import the temporary certificate as a trusted certificate.
This error is caused by the lack of support for Cryptographic Protocols of the SSIS Web Service Task. A better approach would be to rewrite it as an SSIS Script Task with the help of the WSDL.exe Tool and then including the generated file (.cs) into your Script Task project.
The wsdl tool is available via the Visual Studio Command prompt (under visual studio/tools in the start menu):
wsdl /language:CS /out:<>C# path file> <WSDL file path>
Then copy-paste the Generated C# class into the Solution Explorer tree for the SSIS Script Task Project while editing.
Finally, enable the TLS Protocol in the class constructor according the .NET Version as showed on https://blogs.perficient.com/2016/04/28/tsl-1-2-and-net-support/.

SQL Server CE to SQL Server

I have a standalone C# application using a SQL Server CE database. Another online program running on ASP.NET with a SQL Server database. Now I want to upload the standalone generated .sdf file to my ASP.Net program via browser and migrate the data into SQL Server. The code works fine in local server. But when I upload in Godaddy server and test I get this error
Could not load file or assembly 'System.Data.SqlServerCe,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or
one of its dependencies. The located assembly's manifest definition
does not match the assembly reference. (Exception from HRESULT:
0x80131040)
I have uploaded all the dll files.
Sometimes this error occurs
Upload status: The file could not be uploaded. The following error
occured: The application has failed to start because its side-by-side
configuration is incorrect. Please see the application event log for
more detail. (Exception from HRESULT: 0x800736B1)
Is there a work around?
Or how to migrate the sdf file data to xml via code and upload the xml file online to be parsed and enter the data in SQL Server?
I am replying to my own question so that it can be useful to others.
Tried various options. Uploading mdb file needs Access drivers to be installed in godaddy server which needs upgrading my web hosting plan.
Hence best option was to upload required dlls for sdf file. Upgrading VS2010 to VS2010SP1 gave an option of deployable dependencies which enabled automatic uploading of dlls needed for sdf files.
This the best option as there are numerous dlls needed for proper uploading and functioning of sdf file in hosted environment.
Got the answer after upgrading VS2010SP1.

Resources