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/
======================================
"ewolfman" <ew******@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi Daniel - thanks for replying.
As I understand it, when publishing using the "Allow this precompiled
site to be updatable" option, the aspx/ascx are kept, and the code
behind files are complied into an assembly (which is the temp assembly
mentioned, of course). So it should have been just fine. Moreover,
uploading the code behind files isn't enough, because the aspx page
attempts to find the assembly:
<%@ page language="C#" autoeventwireup="true" inherits="_Default,
App_Web_fvcjq78i" %>
So the aspx will always fail, because it assumes it has the assembly
specified in the "inherits" attribute. If I perform the "obvious"
action, removing the temp assembly's specification from the line above,
I receive the "Could not load type '_Default'" message. I don't think
it has anything to do with the IIS default docs.