Web Deployment problem ... please, need help.
am 05.01.2008 03:47:59 von Shapper
Hello,
I am using VS 2008 and and just downloaded Web Deployment Projects:
http://connect.live.com/VisualStudio/feedback/ViewFeedback.a spx?FeedbackID=319288
I need the connection string in my web site Web.config file to be
replaced.
So I created a new file named ConnectionStrings.config that contains
only the following:
And in my Web Deployment Web.Config File Section Replacements I have:
connectionStrings=ConnectionStrings.config;
I get the following error:
web.config(1): error WDP00002: missing section connectionStrings
What am I doing wrong?
And just another question on the side:
Is it possible to have 2 files: ConnectionStrings.config and
ConnectionStringsServer.config.
The first would have the connectionStrings section to be used in my
computer.
The second would have the connectionStrings section to be used when
deploying the web site to the server.
Thanks,
Miguel
Re: Web Deployment problem ... please, need help.
am 05.01.2008 04:03:54 von mark
"shapper" wrote in message
news:21bbd534-d2c9-4f46-808b-4db3bccc4d00@l1g2000hsa.googleg roups.com...
> I get the following error:
> web.config(1): error WDP00002: missing section connectionStrings
> What am I doing wrong?
Does your web.config *definitely* contain a section one
level down from the root? E.g.
If I remove it from the web.config in one of my projects and then try to
rebuild the WDP, I get exactly the same error as you...
> And just another question on the side:
> Is it possible to have 2 files: ConnectionStrings.config and
> ConnectionStringsServer.config.
>
> The first would have the connectionStrings section to be used in my
> computer.
> The second would have the connectionStrings section to be used when
> deploying the web site to the server.
Yes, but what would be the point...? WDP is for deployment only...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Re: Web Deployment problem ... please, need help.
am 05.01.2008 04:21:00 von Shapper
On Jan 5, 3:03 am, "Mark Rae [MVP]" wrote:
> "shapper" wrote in message
>
> news:21bbd534-d2c9-4f46-808b-4db3bccc4d00@l1g2000hsa.googleg roups.com...
>
> > I get the following error:
> > web.config(1): error WDP00002: missing section connectionStrings
> > What am I doing wrong?
>
> Does your web.config *definitely* contain a section one
> level down from the root? E.g.
>
>
>
>
>
>
>
> If I remove it from the web.config in one of my projects and then try to
> rebuild the WDP, I get exactly the same error as you...
>
> > And just another question on the side:
> > Is it possible to have 2 files: ConnectionStrings.config and
> > ConnectionStringsServer.config.
>
> > The first would have the connectionStrings section to be used in my
> > computer.
> > The second would have the connectionStrings section to be used when
> > deploying the web site to the server.
>
> Yes, but what would be the point...? WDP is for deployment only...
>
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net
Hi,
I was able to solve it using the information on the following article:
http://weblogs.asp.net/lkempe/archive/2007/12/02/web-deploym ent-projects-for-vs08-released-as-ctp-amp-migration-tips.asp x
What do you think?
Thanks,
Miguel