Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

.NET problem - Server Error

Options
  • 25-03-2011 12:54pm
    #1
    Registered Users Posts: 3,992 ✭✭✭


    OK so im working away on a new feature for an application im working on.

    Using VS 2008, have the feature working perfectly when I run it from VS. But when I deploy it to the server I get the following error:
    Server Error in '/FE' 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 '/FE/Asp/CCJTLTCodes/JTLTcode_add.aspx.cs' does not exist.
    
    Source Error: 
    
    
    Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="JTLTcode_add.aspx.cs" Inherits="JTL_Reasoncode1_add" MasterPageFile="~/Site.master" %>
    Line 2:  
    Line 3:  
     
    
    Source File: /FE/Asp/CCJTLTCodes/JTLTcode_add.aspx    Line: 1 
    
    
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618
    

    It cant see the codefile, even though everything built successfully and was tested and worked grand before being deployed..

    Anyone have any ideas?


Comments

  • Registered Users Posts: 2,781 ✭✭✭amen


    Did you copy up the CS file alone with the aspx file?

    Are they in the same directory ?


  • Registered Users Posts: 180 ✭✭Collumbo


    the other option is to use precompiled code... generally you don't see this type of problem when you use that. all you need then is a DLL for each page, and marker page with the aspx extension. makes for a faster website too as there's less overhead on the server


  • Registered Users Posts: 2,791 ✭✭✭John_Mc


    Use the publish feature in VS2008. It will compile everything into DLLs and the files you need into a folder. Upload that to your server and you should be in business.

    This is the best way to handle deployment


  • Registered Users Posts: 3,992 ✭✭✭Korvanica


    Thats what ive been doing, and im getting the above error...

    Seems like its not compiling it properly....


  • Registered Users Posts: 2,791 ✭✭✭John_Mc


    Korvanica wrote: »
    Thats what ive been doing, and im getting the above error...

    Seems like its not compiling it properly....

    Goodstuff - you're doing it right :)

    If you look at the properties of the file and compare it to others that are working, are there any differences in the Build Action field?


  • Advertisement
  • Registered Users Posts: 3,992 ✭✭✭Korvanica


    Seems to be the same as all the rest of the working files.

    *.aspx - content
    *.aspx.cs - compile


  • Registered Users Posts: 3,992 ✭✭✭Korvanica


    Got it working, rebuilt and republished and rebooted... working now....


Advertisement