Deploying a Web Application

starstarstarstarstarstarstarstarstarstar Rating: 0/5 (0 vote cast) print




Plan the deployment of a Web application.
Plan a deployment that uses removable media.
Plan a Web-based deployment.
Plan the deployment of an application to a Web garden, a Web farm, or a cluster.




Create a setup program that installs a Web application and allows for the application to be uninstalled.
Deploy a Web application.
Add assemblies to the global assembly cache.



profile
KINGSLEY TAGBO
 : KINGSLEY TAGBO     : O'FALLON, Missouri, United, States   Reply  

Replies (11)

Hi Kingsley,

At the outset thank u so much for replying me.

I am using Microsoft .net framework 1.0.3705 and Microsoft visual studio .net trial version.

In the setup and deployment project I don't have any DSPE.INI, in fact this file is not on my whole system.

When I was building WebSetup (name of deployment project), then I got this warning:-

WARNING: This setup does not contain the .NET Framework which must be installed on the target machine by running dotnetfx.exe before this setup will install. You can find dotnetfx.exe on the Visual Studio .NET 'Windows Components Update' media. Dotnetfx.exe can be redistributed with your setup.

But why do I need dotnetfx.exe ...I only need this if there is no .net on my target machine and I have the window .net hosting plan...so I don't have to worry about this warning...right??? In Bootstrapper option I have Windows Installer Bootstrapper.

I think I didn't set any virtual dirctory...where do I have to do it? Hey I was not sure about this virtual directory so I tried to deploy a new project from scratch...now I am sure I didn't set any virtual directory. ANd this time again I am getting the same error on executing setup.exe but filename is now DSP35.INI.

Yeah I would definitely love to know and use this altervative "Copy Project option". But plz I want to deploy using this web setup project too. I want to know where am I doing wrong?

I am new to this deploying stuff...in college I was always only involved in desiging never do much for deployment.... so may be possible that I am not so clear in telling detail or may be I am doing something silly but plz bare with me.

Thanks in advance.

Regards,

Tanu.

: tanu    Reply

profile
KINGSLEY TAGBO

Tanu :

I would post a brief reply now and a more detailed reply later .

Firstly: I used Visual Studio .NET Trial edition some time again and everything worked fine until I tried to build a Setup and Deployment Project. Then I had errors!!!

I tried a few reasonable things and the errors persisted. I then used the Project - Copy Project option which worked.

Later, I bought a copy of Visual Studio .NET and believe me, I compiled again on the same machine and I got not one errror message. I deployed the application and the deployment went very well. At that time I summarized that the Visual Studio .NET Trial Edition may have limited my deployment options.

To create a Virtual Directory, you should set the Virtual Directory property of the Web Application Folder in the Setup Project to the name of your Virtual Directory .

Later, in the day, I would try and post a more detailed guide to deployment using Visual Studio .NET

However, feel free to ask any questions that you want to ask about Visual Studio .NET deployment or any other aspect of .NET Software Development.

Thanks


Hello Kingsley,

Thank you so much, you are not going to believe me ....I am so happy. The copy project worked very very best...I got my stuff on net. I was so desperate to do this ...and with your help I did it...once again thank you so much. But now I am wondering why I didn't find this option anywhere...

While copying I use the option "copy files which required to run the project" , I think I don't want much on server.

I recently attended a training by microsoft on .net, so they gave us an evaluation copy of visual studio .net...I will try on that now the websetup project ... I hope that also will workout.

Hey plz surely post some more about deployment. I am still inetrested in knowing more about web setup templet.

Thank you for letting me ask all the questions.

Regards,

Tanu.

: tanu    Reply

Hello Kingsley,

I have 3 text boxes on my web page and I want to send the information they have to some mail-id. So in code behind CLICK button ...I create an object of class MailMessage and then set 'From' , 'To' , 'Subject' and 'Body' property of that class. After this I use 'send' method of SmtpMail class. Then I set the text property of all TextBoxes to null (by using "")...so that after clicking on send ...textbox becomes clear but it is not happening.

