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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

.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