Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 6th, 2017, 08:24 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2017
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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!

Last edited by viery; September 6th, 2017 at 08:45 AM..
  #2 (permalink)  
Old September 6th, 2017, 10:00 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
viery (September 6th, 2017)
  #3 (permalink)  
Old September 6th, 2017, 11:02 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2017
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Thumbs up

Quote:
Originally Posted by Imar View Post
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.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Probelm in DataGrid Display su C# 1 December 8th, 2006 05:00 AM
Kernel compilation probelm shyjumon.n Linux 1 October 24th, 2006 07:49 AM
Probelm For Runing This Code farhad13841384 ASP.NET 2.0 Professional 0 August 3rd, 2006 01:37 AM
Query Probelm tsimsha ASP.NET 1.0 and 1.1 Basics 1 June 7th, 2006 10:48 AM
Performance probelm with tomcat manishwaf Servlets 0 May 29th, 2006 06:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.