Re: ASP.NET error, publish with VS 2005



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: Deploy VS2005 Web Site Project
    ... For ASP.NET 2.0 web site application project, it use a new develop & ... deployment, you're suggested to manually perform a precompilation on your ... "aspnet_compiler.exe" to do the precompilation. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework)
  • Re: ASP.NET error, publish with VS 2005
    ... Correct I am encountering the error after deployment from the dev machine ... 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: .net 2.0 set up error
    ... As for the Web application deployment problem, I think you can first try ... ** Make sure you have created the application's virtual directory ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • 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: Redirecting to ClickOnce application fails
    ... If you don't redirect to the ClickOnce application deployment file from ... ClickOnce application deployment manifest. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.windowsforms)

Loading