Compile time in .Net 3.5
I am developing a web application. When I build my application I see the "Build Succeeded" statement in the status bar, even the object declaration syntax is incorrect in the aspx.cs file. I cleaned the solution again, I tried to rebuild the app. But I was not wrong. If I add any block of code on this page, it fails at runtime.
0
gopalakrishnan
source
to share
2 answers
It is difficult to assess the exact situation without seeing the structure in the Visual Studio solution. Can you verify that the .aspx page you are working on has its page directive tag pointing to the correct .aspx.cs code file that you are modifying?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="I_AM_MODIFYING_THIS_PAGE.aspx.cs" Inherits="I_AM_MODIFYING_THIS_PAGE" %>
0
source to share