473,320 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Publishing my Web Site

Okay, looks like VS 2008 finally includes an automated feature to precompile
my site before publishing. Cool.

However, when I run this dialog box and click OK, it then complains that
access is denied by my database file (in the App_Data folder). And
everything appears to end there with no additional information. (I don't see
that the database is in use other than it is attached to SQL Server 2005.)

My database file should *not* be transferred to the site. The data has
already been copied via an involved process. But I seem to be given no
options regarding which files should not be transferred and the entire
process just stops if a file that cannot be copied is encountered.

Is there some trick to making this work?

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Jan 25 '08 #1
11 2724
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:OM**************@TK2MSFTNGP03.phx.gbl...
Is there some trick to making this work?
http://blogs.msdn.com/webdevtools/ar...-released.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 25 '08 #2
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:OM**************@TK2MSFTNGP03.phx.gbl...
Okay, looks like VS 2008 finally includes an automated feature to
precompile my site before publishing. Cool.

However, when I run this dialog box and click OK, it then complains that
access is denied by my database file (in the App_Data folder). And
everything appears to end there with no additional information. (I don't
see that the database is in use other than it is attached to SQL Server
2005.)

My database file should *not* be transferred to the site. The data has
already been copied via an involved process. But I seem to be given no
options regarding which files should not be transferred and the entire
process just stops if a file that cannot be copied is encountered.

Is there some trick to making this work?

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 25 '08 #3
I'm not really clear on what that is but it is something quite different
from the Build|Publish Website command.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:OQ****************@TK2MSFTNGP05.phx.gbl...
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:OM**************@TK2MSFTNGP03.phx.gbl...
>Is there some trick to making this work?

http://blogs.msdn.com/webdevtools/ar...-released.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Jan 25 '08 #4
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:Oo**************@TK2MSFTNGP06.phx.gbl...
>1) Right-click your web deployment project

I don't know what this means. I have an ASP.NET project. I want an easy
way to place it on my Web server, preferrably precompiled. So I don't have
a "web deployment project."
At the risk of repeating myself, Web Deployment Projects are a *separate
add-in* to Visual Studio.NET... The purpose of this separate add-in is to
make the whole business of deploying web projects much easier. One of the
many functions which it supports is the ability to have different web.config
settings for development, testing, production, etc...

Being a separate add-in, if you want to use it you have to download it and
install it:
http://weblogs.asp.net/scottgu/archi...-released.aspx

There's also an older version for Visual Studio.NET 2005...

See also:
http://blogs.iis.net/msdeploy/archiv...team-blog.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 11 '08 #5
"Scott Roberts" <sr******@no.spam.here-webworks-software.comwrote in
message news:eZ**************@TK2MSFTNGP02.phx.gbl...
Here's what I do:

That's precisely what I used to do too - until the Visual Studio.NET team
released the Web Deployment Projects add-in...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 11 '08 #6

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:OQ**************@TK2MSFTNGP05.phx.gbl...
"Scott Roberts" <sr******@no.spam.here-webworks-software.comwrote in
message news:eZ**************@TK2MSFTNGP02.phx.gbl...
>Here's what I do:


That's precisely what I used to do too - until the Visual Studio.NET team
released the Web Deployment Projects add-in...
Your link is open in another window. I'll check it out. Thanks.

Feb 11 '08 #7
Mark,
>I don't know what this means. I have an ASP.NET project. I want an easy
way to place it on my Web server, preferrably precompiled. So I don't
have a "web deployment project."

At the risk of repeating myself, Web Deployment Projects are a *separate
add-in* to Visual Studio.NET... The purpose of this separate add-in is to
make the whole business of deploying web projects much easier. One of the
many functions which it supports is the ability to have different
web.config settings for development, testing, production, etc...

Being a separate add-in, if you want to use it you have to download it and
install it:
http://weblogs.asp.net/scottgu/archi...-released.aspx
I will definitely look into this, but this is still a little confusing. We
were discussing the Build|Publish Web Site command. I have that command now.
But now you're saying this is an add-in that I must download. If I have the
command we were discussing, but need to download this "separate add-in",
does that not mean that these are two different things?

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Feb 11 '08 #8
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
We were discussing the Build|Publish Web Site command.
That's right - the command that was causing you difficulty...

I was merely suggesting that you download and install an add-in to Visual
Studio.NET (written by the same people who write Visual Studio.NET) which
would have solved all your problems for you...
But now you're saying this is an add-in that I must download.
You don't have to download anything if you don't want to...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 11 '08 #9
Mark,
>We were discussing the Build|Publish Web Site command.

That's right - the command that was causing you difficulty...

I was merely suggesting that you download and install an add-in to Visual
Studio.NET (written by the same people who write Visual Studio.NET) which
would have solved all your problems for you...
>But now you're saying this is an add-in that I must download.

