Mark Tabor

Mark Tabor

  • 589
  • 2k
  • 460.2k

System.ComponentModel.Win32Exception: Access is denied

Sep 5 2017 10:01 AM
I have downloaded a project and when i host it onto my hosting solution i am getting that error
 
"System.ComponentModel.Win32Exception: Access is denied" what whoud be the cuase i have asp.net MVC ticketing system the web.config show the database as
 
<connectionStrings>
<clear />
<add name="TicketDeskSecurityConnectionString" connectionString="Data Source=(localdb)\v11.0;AttachDbFilename=|DataDirectory|\TicketDesk.mdf;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="TicketDeskEntities" connectionString="metadata=res://*/Models.TicketDeskEntities.csdl|res://*/Models.TicketDeskEntities.ssdl|res://*/Models.TicketDeskEntities.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=(localdb)\v11.0;AttachDbFilename=|DataDirectory|\TicketDesk.mdf;Integrated Security=True;Connect Timeout=30;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
<add name="ElmahLog" connectionString="Data Source=(localdb)\v11.0;AttachDbFilename=|DataDirectory|\TicketDesk.mdf;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
 
i think there is a problem with connection string i have no stand alone database i publish the whole project with same this connection string

Answers (5)