The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

ASP.NET problem

JasconiusJasconius sword criminalmad onlineRegistered User regular
edited May 2007 in Help / Advice Forum
I seem to be having a problem with a VB.NET web application.

I have a main page (aspx) and a code file (aspx.vb)

For some reason when I upload these two files to my webserver I get the following error

http://jasconius.net/sssclass/week3.aspx

Here is the code

http://www.jasconius.net/sssclass/week3.txt


I changed the original class name and inherets to _Default for debugging purposes (though it didn't work under it's original class name either)

The wierd part here is that it works fine on my local machine, but not on the web server.

I'm assuming some dumb configuration thing here with my hosting, I use 1and1 hosting, but does anyone see anything out of the ordinary?

this is a discord of mostly PA people interested in fighting games: https://discord.gg/DZWa97d5rz

we also talk about other random shit and clown upon each other
Jasconius on

Posts

  • blincolnblincoln Registered User regular
    edited April 2007
    I think you need to make the sssclass folder its own application in IIS. I'm not sure how you'd do that with a host like that though.

    blincoln on
    Legacy of Kain: The Lost Worlds
    http://www.thelostworlds.net/
  • SpackleSpackle Registered User regular
    edited April 2007
    Hmmm

    I thought with a ASP.NET application you complie the project in 'Release' mode which creates a DLL that resides in a bin folder under the home folder of your aspx files.

    I've never uploaded both aspx and aspx.vb, just the DLL and the aspx files.

    Spackle on
    Taco Bell does win the franchise war according to the tome of knowledge that is Demolition Man. However, I've watched Demolition Man more then a few times and never once did I see WoW. In conclusion Taco Bell has more lasting power then WoW.
    D&D Metal Thread: HERE
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    edited April 2007
    Yeah but the application should be compiling on the web server and creating that DLL there, should it not?

    My classmates have had success with uploading just the file and codefile and having it work.

    Jasconius on
    this is a discord of mostly PA people interested in fighting games: https://discord.gg/DZWa97d5rz

    we also talk about other random shit and clown upon each other
  • AngelHedgieAngelHedgie Registered User regular
    edited May 2007
    Try replacing line 1 with this:
    <&#37;@ Control PageLanguage="vb" AutoEventWireup="false" CodeBehind="/sssclass/week3.aspx.vb" Inherits="Week3" %>
    

    EDIT: All I did was add the Control tag name, so that ASP.NET will realize that the ascx file defines a control, and parse it properly.

    AngelHedgie on
    XBL: Nox Aeternum / PSN: NoxAeternum / NN:NoxAeternum / Steam: noxaeternum
  • blincolnblincoln Registered User regular
    edited May 2007
    Jasconius wrote: »
    Yeah but the application should be compiling on the web server and creating that DLL there, should it not?

    Not unless you're doing your hosting in a really weird way.

    AngelHedgie's suggestion might work, but if it doesn't try either making the folder an application like I said (so that IIS treats sssclass as the root path for this app instead of the top-level folder), or putting it at the root level.

    blincoln on
    Legacy of Kain: The Lost Worlds
    http://www.thelostworlds.net/
Sign In or Register to comment.