Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

.NET problem - Server Error

  • 25-03-2011 11:54AM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 2,781 ✭✭✭amen


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

    Are they in the same directory ?


  • Registered Users, Registered Users 2 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, Registered Users 2 Posts: 2,793 ✭✭✭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, Registered Users 2 Posts: 3,992 ✭✭✭Korvanica


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

    Seems like its not compiling it properly....


  • Registered Users, Registered Users 2 Posts: 2,793 ✭✭✭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, Registered Users 2 Posts: 3,992 ✭✭✭Korvanica


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

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


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


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


Advertisement