Why does build go to temp folder?

  • Thread starter Thread starter brett
  • Start date Start date
B

brett

When I build my project, the DLL goes into

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\102006\30f01177\e8169329\assembly\dl3\72d6e433\58abb7ce_4ff4c601\mywebsite.DLL.

The website runs fine on my local machine but when I upload files to
the server, I get this error:

Server Error in '/' 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 '/index.aspx.cs' does not exist.

Source Error:

Line 1: <%@ Page language="c#" Inherits="mywebsite.index"
CodeFile="index.aspx.cs" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"Line 3: <HTML>

Source File: /index.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.210


Any ideas what is causing both of these?

Thanks,
Brett
 
When you are uploading, are you uploading the .cs files as well? The VS.Net
2005 web projects build things just in time. You have to specify a
pre-compiled web in order to publish. You can also use the web deployment
projects at http://www.asp.net/downloads/default.aspx?tabid=62 to help
pre-compile.

The compilation of the web site is not the same as it was in the VS.Net 2003
web project. It gets compiled dynamically in a sense so, by default, the
project needs the .cs files present unless you use a method such as a web
deployment project, or convert to the new web application project (for
download at the same link above) that was designed to create a project that
works as the old vs.net 2003 web project did.
 
Back
Top