Application display error after windows upgrade - sql-server

Hi I have recently upgraded from windows 7 to windows 8.And have installed both Visual studio 2010 and 2012 on my PC.I had two personal application that worked fine under windows 7 but after trying to run them on windows 8 I get the following error.
The first application displays the following error:
The database 'E:\PROJECTS IDE\VISUAL STUDIO\2010\WEBAPPLICATIONS\FORUM\APP_DATA\ASPNETDB.MDF' cannot be opened because it is version 706. This server supports version 655 and earlier. A downgrade path is not supported.
Could not open new database 'E:\PROJECTS IDE\VISUAL STUDIO\2010\WEBAPPLICATIONS\FORUM\APP_DATA\ASPNETDB.MDF'. CREATE DATABASE is aborted.
An attempt to attach an auto-named database for file E:\Projects IDE\Visual Studio\2010\WebApplications\Forum\App_Data\ASPNETDB.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
This seems to be linked to the ASPNETB.MDF db on both applications.
The second applications runs fine at first but I thing only because I have created with two database and in order to run the app acces to ASPNETDB.MDF is not required.But after I try to login into the application I get this error:
An attempt to attach an auto-named database for file D:\Projects IDE\Visual Studio\MyWork\Websites\e-commerce\e-commerce\App_Data\ASPNETDB.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
The reason I am posting both the application problems is because I thing it is the same problem that is preventing my applications from running.
What can I do to solve this problem?

Related

Fix this Entity Framework migration, 00000000000000_CreateIdentitySchema, in Visual Studio?

I'm starting with the default Blazor app in Visual Studio 16.3.7 with authentication:
I go to the registration page, enter the email and password, and click the Register button and up comes the following error:
Next I go to Package Manager Console in Visual Studio, and run Update-Database, getting the following error:
CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'C:\Users\Halaspnet-BlazorAuthentication-0X0X0X0X0X0-X0X0-X0X0-X0X0-0X0X0X0X0X0.mdf'.
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
The message points to the culprit, a backslash is missing from the file specification. It should be C:\Users\Hal\aspnet... , not C:\Users\Halaspnet...
So, how do I fix this? I can't find the string "CREATE DATABASE" anywhere in my solution.
Also, how do I get this to Microsoft as a bug report?
Problem solved!
I created the database that the 00000000000000_CreateIdentitySchema.cs wanted using Visual Studio's SQL Server Object Explorer. Then I ran Update-Database in the Package Manager Console, and it completed successfully.
The problem seems to be that I was using the Express edition of SQL Server.
This link got me to the fix for this problem:
Creating A Step-By-Step End-To-End Database Server-Side Blazor Application

AdventureWorks2012 mdf error message when downloading file

I am trying to download AdventureWorks2012.mdf. The link I am using is (https://github.com/Microsoft/sql-server-samples/releases). I then select the first option "adventure-works-2012-dw-data-file.mdf".
The link seems to download, but then when I go to open it I get an error:
This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel
I have a macbook air and I have installed Microsoft by way of a virtual machine. Given all of this information, how am I supposed to resolve this issue so I can get the file to download? I already have SQL Server 2012 installed on my Microsoft.

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?

PowerBuilder: DBMS DIR is not supported in your current installation

I am working on a migration project, where we are migrating one 32-bit PB12.0 application from Windows 2003 to 2012 server. We have copied all the required files and folders in the new server. Sybase Open Client has been installed and using ISQL we are able to connect to Sybase DB. We have not change anything in the PB12.0 code we just copied the .exe and referenced DLL in the new server.
While executing the job we are getting
DBMS DIR is not supported in your current installation
But if we navigate to the PB folder we can see PBDIR120.DLL is there.
Try to set a path variable to the directory. I had some simmilar issues ( with PB12.6 ) and this helped.
Finally the issue got resolved. The reason of the issue,
Previously, PB12.0 job was using Sybase Open Client OCS_12_5. As part of windows migration, Sybase Open Client is upgraded to OCS_15_0. Because of this there was a conflict between PBDIR120.DLL and the dlls under "OCS_15_0/dll" folder.
If we add the DLLs in the path from "OCS_12_5/dll" folder then the application is working fine.

Attach sql server 2012 error, Unable to open the physical file

I got message box
Unable to open the physical file "C:\Project Basdat\DAYCARE.mdf".
Operating system error 5: "5(failed to retrieve text for this error.
Reason: 15105)". (Microsoft SQL Server, Error: 5120)
when trying to attach database file that I made from another pc.
I use Windows 10.
Help :(
The link I posted previously is broken so I removed it. If you run SQL Server Management Studio as administrator it should work just fine.
This is permission issue on folder.
GO to the folder where you have stored mdf file.
select file-> Right click -> click on .
give full permissions to file for logged in user Security and (NT Service\MSSQLSERVER).
When I faced this issue, I tried
Running SQL Management Studio as Administrator
Giving full permissions to the file for logged in user
Still the error persisted.
The reason for this error might be that you copied your program from a source which Windows considers non-trusted.
You can unblock the assembly by clicking "Unblock" after you right-click and select properties on the file.

Resources