I am getting the mail but not what I thought I will. By chance the format I was using in the body property of MailMessage was the same which appears on web page too. Now I am changing the format of body of MailMessage but nothing is happening...I am getting the same format..like first time or like on web page.

Can you plz help me once again.

Thanks in advance.

Regards,

Tanu.

: tanu    Reply

profile
KINGSLEY TAGBO

Dear Tanu :

Set the System.Web.Mail.MailMessage.BodyFormat class member to one of these enumerations .

BodyFormat = MailFormat.Html to display to display the body of an email message as Html

and

BodyFormat = MailFormat.Text to display the body of an email message as Text

Thanks,

Tell me if you need more help


Hello Kingsley,

No this can not be the problem as I am not able to enter in my click event...so whatever I am changing there ...no effect on output. How I knew about this..... I put a breakpoint in my click event as I was interested in knowing where different formats and values are going? So I put breakpoint in click event but as soon as I run that ...program was unable to hit the breakpoint. Message is coming on breakpoint that "The breakpoint will not currently be hit. No symbols have been loaded for this document."

I checked my dll and pdb file is together in bin directory. But u know first that bin dir. was excluded from the project so I include that too. But no success...I am thinking that may be my debugger is not attached to all processes...so now what do I have to do? I tried to attache but this thing is not clear to me. One more thing I am working in debug mode not in release mode so basically debugger must be attached....plz help me what to do here?

Thanks in advance.

Regards,

Tanu.

: tanu    Reply

profile
KINGSLEY TAGBO

Tanu :

If you are not able to enter the Click Event, these could be a few of the potential problems :

A. You may not have a valid Handler for the Click Event

B. Is your form posting back?

C. When you compile the application, are you getting a clean compilation or do you have compilation errors?

d. What kind of page architecture are you using : Is the code and html on the same page or are you using a code-behind class

e. Have you tried using plain old Response.Write() instead of the debug statements. Place Response.Write() in different places in your code or page and try and trace the execution of the code up to the point where it fails.

I hope these will help somewhat


Hello Kingsley,

It's me again with another problem. I was wondering is there any way in visual studio.net to pass args[0] value while debugging in VS.net.

Actually for passing command line argument I have to go on console and run the file there with those arguments, now I don't want to go outside to do this, so is there any way I can give value to args[0] .

I tried to just run my example program by using Debug -> start without debugging and I got this error that "Index was outside the bounds of the array. Error: Factory name is not entered". And if I try from command prompt using,

e:> abc.exe "value1"

it is running perfectly. So tell me what can I do here.

Thanks in advance.

Regards,

Tanu.

: tanu    Reply

profile
KINGSLEY TAGBO

To deploy an ASP.NET application using 'Project -> Copy Project', FrontPage

Server Extensions must be present on the Server that will host the

application.

The methods for deploying a Web Application include XCopy, Copy

Project and Web Setup Project.

When using the Copy Project option, you can

use a web access method of FrontPage or File share .

Visual Studio .NET provides 6 editors :

1. File System

2. Registry

3. User Interface

4. Custom Actions

5. Launch Conditions


Hi Kingsley,

I am trying to upload my web application which is successfully running on my machine. I am using visual studio .net doe developing and deploying my application.

I uploaded the msi, setup.ini and setup.exe files on the target computer and when I am executing the setup.exe I am getting the error :-

The loader didn't find the file " C:Docum~1Admin~1Locals~1TempDSPE.INI "

When I searched this Temp directory...I didn't find even the Locals~1, so plz tell me where am I doing wrong? I have the .net platform on my target machine.

Thanks in advance.

Regards,

Tanu.

: tanu    Reply

profile
KINGSLEY TAGBO

Hi Tanu :

What is the name of your Visual Studio .NET project. What version of Visual Studio .NET are you using.

In the setup and deployment project that you created, do you have any file called DSPE.INI ?

Did you setup a virtual directory for the installer and set the Virtual Directory Execute Permissions to Scripts and Executables?

Would you like to use the Project - Copy Project option, which is simpler .



Post A Reply

 Questions & Answers