Bernado,

 

I’ve made the suggested changes (other than setting up the TeamCI stuff as I’m not ready for that step just yet) and it certainly helped a lot.

My build is now creating the Zip file and copying the latest files to the specified output directory (where my virtual directory is pointed), but I am unable to browse the site after running a TFSBuild.

Manually running the Deployment project is the only way I can get the deployed Web Service to run.

 

Using TFSBuild I get the following errors when browsing the newly built Web Service:

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not create type 'RetroIIWebService.WsAudioMetadata'.

Source Error:

 
Line 1:  <%@ WebService Language="C#" CodeBehind="AudioMetadata.asmx.cs" Class="RetroIIWebService.WsAudioMetadata" %>


Source File: /RetroIIWebService/AudioMetadata.asmx    Line: 1

 

I have looked at the following:

1) The Virtual Directory is an application (called “RetroIIWebService”)

2) The Web Service Assembly name is “RetroIIWebService”

3) The Web Service Default Namespace name is “RetroIIWebService”

4) The .asmx files are within the namespace (“RetroIIWebService”)

5) The bin folder in the deployed web service contains “RetroIIWebService.dll”

6) I am building in release mode.

 

To note: The assembly name in the Deployment project is “WebService.csproj_deploy”  (the project is simply called “WebService.csproj”) and all outputs are being merged to a single assembly. All other settings are as per default. Building the deployment project manually works fine: but running the TFSBuild does not.

 

Any ideas on what I am doing wrong?

 

Regards,

 

Michael Daniel
Senior Consultant

KAZ Group Pty Ltd
Kodak House, Dickson ACT 2601
(02) 6219 2948
[EMAIL PROTECTED]  |  www.kaz-group.com


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bernardo Heynemann
Sent: Tuesday, 17 October 2006 9:48 AM
To: [email protected]
Subject: Re: [OzTFS] TFS Build Publish Web Services

 

I blogged about it a few posts back (the post even got linked by Buck Hodges).

It will help you get what you want to and as a bonus get a zip file with the build version :)

Hope it helps,

--
Bernardo Heynemann
Microsoft Certified Solution Developer .Net
[EMAIL PROTECTED]
Equipe de Arquitetura /Architecture Team
Perlink Consultoria & Sistemas
http://www.perlink.com.br
Rua da Assembléia, 10/3419
Centro - Rio de Janeiro - Brazil

 

On 10/16/06, Michael Daniel <[EMAIL PROTECTED]> wrote:

Hi all,

I've been lurking around this list for a while and have finally worked up the gumption to ask my first question.

We are using a Web Service in our TFS project and would like to publish the latest version each night as a part of our nightly build.

The Web Service is built using a Web Application Project and we have a Web Deployment project set up in an attempt to get it to build.

Manually running the Deployment project (right-click the Deployment project and "Build") will publish the web Service correctly (both locally and on the build server), but I can't seem to work out how to get TFS Build to run the deployment project as a part of our build.

For the past few weeks we've gotten by manually building the Web Service each morning, but there has to be a better way.

I've tried running the deployment project using MS Build command lines in a batch file but with no luck.

Can anyone help out?

 

Regards,

 

Michael Daniel
Senior Consultant

KAZ Group Pty Ltd
Kodak House, Dickson ACT 2601
(02) 6219 2948
[EMAIL PROTECTED]   |  www.kaz-group.com

OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net




OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net

OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net

Reply via email to