Why does build go to temp folder?

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
 
M

Mark Fitzpatrick

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top