By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,463 Members | 2,858 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,463 IT Pros & Developers. It's quick & easy.

Publishing "Hello World!"

P: n/a
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.
Jul 26 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"Greg Smith" wrote ...
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! :o)

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

Jul 26 '06 #2

P: n/a

"Rob Meade" <te*********************@edaem.bborwrote in message
news:rt*******************@text.news.blueyonder.co .uk...
"Greg Smith" wrote ...
>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! :o)

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.

Jul 26 '06 #3

P: n/a
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/re...structure/wdp/
Hope this helps,

+++ Rick ---

--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/weblog
http://www.west-wind.com/wwThreads/
"Greg Smith" <gj*@umn.eduwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>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.
Jul 26 '06 #4

P: n/a
"Greg Smith" wrote ...
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
Jul 26 '06 #5

P: n/a
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?
Jul 27 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.