I just migrated my web application from ASP.NET 1.1 to 2.0, and I am getting the following error message when I try and run it:
Server Error in '/default/Interactive' Application.
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 '/default/Interactive/defa
s' does not exist.
Line 1: <%@ Page CodeFile="default.aspx.cs"
Language="c#" AutoEventWireup="True" Inherits="KJI.IF._default"
Line 2: <html>
Line 3: <head>
Source File: /default/Interactive/defau
lt.aspx Line: 1
What I'm doing is manually changing all the CodeBehind attributes in the @Page directive to CodeFile attributes, as Microsoft recommends (http://msdn2.microsoft.com/en-us/library/ms227671.aspx
). The conversion wizard already changed my 1.1 classes to 2.0 partial classes. I built the solution in 2.0 with Visual Studio 2005 and uploaded the resulting .dll file to the bin directory on my server.
I've noticed that my application (this web form, anyway) will work if I upload the default.aspx.cs file to the server... but that doesn't seem like an appropriate solution. I thought the whole point of the .aspx.cs file was to avoid having to deploy the application code on the server. Does anybody know how I'm supposed to deploy this?