If Uploading by FTP, what are the minimum files required to run a VS2003 Web project

Discussion in 'Visual Studio' started by Dave, Apr 4, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi Jason,

    Thanks for the help. I was hoping it was just a matter of simply copying files over. I'd like to avoid the FP extensions route (e.g. Copy Project
    from within VS) until I understand how the directories work. Funny I can't get it working though, since to be conservative, I pretty much copied
    everything over to my @DASP domain.

    I must have made a small error somewhere. I'll try again later this morning. It might have something to do with my directory setups. Right now,
    I have my main webpage login (index.html) in my root directory, with my VS WebApp sitting in another folder within the root. To test it out,
    I'm simply entering http://www.mydomain.com/MyFirstApp/MyFirstApp.aspx. (sorry again, the real app is called "WebTime")

    I'm thinking that
    maybe I can't locate my WebApp in a subdirectory, e.g., the "MyFirstApp.aspx" file has to be in the root?

    Oh Well,..if you think I might be doing something wrong along the lines of trying to start my app from a directory beneath the root, or maybe I'm
    missing a "permissions" setting, please let me know.

    I appreciate the work you guys do. I'm hoping some other dweeb out there can watch and learn from this simple problem.

    -Dave
     
  2. I checked the forum but couldn't find what I was looking for.

    After seeing all the potential problems in using FP extensions to upload a web application to discountasp.net, I decided to monkey around and see if I couldn't just FTP my project with IE6.0. (Actually, being crudgemugen, I actually prefer manual uploads like ftp)

    My question is this. When you create a simple, 1-page ASP.Net Web Application (lets call it MyFirstApp), VS creates a good number of files in the folder located at C:\Inetpub\wwwroot\MyFirstApp including the following:

    AssemblyInfo.vb
    Global.asax
    Global.asax.resx
    Global.asax.vb
    Styles.css
    Web.config
    MyFirstApp.aspx
    MyFirstApp.aspx.vb
    MyFirstApp.vbproj
    MyFirstApp.vbproj.webinfo (i didn't upload this since it referenced a path on my local computer)

    VS also creates a "bin" folder at the same level as these files which contains (after compilation):
    MyFirstApp.dll
    MyFirstApp.pdb


    My question is this,..if I simply ftp the folder "MyFirstApp" which contains all of the above to my root directory at DiscountAsp.net,..will my project work by simply entering www.mydomain.com/MyFirstApp.aspx

    (obviously, I tried this,..and it didn't work), ...I got this error message:

    Any suggestions. I'm probably making a simple mistake.


    Server Error in '/' Application.


    Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Could not load type 'WebTime.WebTimer'.

    Source Error:





    Code:
    Line 1:  <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebTime.aspx.vb" Inherits="WebTime.WebTimer" EnableSessionState="False" enableViewState="False"%>
    Line 2:  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    Line 3:  <HTML>
    Source File: E:\web\autogetdata\htdocs\WebTime\webtime.aspx Line: 1



    Version Information:Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
     
  3. oops,..regarding the error message,..my application wasn't really called "MyFirstApp",..but rather WebTime...

    sorry for the mistake,....the question still remains though,..what am I doing wrong in regards to my attempt to
    manually FTP files created by VS2003?

    Thanks in advance.

    Dave
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    1) check if 'WebTime' setup as a web application in the web app manager in the control panel

    2) Check if WebTime.WebTime.dll is in /webTime/bin directory

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. [​IMG]that was it. Thanks Bruce.

    For other dweebs like me who are just starting out trying to run a VS2003 Web application from DASP.net by simply FTPing files:

    Once you've FTP'd your files over (I uploaded everything,..but Jason's post indicates this isn't necessary), be sure to use
    the Web Application tool in the control panel to select the application's folder and then "install" the application.

    This looks like the only way to get "htdocs" into the application's path as the error message would seem to indicate??


    Thank you for the help Bruce and Jason.
     
  6. opps,...sorry about the emoticon,...I meant smileys all the way!!

    [​IMG][​IMG] [​IMG] [​IMG] [​IMG] [​IMG] !!
     
  7. Did you try to use COPY PROJECT feature of VS 2003?

    It's quite handy when you enabled FrontPage Ext. on your account. however, I decided to use simple FTP to upload all necessary files only to the web server

    Jason
    Technical Support/IT Admin/MIS Developer
    Maxtop Enterprises Inc.
    http://www.maxtop.ca</CODE>
     
  8. As my experience, the following files are necessary files:

    All .aspx ext. files

    Styles.css
    Web.config
    .vbproject ext. file

    MOST IMPORTANTLY

    .dll file(MyFirstApp.dll) in the bin folder ( copy this folder to your web server @ DASP)

    *Note: MyFirstApp.pdb file is your web app. Program Debug Database file which will be referenced when you run your app in your develop machine in debug mode (F5)


    That's all the files I uploaded to my DASP account...and it works..


    Hope it helps....!

    Happy development![​IMG]

    Jason
    Technical Support/IT Admin/MIS Developer
    Maxtop Enterprises Inc.
    http://www.maxtop.ca</CODE>
     
  9. /emoticons/smile.gif We all learn from each other .....

    Congrats DSA...!


    Another point I wish you to point out...

    It adds a bit more security for your web app if you don't upload the source code pages such as ...aspx.vb ...and like ...


    from a security point of view....

    Jason
    Technical Support/IT Admin/MIS Developer
    Maxtop Enterprises Inc.
    http://www.maxtop.ca</CODE>
     
  10. Good for you....

    I still have to upload those aspx pages just to fullfill my part of contract agreement.
    --provide flexibility of modifying the appearance of the web site by other designer/developper.

    Mission accomplish! It's time to go back to the place I came from...


    A life of a free lance software product developper...
    [​IMG]

    Jason
    Technical Support/IT Admin/MIS Developer
    Maxtop Enterprises Inc.
    http://www.maxtop.ca</CODE>
     
  11. There are two simple reasons I chose being a free-lance contract tech person

    1.Annoying and know-nothing-about-technology marketing people
    ps. they will always say "Could you make this change to our web site / software? I think it should be easy,right?"

    2.Top management non-techy people (as you refer to as "expensive knowledgeable managers")
    ps. they will give you short notice of changes to whatever you are developping and a time constrain.[​IMG]


    [​IMG]



    Jason
    Technical Support/IT Admin/MIS Developer
    Maxtop Enterprises Inc.
    http://www.maxtop.ca</CODE>
     
  12. [​IMG]Jason,

    Thanks for the security info regarding which files are uploaded.

    FYI,

    I found out (through only a little bit of experimentation) that the only files/folders
    I need to upload are:

    Styles.css
    WebTime.aspx
    bin (which contains WebTime.dll)

    (I plan not to upload the others, due to the security issue you mention as well as,..hey,.it takes time &amp; space!!)

    Thanks all!!
     
  13. hmm,..didn't think about that. makes sense though!

    I envy your "free lance" status. It's taken me 15 yearsof sloooowly working"up"
    a corporate ladder to realize that the top is only filled with
    expensive people who only know other expensive people,...andnot much
    else.[​IMG]

    Keep up the free-lance,..and get rich$$. (hopefully [​IMG] ) Who knows,..if I can get my
    current project up and running,..maybe my "knowledgeable' managers will actually give
    me a budget to hire someone like you!!

    Thanks for everything!
    Dave
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page