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 .: (
source
share