|
Subject:
|
Deploying Web App to Internet (what files!!)
|
|
Posted By:
|
ocarroll
|
Post Date:
|
9/22/2004 1:49:47 AM
|
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.
|
|
Reply By:
|
eraldov
|
Reply Date:
|
9/22/2004 3:57:00 AM
|
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.
|
|
Reply By:
|
stu9820
|
Reply Date:
|
9/22/2004 7:13:00 AM
|
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.
|
|
Reply By:
|
katsarosj
|
Reply Date:
|
9/22/2004 7:33:57 AM
|
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
|
|
Reply By:
|
ocarroll
|
Reply Date:
|
9/22/2004 5:34:35 PM
|
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".
<!-- Web.Config Configuration File -->
<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.
<!-- Web.Config Configuration File -->
<configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>
|
|
Reply By:
|
ocarroll
|
Reply Date:
|
9/22/2004 6:00:16 PM
|
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
|
|
Reply By:
|
ocarroll
|
Reply Date:
|
9/22/2004 8:52:40 PM
|
Hi,
I have solved my problems.
Thanks for all your help
Kerry O'Carroll
|
|
Reply By:
|
planoie
|
Reply Date:
|
9/23/2004 11:01:44 AM
|
Care to share? (To help someone else if they read this thread.)
|
|
Reply By:
|
ocarroll
|
Reply Date:
|
9/24/2004 4:39:34 PM
|
Hi,
I solved my problem by using the 'Copy Project' option and it worked fine.
Regards
Kerry O'Carroll
|