473,386 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Publish Web Site missing assembly

Hi,

I've read many posts in several news groups, but can't figure out how
to publish my website. The specific error I'm getting (on the
"successfully published website") is "Could not load the assembly
'App_Web_vxfyglsm'. Make sure that it is compiled before accessing the
page".

I checked - The assembly DOES exist in the target web folder.

I've also tried to "Copy Web Site", but then for some reason my
_Default page is not recognized.

What's wrong ?

Nov 19 '05 #1
6 3818
'App_Web_vxfyglsm' sounds like a temp assembly delete it from the server and
let the aspnet woprker process recompile your app (*.cs/*.vb files must be
uploaded)

_Default page is not recognized = IIS issue (default docs)

--
Daniel Fisher(lennybacon)
http://www.lennybacon.com
"ewolfman" <ew******@yahoo.com> wrote in message
news:11********************@z14g2000cwz.googlegrou ps.com...
Hi,

I've read many posts in several news groups, but can't figure out how
to publish my website. The specific error I'm getting (on the
"successfully published website") is "Could not load the assembly
'App_Web_vxfyglsm'. Make sure that it is compiled before accessing the
page".

I checked - The assembly DOES exist in the target web folder.

I've also tried to "Copy Web Site", but then for some reason my
_Default page is not recognized.

What's wrong ?

Nov 19 '05 #2
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.

Nov 19 '05 #3
I also thought this might be a probing problem. I tried different
settings such as specifying a <runtime> and an <assemblies> element,
but still couldn't get it to work.

Displaying the AppDomain.CurrentDomain.RelativeSearchPath displayed the
default "bin", which is supposed to be just fine.

Nov 19 '05 #4
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.


Nov 19 '05 #5
re:
I also thought this might be a probing problem.
It's not. See my previous answer.

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**********************@o13g2000cwo.googlegr oups.com...I also thought this might be a probing problem. I tried different
settings such as specifying a <runtime> and an <assemblies> element,
but still couldn't get it to work.

Displaying the AppDomain.CurrentDomain.RelativeSearchPath displayed the
default "bin", which is supposed to be just fine.

Nov 19 '05 #6
Problem solved!!

I have both ASP.NET 1.x and 2.x installed on my machine. The default
ASP.NET settings in IIS was set to 1.x instead of 2.x....

Setting the ASP.NET to 2.x solved this problem....

Thanks everyone.

Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
1
by: VB Programmer | last post by:
My ASP.NET 2.0 site takes about 10 min to publish to my webserver. There's only 3 ASPX pages, VERY MINIMAL code (< 100 lines) and I'm not using any membership stuff etc... (even though the...
2
by: Douglas J. Badin | last post by:
I am using VS 2005 to Publish my ASP.NET 2.0 Website with the following: - Not allowing this precompiled site to be updatable - Use fixed naming and single page assemblies - Not Enable strong...
10
by: WT | last post by:
Hello, I have been publishing my web site many times to the remote where resides my final web site. Everything was ok, but to-day, without any configuration change, vs doesn't copy final files...
21
by: Al Christoph | last post by:
I posted this last week end in the MSDN forums. No luck there. Let's see what the experts here have to say:-)))) I have a rather convoluted project. The distributable will come in eight...
0
by: JAdrianB | last post by:
I've used Publish Web Site before on other projects (C#) with no problems. New project, converted from earlier version of ASP.Net to 2.0 (VB.Net). When I do a Build --Publish Web Site to a local...
3
by: ningjun.wang | last post by:
I crate a new asp.net 2.0 web site using Visual Studio 2005. It run fine in visual studio. I then click Build Publish Website to build the dll and copy them to the IIS virtual directory along with...
3
by: PokerMan | last post by:
HI When i publish my site, it overwrites all files. but when i have some large files included such as mp3s. It overwrites these and even tho i havent touched them it reuploads all of them....
2
by: Pieter | last post by:
Hi, We're using ClickOnce alreaddy more than a year for a given applicaiton, doing more than 50 publishes without any problem. Yesterday we made a minor change to one of our components (let's...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.