troubleshooting Question

Server Error in Application: The file [filename] does not exist

Avatar of tjgquicken
tjgquicken asked on
.NET ProgrammingASP.NET
1 Comment1 Solution1619 ViewsLast Modified:
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.
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 '/default/Interactive/default.aspx.cs' does not exist.

Source Error:

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/default.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?

Thanks,
Jay
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros