I have just installed visual studio on a new windows 8.1 PC. When I try to run a new MVC project I get the following error when registring in the default mvc framework:
"Your sql server installation is either corrupt or has been tampered with (unknown package id)."
This is a brand new install and I have tampered with nothing. I saw it typically has to due with renaming your computer, but since this is a fresh install it shouldn't be an issue.
Please try the below mentioned options.
Change the name of the computer where it was originally might sort
this error.
Update the SQL server to the latest version and verify if it is compatible with installed visual studio.
If above option fails, then re-install SQL Server.
This error occurred because it might have got installed alongside with visual studio. Better install the version that is compatible with your system.
http://blog.sqlauthority.com/2009/05/28/sql-server-fix-error-sqldumper-library-failed-initialization-your-installation-is-either-corrupt-or-has-been-tampered-with-please-uninstall-then-re-run-setup-to-correct-to-correct-this-problem/
Fix/Workaround/Solution:
Go to Add/Remove Program in windows Control Panel
Remove “microsoft SQL server vss writer” program
Reboot the computer.
Related
After installing Visual Studio 2019 (or 2017, tried with both) via the Visual Studio Installer,
I get the message "Couldn't install Microsoft.Net.4.5.2.TargetingPack",
seen here.
Consulting the error log shows the error code is 1625, which corresponds to: This installation is forbidden by system policy. Contact your system administrator.
The only solution I found for this is to execute Visual Studio Installer as Administrator, naturally though it didn't work!
So I then tried to directly install the .Net Framework 4.5.2 Developer Pack found here: https://dotnet.microsoft.com/download/visual-studio-sdks?utm_source=getdotnetsdk&utm_medium=referral
And this installation fails with a new error message: Installation failed with error code: (0x80092010), "The certificate has been revoked.". I have been on this error for a full day and I haven't found anything so far...
Please help!
Issue with .Net TargetingPack installation following a Visual Studio
installation
First, based on your description that two programs are installed with errors, you should make sure that your current user account has the right to read and write to the current agent.
To confirm this, you need to contact the administrator account.
Besides, if your account has the right to install these programs, you should try these suggestions:
1) delete any caches under temp folder(C:\Users\xxx(user account)\AppData\Local\Temp)
2) turn off any firewall and antivirus software
3) open Control Panel-->Administrative Tools-->Local Security Settings-->Software Restriction Policies
Note: If no software restrictions are defined, right click the Software Restriction Policies node and select New Software Restriction Policy-->Double click Enforcement--> Select All users except Local Administrators
Restart the computer for the changes to take effect and After this, run visual studio installer as administrator to retry the install.
4) or just try to Turn off Windows Installer.
5) if you have any updates on your OS, please try to update them.
When I run my C# application on another PC, a network-related error appears. On my PC, it runs fine. I have used AttachDbFilename=|DataDirectory| to specify the location of my .mdf files. Now, what am I missing in this deployment that makes the application not to run on other PCs?
You are missing an SQL Server instance on your client machines,one option is to install LocalDB on them. Find the installation file SqlLocalDB.MSI, suitable for OS versions on your client machines, you may try this latest version https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SqlLocalDB.msi
I'm trying to learn how to create a simple application using Visual Studio IDE in C#.
I wrote a little application that uses a local SQL Server database for reading and storing data. On my machine, the program seems to work normally, but when trying to install the application on client computer it seems unable to read from the database.
I've tried to include the following prerequisites to the publish properties but it doesn't work:
Microsoft .NET Framework 4.5.2
SQL Server 2012 Express LocalDB
Any ideas about the right way to do it?
Thanks to all.
You need to install SQL Server Express LocalDB (SqlLocalDB.MSI) on the computer you are deploying your ClickOnce application to.
Selecting "SQL Server Express LocalDB" in the Prerequisites window and using "Download prerequisites from the component vendor's web site" should take care of that:
If you do that it should install the LocalDB for you and any database errors are more than likely resulting from connection string errors or leaving Integrated Security enabled.
You need to test on a target computer which does not have "SQL Server Express LocalDB" installed and verify that after the ClickOnce deployment it is installed. This will confirm that the problem is not the missing prerequisites but the database access issues...
After installing SQL server from here, I have the folder "C:\Program Files\Microsoft SQL Server\MSSQL14.SQLEXPRESS" which, according to File Locations for Default and Named Instances of SQL Server | Microsoft Docs[^] means I have the latest 2017 version i.e above 2012.
But the error is impeding me from achieving anything. If I try creating a new database, I get the infamous error "This server version is not supported. Only servers up to Microsoft SQL Server 2012 are supported". I bypassed this tricking visual studio into thinking I'm trying to test my connection but after that, I can't populate the rogue database with tables.
Trying to do this results in abrupt shutdown of visual studio and a request to be debugged. In the error log, I can see the last line read "The target database schema could not be retrieved" which still exposes the illegitimacy of my database. Trying to access that database in Server object explorer also results in the error "Operation is not valid due to the current state of the object".
Also I purchased a CD Microsoft server R2 2012 but ultimately did not install it because it asked me to backup my drive, I fear it may actually reformat my machine or do something else besides simply installing a server. I'm following the instructions on this thread How do I fix incompatible SQL Server version found? and in the drop-down, I can see version 2012 is there already. I also have the SSDT.exe but when I try installing it, it terminates and the error log states the following "MainViewModel.AddFailedCondition: Error: The current operating system is not supported. This application requires at least Windows 7 SP1 or Windows 8.1 to run" whereas I am clearly running windows 8 os.
So how do I go about getting a compatible server for my visual studio 2012? Or how can fix this current state of affairs?
I need to be able to access Oracle database from Visual Studio 2008(Framework 3.0/3.5). The Database version is 11g.
But I also may need to access older version of this database going back to the year 2007.
I tired to install Oracle database client 11gR2 on my desktop computer which has Windows 7 Enterprise edition.
It did not run from Setup menu but ran from background it seems.
Did notice a folder in C:/Oracle with 2 files sqlnet.ora and TnsNames.ora, but apart from that I noticed in the c:\windows\assembly there was no Oracle.DataAccess components installed.
Which client or tools should I need to install to be able to access versions of Oracle from Visual Studio 2008?
Assuming you suggest there is a client version for each of the Database versions, Can I install one client version on top of the other.
Now that I have installed the client 11gR2 can you tell me if I need to install it, I do not see an uninstaller under my "All Programs" menu .
First of all you need to install ODAC as mentioned in the comment.
Then in your project you need to reference Oracle.DataAccess and in your code you need to include the following
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;