i/o error during create file in vs2013 with Firebird db and iis 10 - visual-studio-2013

I'm working on an asp.net project in visual studio 2013 which uses Firebird as the database server. I have no problems with Windows 8 or if I deployed the project on a remote server, but if I work on a PC with Windows 10 and IIS and I tried to debug the project in visual studio, it is not possible to open the connection with the database, I got the error I/O error during "CreateFile (open)" operation for file "path and name of the database file" Error while trying to open file.
I think the problem is in the IIS configuration but I can't find out where it is. Surely someone can guide me...

Solved: I moved the database to the app_data folder of the project and the error disappeared

Related

VS2017 RC - The following error occurred when trying to configure IIS Express

Installed VS2017 RC - Started New Project ASP.NET Core Web Aplication(.Net CORE), selected Individual User Accounts as Authentication type. Try to run code generated with no changes and got the following error: Error occurred when trying to configure IIS Express for project... Error: ../.vs/config/applicationhost.config Error: cannot write configuration file
Looked at that file and it appears that it should have been writable.
FYI using VS2015 Update 3 everything builds and runs as expected including IIS Express.
I have encountered the same issue but deleting .vs folder worked for me.
I was having this issue, but only after the recent updated to Visual Studio 2017 RC (12/12/16).
I searched for a good hour and really didn't find anything, so I simply downloaded the latest IIS Express (v10) and it seems to have corrected the issues for 2017, but also for 2015 that started after the update as well.
IIS Express Download
EFS (Encryption File System) is known to cause file access problems. Ensure that EFS is turned off in your project directory.
More information:
https://blog.danielsmon.com/2017/04/03/cant-write-to-applicationhost-config/

Unable to Launch IIS Express Web Server - VS 2015 Community

I am developing a web project and I am not being able to test it using the IIS Express from the Visual Studio 2015.
I have googled this error and I found many references to it on the internet, but I believe that my case is different, because there is no other error message displayed besides "Unable to Launch IIS Express Web Server".
I've looked at the Windows Event Viewer and I got these errors below:
The worker process failed to initialize correctly and therefore could not be started. The data is the error.
The Module DLL C:\Program Files (x86)\IIS Express\aspnetcore.dll failed to load. The data is the error.
I also tried to launch the IIS Express directly using: c:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error and I was successfull, so I think that the problem must be somewhere within Visual Studio and that my port (8080) is free.
Does anyone knows what else I can do?
If you are working with .NET core/ASP.NET core application then
please make sure you have installed these-
.NET Core SDK
VS 2015 Tooling Preview 2
If it is appeared to be solution-specific then-
Look for applicationhost.config file at <solution-name>\.vs\config\applicationhost.config location
Try removing this file and run solution again.
See if this helps.
I had the same error few days ago. I tried many things but i think Repairing DotNetCore.1.0.0-VS2015Tools.Preview2.exe fixed the issue.
Also, check whether you can run the web app in Kestrel web server. If you can run then worth checking web.config file for the presence of aspnetCoreModule tag properly.
This link might be helpful -- https://github.com/aspnet/Home/issues/1583

.sdf file is giving error to open

This is my first ASP.NET MVC3 application and it is working and everything is fine except to open DB file (.sdf) in App_Data folder. I am getting error
the operation could not be completed. Unspecified error.
Things which is done from my side are:
All the operations like Show all files, Include in project etc.. are done on this folder and files.
SQL Server Compact 4.0 (runtime + tools support) is installed to my machine.
Thanks.
I had the same issue with MVC 4. Installing VS2010 SP1 fixed it for me.
VS2010 SP1

MVC3 Sample Project Database Error

I am running Visual Studio 2010 and I created the default MVC3 sample project. The project starts fine and I get the home page.
But when I go to register a new user I get this error,
An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 5177 and the SqlException message is: An unexpected error occurred while checking the sector size for file 'D:\WORK\VISUAL STUDIO PROJECTS\VISUAL STUDIO 2010\MVC3\MVC3\APP_DATA\ASPNETDB_TMP.MDF'. Move the file to a local NTFS volume, where the sector size can be retrieved. Check the SQL Server error log for more information.
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
Creating the ASPNETDB_af8cb88b53744229b5d3dca30395b572 database...
I also have SQLServer 2008 R2 installed.
Does anyone know why this is happening?
Thanks
I had the same problem. It is trying to create a database 'D:\WORK\VISUAL STUDIO PROJECTS\VISUAL STUDIO 2010\MVC3\MVC3\APP_DATA\ASPNETDB_TMP.MDF' and failing to create it. Firstly check if the file already exists and manually delete it if so. For me, it was because I was creating a drive using the Windows command:-
subst x: "e:\My Work"
And my solution was on X:, which for some reason the app did not like. You can also try creating the database 'D:\WORK\VISUAL STUDIO PROJECTS\VISUAL STUDIO 2010\MVC3\MVC3\APP_DATA\ASPNETDB_TMP.MDF' manually in Visual Studio and see if you get the same error.
If you can't create it, look at the drive/folder settings such as make sure it is NTFS drive and check rights etc.
For me, the problem was caused by the disk mapping, I have mapped a folder C:\abc as a virtual disk, then the error occurred while I run app from the virtual disk, move the projects outside of the virtual disk solves my problem.
you need to have express edition installed, generally to run the programs which we download from online. or else if you have developer edition or enterprise edition of SQL installed you need to change the connection string in web.config to you database and before that don't forget to copy database form APPData folder to you database.
Hope this should work.

Unspecified error when trying to connect to an MS Access database on Visual Studio 2010

I've both Visual Studio 2010 (Premium) and MS Access 2010 installed. I'm just trying to connect to a .mdb database file from the server explorer and it doesn't work. I get the following message: "Unspecified error". If I try to add a database on the App_Data folder and open it, I get the same error. I've tried with .accdb and .mdb files but both give the same problem.
I have also Visual Studio 2005 installed on the same machine. And it works without any problems.
Anyone has any thoughts about it?
Thank you
Make sure you have the appropriate references in you VS2010 project for Access databases.
Not sure this counts as an answer but, the issue is with Visual Studio 2010. I too need to connect to an Access database (tactical solution, migration not possible) and in VS2010 I get the "unspecified error". It fails if I try an ODBC based connection too. I can connect fine using SSIS, and as it turns out, in VS2008.
My current solution is to create my class library in VS2008 and reference the compiled DLL in my VS2010 project. I haven't got the time to try and fix my VS2010 install at the moment. When I do, I'll upgrade my 2008 project.
An aside: I think most people on here would migrate to a better database if they could, and are only connecting to Access databases because they have no choice.

Resources