You don't have to download anything if you don't want to...
I'm sorry that I have been unable to find the words that correctly convey
the point that's causing confusion. Earlier in this thread, you were telling
me about using this command to copy my project to my server. I responded
that the command in question did not appear to have the functionality that I
was asking for. It seems you responded by insisting it had exactly that
functionality. When I went into more detail about why it didn't seem to do
what I needed, you responded with some information that included that I must
download an add-in.

I understand that I do not have to download anything if I don't want to. And
I've already indicated I will research the link just as soon as I get a
moment. What I don't get is what part I missed between you telling me what a
particular command did, and you telling me that I need to download an add-in
to use the functionality being discussed.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Feb 11 '08 #10
"Paul Shapiro" <pa**@hideme.broadwayData.comwrote in message
news:uM**************@TK2MSFTNGP02.phx.gbl...
Do you let the Web Deployment Project target the web host directly?
Indirectly - see below...
I think I saw some notes to the effect that the VS 2008 version of the WDP
will not output any files if the build fails.
That's correct.
It would certainly be more convenient to build and deploy in one step if
that's reliable. Also, can WDP deploy via FTP?
See the "More Deployment Features" here:
http://weblogs.asp.net/scottgu/archi...-released.aspx
One other question about the WDP. I got the web.config replacement working
now. The only thing I haven't been able to do is remove the extra config
files from the build output. At the end of the WDP project file I added
the following, which I thought would delete the extra files, but it's not
working. No errors, but not working.

Any suggestions?
<Target Name="AfterBuild">
<Delete Files="$(OutputPath)\*.Debug.config" />
<Delete Files="$(OutputPath)\*.Release.config" />
</Target>
I use variations on the following:

<Target Name="AfterBuild" Condition="'$(Configuration)|$(Platform)' ==
'Release|AnyCPU'">
<Delete Files="$(OutputPath)\appSettings.config" />
<Delete Files="$(OutputPath)\connectionStrings.config" />
<Delete Files="$(OutputPath)\MyProject.csproj" />
<Delete Files="$(OutputPath)\MyProject.csproj.user" />
<RemoveDir Directories="$(OutputPath)\code" />
<RemoveDir Directories="$(OutputPath)\obj" />
<RemoveDir Directories="$(OutputPath)\Properties" />
</Target>

Replace MyProject above with the name of your project...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 12 '08 #11
"Paul Shapiro" <pa**@hideme.broadwayData.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
I used the Copy Web command from VS2008 to copy to my hosting server via
FTP. That worked fine after I added the Web Deployment Project output
folder as a file-system website in my solution so. But since my whole
solution is under Source Control, the deployment folder was automatically
added to source control, which is completely unnecessary. I didn't see any
way to keep the deployment folder out of source control? Is the only
answer to create a separate deployment solution? That's all I can think of
to keep it out of the source control.
I must admit I've never tried that... I don't use the Copy Web command at
all - I use WDP and this: http://www.ftpsynchronizer.com/ which makes
everything extremely simple and efficient:

1) Change

2) Test

3) Debug and re-test

4) Rebuild with WDP

5) Sync
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 12 '08 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Doc | last post by:
I'm trying to get to the bottom of a problem I've been having with publishing a freebie website. I'm using a program called WebEasy. Using a very simple site upload as an example, in this case a...
0
by: John Bailey | last post by:
Okay, I am publishing a site done in ASP .Net 2.0. The site runs fine locally from source, I am publishing it mainly because two of the report assemblies do not come up on Crystal Tech when running...
0
by: tiendq | last post by:
Hi, My web application using a Http handler to handle request for *.aspx page in a specific folder e.g. /Articles , which generate requested page dynamically. It worked well. But when I...
3
by: Mark Olbert | last post by:
I was able to publish my first ASPNET2 site to my hosting server earlier today without any problems. I gave it the name of subdirectory that would hold the site, entered my ftp password (even though...
1
by: philip | last post by:
I tried to publish on my address 'philippewarein.com' a minimal site. There is only one page, with some words : "This is my first site" This is the HTML code of this page, code created by Visual...
3
by: EqDev | last post by:
Hello I have set up a new windows server 2003 standard edition for training (on new software we have developed) and am having problems publishing webs to it from VS 2005. I have a C# Web...
1
by: thavaht | last post by:
I recently began drawing dynamic pages using PHP + MYSQL. I’m developing the site on windows XP / Apache 1.3.34 / PHP 5.1.2 as a testing server. My publishing server is on another machine on the...
5
by: rmgalante | last post by:
I've been using the VS2005 Publish utility on one of my projects for about six months. I have a large site with hundreds of files, thousands if you include the code behind files. So I thought...
2
by: Max2006 | last post by:
Hi, After I right-click on my web application project file and choose "Publish ." and do the publishing, the result publishable files does not include the *.ashx files. Is it by design? How...
0
by: ronald.chis | last post by:
Iwebs v1.2 - Open Source Web-Publishing Platform for Bloggers and website builders available Now- (Sept 16-2008) With more updations iwebs version 1.2 can be downloaded here -...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.