Hi, I have a solution set up in .Net with a website. Each page is written in aspx and each code behind file are in the format of aspx.cs. For some reason when I build the solution it builds successfully although does not compile these code behind files to a dll assemby. Therefore when I try to delete the aspx.cs files the site fails because it cannot find them.

I have the following tag at the top of a sample aspx page:

<%@ Page Language="C#"  meta:resourcekey="AdditionalDocumentationPage" AutoEventWireup="true" CodeFile="AdditionalDocumentation.aspx.cs" Inherits="Shell_AdditionalDocumentation" MasterPageFile="~/Shared/Default.master" %>

And each code behind file starts as follows:

public partial class Shell_AdditionalDocumentation : System.Web.UI.Page, IAdditionalDocumentation

Recommended Answers

All 2 Replies

to precompile your web application just use the aspnet_compiler located in your .Net Framework

C:\Windows\Microsoft.Net\Framework\V1.0.3705 - .Net 1.1 framework
C:\Windows\Microsoft.Net\Framewrok\V2.0.50727 - >Net 2.o framework

aspnet_compiler -v /YourVirtualDirectory -p /Source /Destination

I had to install and use Visual Studio Web Deployment Projects

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.