Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 6th, 2017, 09: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 09:45 AM.
Reply With Quote
  #2 (permalink)  
Old September 6th, 2017, 11:00 AM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,955
Thanks: 79
Thanked 1,556 Times in 1,533 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
viery (September 6th, 2017)
  #3 (permalink)  
Old September 6th, 2017, 12:02 PM
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08:49 AM
Probelm For Runing This Code farhad13841384 ASP.NET 2.0 Professional 0 August 3rd, 2006 02:37 AM
Query Probelm tsimsha ASP.NET 1.0 and 1.1 Basics 1 June 7th, 2006 11:48 AM
Performance probelm with tomcat manishwaf Servlets 0 May 29th, 2006 07:47 AM



All times are GMT -4. The time now is 11:57 AM.


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