how to solve this error

Posted by Parthibansk under ASP.NET on 12/27/2012 | Points: 10 | Views : 527 | Status : [Member] | Replies : 2
WHEN I PUBLISH MY WEBSITE TO IIS ROOT DIRECTORY I GET THIS ERROR..

The process cannot access the file 'D:\Users\Parthi\DVisual Studio 2008\Projects\WebSite1\App_Data\EMPLOYEE.mdf' because it is being used by another process.




Responses

Posted by: Saratvaddilli on: 12/27/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
go through this link

http://support.microsoft.com/kb/890015

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 12/27/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
Stop the SQL Server Agent service and try to publish ur webapp.:
Steps:
1.On the Start menu, point to All Programs, point to Microsoft SQL Server 2008 R2, point to Configuration Tools, and then click SQL Server Configuration Manager.
2.In SQL Server Configuration Manager, expand Services, and then click SQL Server Agent.
3.In the results pane, right-click any instance of SQL Server Agent, and then click Stop.
4.A red box on the icon next to SQL Server Agent and on the toolbar indicates that SQL Server Agent stopped successfully.
5.Click OK.

Mark As Answer if this helps you.

.

Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response