473,320 Members | 1,845 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.

Web Deployment Project and Localhost

I have an asp.net project with an WebDeployment Project.

At the end of the msbuild file I put:

<Target Name="AfterBuild">
<Exec WorkingDirectory="$(OutputPath)"
Command="$(MSBuildBinPath)\aspnet_regiis.exe -pef connectionStrings
$(OutputPath) -prov HrCustomProvider" />
<RemoveDir Directories="$(OutputPath)/ConfigFiles" />
</Target>

This works fine if the webserver is the built in server.
However if I am using the localhost IIS server I get an error.
From the Output window:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspn et_regiis.exe -pef
connectionStrings .\Debug\ -prov HrCustomProvider
Encrypting configuration section...
The configuration for physical path
'D:\DotNet2005\WebAuthentication_Solution\Hr-Auth_deploy\Debug\.\Debug\'
cannot be opened.

So I looked in my WebDeployment Project Property Pages
Configuration Properties: Compilation
Output Folder

It was set to .\Debug\

I am a little scared about changing the output directory to . because I
certainly don't want the source files to get deleted.

What should I do to get this to work.


Sep 4 '07 #1
3 1958
Hi Chuck,

As for the Webdeployment project issue, how did you move the original VS
2005 TEST server based project to IIS hosted? Are you still using the same
solution(with the WEB deployment project) after you move the web project to
IIS?

If possible, you can tell me the detailed steps to create a web
project(with web deployment project) that can report the issue, I'd like to
perform some local test also.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?Q2h1Y2sgUA==?= <Ch***@newsgroup.nospam>
Subject: Web Deployment Project and Localhost
Date: Tue, 4 Sep 2007 15:00:01 -0700
>
I have an asp.net project with an WebDeployment Project.

At the end of the msbuild file I put:

<Target Name="AfterBuild">
<Exec WorkingDirectory="$(OutputPath)"
Command="$(MSBuildBinPath)\aspnet_regiis.exe -pef connectionStrings
$(OutputPath) -prov HrCustomProvider" />
<RemoveDir Directories="$(OutputPath)/ConfigFiles" />
</Target>

This works fine if the webserver is the built in server.
However if I am using the localhost IIS server I get an error.
From the Output window:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\asp net_regiis.exe -pef
connectionStrings .\Debug\ -prov HrCustomProvider
Encrypting configuration section...
The configuration for physical path
'D:\DotNet2005\WebAuthentication_Solution\Hr-Auth_deploy\Debug\.\Debug\'
cannot be opened.

So I looked in my WebDeployment Project Property Pages
Configuration Properties: Compilation
Output Folder

It was set to .\Debug\

I am a little scared about changing the output directory to . because I
certainly don't want the source files to get deleted.

What should I do to get this to work.


Sep 5 '07 #2
Steven,

Here is the solution somehow in the solution properties under Configuration
Properties the Build check box for the deployment project was checked.
Sep 6 '07 #3
Thanks for the followup Chuck,

Sorry for the delayed response as I was on sick previously. Anyway, glad
that you've found a way to workaround the problem. If you need any further
help later, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
>From: =?Utf-8?B?Q2h1Y2sgUA==?= <Ch***@newsgroup.nospam>
References: <76**********************************@microsoft.co m>
<qo*************@TK2MSFTNGHUB02.phx.gbl>
>Subject: RE: Web Deployment Project and Localhost
Date: Thu, 6 Sep 2007 10:18:03 -0700
>>
Steven,

Here is the solution somehow in the solution properties under
Configuration
>Properties the Build check box for the deployment project was checked.
Sep 11 '07 #4

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

Similar topics

1
by: Sean Kessinger | last post by:
Thanks, John. Here is the article: http://support.microsoft.com/default.aspx?scid=kb;;821546 I tried the suggestions from this article but still the same problem. No-touch deployment works on...
3
by: Steve Brecher | last post by:
VS.NET help on deployment indicates that, while using a deployment project requires administrative access to IIS, " we recommend deploying your project in most cases, because it allows you to take...
3
by: QDL | last post by:
Hello everyone, is there a way to programmatically set the default document from a deployment project for ASP.NET. My default page is named default.htm and I'd like to set it as the topmost...
6
by: andrewbb | last post by:
I want to deploy a service with a windows app and the setup program must conform to the Vista certification requirements. Can that be done with the standard .net setup project? Assuming cost is...
0
by: MJDQCD | last post by:
I am trying to deploy an asp app to a localhost on another box. I have never done this and have installed miscrosofts Web deployment tool to aid me in this endevour Here is the relevent piece of the...
10
by: =?Utf-8?B?UHVuaXQgS2F1cg==?= | last post by:
Hi, I am developing a windows application in VS.NET 2005. The application is database driven and I need to deploy it on a client's pc. How should I go about developing such an application. I...
7
by: Cirene | last post by:
I used to use the Web Deployment Project with my VS2005 projects. Now I've fully upgraded to VS2008. Do I have to download a new version of the Web Deployment Project? If so where can I find...
0
by: BHollister | last post by:
Hi All, I have written a web service that works fine in development and fails when deployed to my localhost. The development solution is configured as: Business Object Project Service...
1
by: dorandoran | last post by:
I created an MSI package and it works great. However, the source code aren't compiled. They show up row in the test web server. This is No No in our environment. Are there any steps that I am missing...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.