Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 22nd, 2004, 01:49 AM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default Deploying Web App to Internet (what files!!)

Hi,

How do I deploy my app to the web. I have written a small test program which all it does is display a label.

My directory is called c:\inetpub\wwwroot\webtest
Can I just copy all files in this directory using FTP to my web server or do I have to use XCOPY. If I do, how can you use XCOPY with FTP.

What are the minimum files need to copy across?

If I use 'code behind', do I have to FTP all my .vb files across?

I am stuck and just starting to learn.
__________________
Kerry O\'Carroll
 
Old September 22nd, 2004, 03:57 AM
Registered User
 
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I dont really know for vb applications but for c# application the only files you have to upload are: the .ddl file in the bin directory and the .aspx file.

 
Old September 22nd, 2004, 07:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

It's the same for both languages. I simply FTP my files to the web server. Make sure you have a virtual directory set up or it's a 'web site' that you're putting your files in.

If you compiled your code you do not need to send the .vb files to the server.

 
Old September 22nd, 2004, 07:33 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

If this is a web server that you control (and it sounds like it is), you can copy the .aspx files, the web.config file, and the bin folder. Any additional folders/files that need to be included can also be copied.

Make sure also in IIS that you have the folder where you put all of this set as an application.

J
 
Old September 22nd, 2004, 05:34 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Help!!

I copied the files WebTest.aspx and WebTest.dll to the webserver by using FTP and I get the following error message: Any suggestions?

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".




<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.




<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
 
Old September 22nd, 2004, 06:00 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I forgot to mention, I don't need help with the error on the message, the problem is why did I get an error in the first place. Is there something else I must do to deploy this app. When I ran it, I typed /webform1.aspx in my web browser.

Kerry
 
Old September 22nd, 2004, 08:52 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I have solved my problems.

Thanks for all your help

Kerry O'Carroll
 
Old September 23rd, 2004, 11:01 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Care to share? (To help someone else if they read this thread.)
 
Old September 24th, 2004, 04:39 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I solved my problem by using the 'Copy Project' option and it worked fine.

Regards

Kerry O'Carroll





Similar Threads
Thread Thread Starter Forum Replies Last Post
Deploying to sun app server markwestcott J2EE 8 December 28th, 2005 03:00 PM
Deploying Internet Transfer Control in ASP alonsoca Classic ASP Professional 0 November 29th, 2003 07:13 PM
Permissions for Web app. files on Web server Jan_Ma Classic ASP Basics 0 June 28th, 2003 02:06 PM
Permissions for Web app. files on server Jan_Ma All Other Wrox Books 0 June 28th, 2003 02:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.