I try to attach my SQL Server application to somee.com and I get an error

I am trying to deploy an ASP.NET web application connected to a SQL Server database. I try to attach a database by downloading a file .mdf, but always get an error message:

System.Web.Services.Protocols.SoapException: The server could not process the request.
--->
System.UnauthorizedAccessException: access to the path 'c: \ dzsqls \ krginventorydb2.mdf' is denied.
in System.IO .__ Error.WinIOError (Int32 errorCode, String maybeFullPath)
in System.IO.File.InternalDelete (String path, Boolean checkHost)
in DZWebSvc.DZWebAgent.AttachNewUserDBDataFileOnly (String DBName, String OriginalName, String LoginName, StringNameName, StringNameName, StringNameLame, String NewDBFileName, Int32 MaxDataFileSizeMB, Int32 MaxLogFileSizeMB, String ConnectionString, Boolean ChangeDefaultSchemaToDbo, String tk)
--- The end of the internal trace of the exception stack ---

I know that I need to separate db if it is currently active, and so I did it. Its size is small enough not to exceed the maximum. I do not know what happened. Help .: (

+4
source share
1 answer

Alternatively, you can deploy your database to somee.com by creating your database script using Sql Server Managment Studio. Please watch my video to resolve this error.

Watch it

+4
source

Source: https://habr.com/ru/post/1612644/


All Articles