1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Hosting an asp.net website for the first time need help

Discussion in 'C#' started by electron, Dec 22, 2007.

  1. #1
    hi friends, i am making an asp.net website and i made a page and tried to upload it on my domain, but its not working.

    Let me know if i need to configure some settings.

    TIA :)
     
    electron, Dec 22, 2007 IP
  2. electron

    electron Well-Known Member

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #2
    I made some changes in the web.config file and now i am able to see the error.

    It goes something like this :

    
    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: The file '/site.master' does not exist.
    
    Source Error:
    
    [COLOR="Red"]Line 1:  <%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="trail.aspx.cs" Inherits="trail" Title="Untitled Page" %>[/COLOR]Line 2:  <asp:Content ID="Content2" ContentPlaceHolderID="titleholder" Runat="Server">
    
    Code (markup):

    I don't know why it is showing this error even when i have site.master in the same directory.

    Please help me solve this problem.

    TIA
     
    electron, Dec 23, 2007 IP
  3. heyman

    heyman Peon

    Messages:
    70
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    master pages are a feature of asp.net 2.0. did you ensure that you have configured your site to use asp.net 2.0 and not asp.net 1.1?
     
    heyman, Dec 23, 2007 IP
    electron likes this.
  4. electron

    electron Well-Known Member

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #4
    First of all .... thanks a lot for replying. Rep Added :)

    how do i check if my site is configured to use asp.net 2.0 or not ??

    TIA
     
    electron, Dec 23, 2007 IP
  5. heyman

    heyman Peon

    Messages:
    70
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    is it is a shared server - generally there is a option in the hosting panel which tell you whether your site is running under asp.net 2.0 or 1.1

    if it your own server - go to iis manager and right click on the site - properties and check the ASP.NET tab
     
    heyman, Dec 23, 2007 IP
  6. electron

    electron Well-Known Member

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #6
    electron, Dec 23, 2007 IP
  7. heyman

    heyman Peon

    Messages:
    70
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Try replacing the tilde before ~/site.master with a period ./site.master.
     
    heyman, Dec 23, 2007 IP
  8. electron

    electron Well-Known Member

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #8

    I did as you said, now its giving some other error :

    you may view it at :

    http://womenslabel.com/electron/trail.aspx

    TIA :)
     
    electron, Dec 24, 2007 IP
  9. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #9
    Try building your website and then upload your App_code folder.
     
    qazu, Dec 24, 2007 IP
  10. locdev

    locdev Active Member

    Messages:
    171
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #10
    check if you have the /bin folder and contents on your hosting the same as local.
     
    locdev, Dec 24, 2007 IP
  11. electron

    electron Well-Known Member

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #11
    On my coputer the bin folder contains :
    App_Web_g2t_4gfc.dll(3.5kb) & App_Web_wislfc4z.dll(4 kb)

    On the server the bin folder contains :
    App_Web_rkv5rvhx.dll(3.5kb) & App_Web_dyyl9edk.dll(4kb)

    The error is :

    Parser Error Message: Could not load the assembly 'App_Web_dyyl9edk'. Make sure that it is compiled before accessing the page.

    The error contains the same file name as the file in the bin folder(on server).

    You may view the error on : http://www.womenslabel.com/electron/trail.aspx

    Looking forward for your reply .. thanks for your time:)
     
    electron, Dec 24, 2007 IP
  12. locdev

    locdev Active Member

    Messages:
    171
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #12
    as I understand you host on shared hosting womenslabel.com is your domain. right?
    questions:
    1. is electron a virtual application folder? (it is not if you just created it by ftp or copy)
    2. if #1 yes - the bin folder should be under wwwroot/electron/ if #1 NO - the bin folder should be under wwwroot/

    As of ther error you experienced in post #1 I think that electron/ is not a virtual folder
    you have 2 options (try #2 first ;) )
    1.make it virtual folder in control panal (if your hoster allows it)
    or
    2.move bin/ folder, web.config and maybe also the master page files (.master and .master.cs) into wwwroot/ (one folder up)

    Report results :)
     
    locdev, Dec 24, 2007 IP
    electron likes this.
  13. electron

    electron Well-Known Member

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #13
    Well thanks all........i got the problem now. .. ... ... ..... the pages are working fine now ..... All i had to do was to create a virtual directory.

    I still don't no how this thing works but it's ok as long as it works ;)

    Rep Added for all, you guys do a wonderful job of helping new people like us.

    Hopefully i would be able to give back what i learn in a few months.

    Cheers ! ! ! !
     
    electron, Dec 24, 2007 IP