Hi, ewolfman.
Your question intrigued me, so I created a new app
with just 2 files and a global.asax and web.config.
I then published the website to a physical directory,
and created a virtual directory in IIS.
I copied the files in the physical directory to the physical dir
to which the virtual dir points to...and everything runs OK.
The original default.aspx directive reads :
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" inherits="_Default" %>
I checked the default.aspx directive after publishing the site, and it reads :
<%@ page language="C#" autoeventwireup="true" inherits="_Default, App_Web_he6czt8r" %>
just like yours does ( with different names, of course ).
default.aspx.cs has this in it :
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = "Prueba";
}
}
The following files are included in the ./bin directory by "Publish web site" :
App_global.asax.compiled
App_global.asax.dll
App_Web_he6czt8r.dll
The following files are included in the website1 dir :
Default.aspx ( modified by the "Publish web site" add-in )
PrecompiledApp.config ( created by the "Publish web site" add-in )
version.aspx ( A non-codebehind page for test purposes; it's copied intact )
Web.config ( copied intact by the "Publish web site" add-in )
Check it out, working, at
http://asp.net.do/website1/
You don't need to upload the codebehind files.
The precompiler will compile those into the ragged-name assembly.
Did you first delete all the files at your IIS website, and then copy
all the files which the precompiler creates, to your IIS website ?
If you have too many files, it's just as bad as not having enough.
Also, check that your default.aspx.cs codebehind page has
public partial class _Default : System.Web.UI.Page in it.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ :
http://asp.net.do/faq/
ASPNETFAQ.COM :
http://www.aspnetfaq.com/
Foros de ASP.NET en Español :
http://asp.net.do/foros/
======================================