p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Beginning ASP.NET 4.5 : in C# and VB (http://p2p.wrox.com/book-beginning-asp-net-4-5-c-vb-710/)
-   -   publish probelm (http://p2p.wrox.com/book-beginning-asp-net-4-5-c-vb/99608-publish-probelm.html)

viery September 6th, 2017 09:24 AM

publish probelm
 
hi,imar,

i am chinese ,My English is not good. The problem is described as follows:

i published the web site,but not successful.i closed all pages. and never open ssms。

but ,error :
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Mic rosoft.Web.Publishing.targets(2987,5): Error : Copying file App_Data\PlanetWrox.mdf to C:\Users\Administrator\AppData\Local\Temp\WebSiteP ublish\site-1804239788\obj\Debug\Package\PackageTmp\App_Data\P lanetWrox.mdf failed. The process cannot access the file 'App_Data\PlanetWrox.mdf' because it is being used by another process.

then i restarted my computer,but still published failed. i never use this mdf file by ssms,but show it always be used.


thank you,best wishes from your chinese fans.
viery


------------------------------------------------------

I shutdown the sqlserver service,then,successed。
Thank you for writing such a good book!

Imar September 6th, 2017 11:00 AM

Visual Studio may have a lock on these files. Try one of these:

1. On the Server Explorer / Database Explorer, try disconnecting from SQL Server
2. Or, on the Publish Wizard, choose the option to ignore items from App_Data

Hope this helps,

Imar

viery September 6th, 2017 12:02 PM

Quote:

Originally Posted by Imar (Post 309245)
Visual Studio may have a lock on these files. Try one of these:

1. On the Server Explorer / Database Explorer, try disconnecting from SQL Server
2. Or, on the Publish Wizard, choose the option to ignore items from App_Data

Hope this helps,

Imar

thank you ,i adopt the first scheme,successed when sqlserver service is running.


All times are GMT -4. The time now is 08:09 PM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.