Publishing "Hello World!"

G

Greg Smith

I am making the step from windows to web. The final destination is our
production server running Server 2003 Web Edition.

I am having problems using the BUILD | PUBLISH WEB SITE option. What are
the basic steps to publish a simple web site? All examples I can find use
the local server.

I am looking for something like.

1. Create a "New web site" selecting the "File System" option.

2. Add a lable and change the text "Hello World!".

3. Test run the site.

4. Select the BUILD | PUBLISH WEB SITE option form the main menu.
(but first?)
(what's next?)



Any help is greatly appreciated.
 
R

Rob Meade

...
4. Select the BUILD | PUBLISH WEB SITE option form the main menu.
(but first?) (what's next?)

I'm using Visual Studio 2005, I think you are too juding by the
description - might be wrong, but I do the following...

In the popup window ("Publish Web Site") - you need to enter a target
location - so, if you had another PC on your local network that you could
test it on you could use that, or if you have access to the server then you
could enter the path for that...

http://www.your-web-site.com for example, or perhaps..

\\colleaguesPC\your-site etc..

I typically run with the default options on that screen (mainly because I've
not read up what they actually do yet and put faith in the developers of
Visual Studio 2005! :eek:)

At the moment, I am publishing my content to my own server up in the loft,
I'm using a UNC path as my target locations..

\\titus\e$\webs\www.testsite.co.uk\

etc...

If the site is already configured in IIS on the server then it'll just
publish away, maybe ask you about over writing files etc....if its a new
site then it'll probably set it up in IIS for you automatically, however it
might not set it up as an "application" - so you might need to log in to the
server and adjust some settings in IIS for your newly formed website -
without more details about your server its obviously difficult to advise.

Hope the above helps...

Regards

Rob
 
G

Greg Smith

Rob Meade said:
...


I'm using Visual Studio 2005, I think you are too juding by the
description - might be wrong, but I do the following...

In the popup window ("Publish Web Site") - you need to enter a target
location - so, if you had another PC on your local network that you could
test it on you could use that, or if you have access to the server then
you could enter the path for that...

http://www.your-web-site.com for example, or perhaps..

\\colleaguesPC\your-site etc..

I typically run with the default options on that screen (mainly because
I've not read up what they actually do yet and put faith in the developers
of Visual Studio 2005! :eek:)

At the moment, I am publishing my content to my own server up in the loft,
I'm using a UNC path as my target locations..

\\titus\e$\webs\www.testsite.co.uk\

etc...

If the site is already configured in IIS on the server then it'll just
publish away, maybe ask you about over writing files etc....if its a new
site then it'll probably set it up in IIS for you automatically, however
it might not set it up as an "application" - so you might need to log in
to the server and adjust some settings in IIS for your newly formed
website - without more details about your server its obviously difficult
to advise.

Thank you for your response.

Sadly it is the Sever end of it that is my hang up.

I was hoping for the steps to do that. It is a Windows 2003 Web Edition
Server that is up and running and hosting other web applications.
 
R

Rick Strahl

Hi Greg,

If your site is really simple the easiest thing is to deploy everything to
the server directly. I would stay away from the Publish option as it doesn't
work very well for sending things up to a server. Instead use a standard FTP
client to upload your files to the server.

Deployment in ASP.NET 2.0 has gotten a lot more complex. The above is an
easy way, but it's not the most secure since source code goes to the server.
You can also precompile your Web site and deploy the output from the
Pre-Compiler. You can use the Publish WebSite feature for that - publish the
site to a directory and then send the contents of that directory to the
server via FTP (again I recommend to do this manually as opposed to lettting
the Publish tool FTP for you).

Finally there's Web Deployment Projects (works only in Visual Studio not
VWD) which can compile your site into a single assembly (and some .compiled
files) that you can deploy in the BIN directory of your Web application on
the server.

http://msdn.microsoft.com/asp.net/reference/infrastructure/wdp/


Hope this helps,

+++ Rick ---

--


Rick Strahl
West Wind Technologies
http://www.west-wind.com/weblog
http://www.west-wind.com/wwThreads/
 
R

Rob Meade

...
Sadly it is the Sever end of it that is my hang up.

I was hoping for the steps to do that. It is a Windows 2003 Web Edition
Server that is up and running and hosting other web applications.

So its just a case of instructions for configuring IIS (Internet Information
Service) that you are after?

Regards

Rob
 
G

Greg Smith

So its just a case of instructions for configuring IIS (Internet
Information Service) that you are after?

Yes Rob, I think it is probaby the bottom line.

One other strange occurence. My publication were failing. I loaded Visual
Studio 2005 on another machine and attempted to publish. On THAT machine I
was probted for login information and after that the publish succeeeded. Do
you have any idea why that might happen?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top