ftp access?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ed

    #1

    ftp access?

    Will .Net work with just FTP access?

    I created a web form with a code behind, uploaded it to an existing website
    via ftp. I try to access the web form page and get an error about not being
    able to load the instance of the code I created.

    The first line has this:

    <%@ Page language="c#" Codebehind="int ro.aspx.cs" AutoEventWireup ="false"
    Inherits="mypro ject.myclass" %>

    The error says it can't load myproject.mycla ss which is defined in
    intro.aspx.cs.

    How do I fix this?

    Thanks,

    Ed


  • Feroze [msft]

    #2
    Re: ftp access?

    If I understand you correctly, you used FTP to upload your webform, and then
    tried to access it using the browser with HTTP prototocol ( not FTP ) and
    you got this error?

    It seems to me that the application is not able to instantiate your
    "myproject.mycl ass" type. Most probably, that type is contained in the
    codebehind file intro.aspx.cs, or in another DLL.

    You need to make sure you upload all your application dependencies.

    --
    feroze

    -----------------
    This posting is provided as-is. It offers no warranties and assigns no
    rights.

    See http://weblogs.asp.net/feroze_daud for System.Net related posts.
    ----------------

    "Ed" <Ed@discussions .microsoft.com> wrote in message
    news:360EB4A5-BD9F-4F66-92A0-0B2FD2D4F722@mi crosoft.com...[color=blue]
    > Will .Net work with just FTP access?
    >
    > I created a web form with a code behind, uploaded it to an existing
    > website
    > via ftp. I try to access the web form page and get an error about not
    > being
    > able to load the instance of the code I created.
    >
    > The first line has this:
    >
    > <%@ Page language="c#" Codebehind="int ro.aspx.cs" AutoEventWireup ="false"
    > Inherits="mypro ject.myclass" %>
    >
    > The error says it can't load myproject.mycla ss which is defined in
    > intro.aspx.cs.
    >
    > How do I fix this?
    >
    > Thanks,
    >
    > Ed
    >
    >[/color]


    Comment

    Working...