Re: ASP.NET error, publish with VS 2005



Ok.. I really didn't want a pre-compiled page, so I was going about this
wrong. I changed my process so I did the build on the dev computer and then
instead of "publishing" which generates the pre-compiled files, I just
FTP'ed the entire build folder. This seems to work.

Thanks,
Ryan

"Ryan" <Tyveil@xxxxxxxxxxxxxxxxx> wrote in message
news:en28Ch8ZHHA.3268@xxxxxxxxxxxxxxxxxxxxxxx
Hi Steven,
Correct I am encountering the error after deployment from the dev machine
to the server. Looking at the /bin folder the only thing in it is the
App_Web...dll file, looks like I'm missing the .compile files. Will look
over your links to see if I can find the solution.

Thanks,
Ryan

"Steven Cheng[MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:$AaIC05ZHHA.3664@xxxxxxxxxxxxxxxxxxxxxxxxx
Hello Ryan,

From your description, you're encountering some assembly loading error
after deploy a certain ASP.NET 2.0 web application from development
machine
to a server machine, correct?

According to the detailed error message you pasted below

======================
Parser Error Message: Could not load the assembly 'App_Web_j5_yopnt'.
Make
sure that it is compiled before accessing the page.

Source Error:


Line 1: <%@ page language="VB" autoeventwireup="false"
inherits="_Default,
App_Web_j5_yopnt" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
=======================

The runtime can not locate the "App_Web_j5_yopnt.dll" assembly, and since
the @Page directive also reference this assembly, I think you have
perform
precompilation(publish the website ) before deploy it , correct?

if this is the case, after you performing the precompilation(publish web
site), the target directory's "bin" folder should contain those
precompiled
assemblies(such as "App_Web_j5_yopnt.dll") together with some *.compiled
files. Be careful that you should use the "target" or "output" directory
rather than your origional web site's directory after you perform the
precompilation because only those directories contains the correct
content/assemblies for deployment:

#Precompilation In ASP.NET 2.0
http://www.odetocode.com/Articles/417.aspx

#How to: Precompile ASP.NET Web Sites
http://msdn2.microsoft.com/en-us/library/ms227972.aspx

#Managing ASP.NET Precompiled Output for Deployment Using the
aspnet_merge.exe Command
http://msdn2.microsoft.com/en-us/library/aa479044.aspx

Please feel free to let me know if you have anything unclear above or if
there is any other questions here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each
follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no
rights.













.



Relevant Pages

  • Re: ASP.NET error, publish with VS 2005
    ... Correct I am encountering the error after deployment from the dev machine to ... precompilation because only those directories contains the correct ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: ASP.NET error, publish with VS 2005
    ... According to the detailed error message you pasted below ... precompilation because only those directories contains the correct ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: App_GlobalResources.COMPILED question
    ... application's precompilation mechanism. ... WebDeployment Project or not) only support assemblies merging at ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Web Deployment Project
    ... As for the ASP.NET 2.0 web project's precompilation and publishing, ... for Web Deployment project specific featuers you can refer to the ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: precompile
    ... Site precompilation brings a double benefit: ... delay for requests because of compilation and no need of deploying source ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework.aspnet)