Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Could not load assembly. Make sure that it is compiled before accessing the page.

 
Thread Tools Search this Thread
Old 07-06-2006, 03:48 PM   #1
Default Could not load assembly. Make sure that it is compiled before accessing the page.


Hi,

I am trying to deploy a asp.net website developed using Visual Studio
2005 on server. Application works fine on development machine, but when
trying to run on server I get following error message.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.

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

Source Error:


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


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300;
ASP.NET Version:1.1.4322.2300

- Server is running IIS 6.0. Both .NET framework 1.1 and 2.0 is
installed on the server.
- Server has many applications using framework 1.1 which are running
fine. This is the first application using framework 2.0.
- The applicaiton folder is configured as application in IIS virtual
directory.
- I have also changed asp.net version to 2.0 under asp.net tab in
virtual directory settings. The weird thing is that the error message
shows version as 1.1. I don't understand why?

The application is compiled correctly and all necessary files are
copied on server. I have tried copying the folder on another
development machine and it works well.

Any help would be really appreciated.

Thanks,
Rachana



rachana
  Reply With Quote
Old 07-06-2006, 03:52 PM   #2
Winista
 
Posts: n/a
Default Re: Could not load assembly. Make sure that it is compiled before accessing the page.

Is your application running in a separate pool? On IIS6.0 you can put
applications in different pools. But in one pool you can use only one
framework version. So if rest of the applications in your pool are
configured for .Net1.1 and this one is using 2.0 then you will run into
interesting problems.

"rachana" <> wrote in message
news: oups.com...
> Hi,
>
> I am trying to deploy a asp.net website developed using Visual Studio
> 2005 on server. Application works fine on development machine, but when
> trying to run on server I get following error message.
>
> Server Error in '/' Application.
> --------------------------------------------------------------------------------
>
> Parser Error
> Description: An error occurred during the parsing of a resource
> required to service this request. Please review the following specific
> parse error details and modify your source file appropriately.
>
> Parser Error Message: Could not load the assembly 'App_Web_pizv9cfi'.
> Make sure that it is compiled before accessing the page.
>
> Source Error:
>
>
> Line 1: <%@ page language="VB" autoeventwireup="false"
> inherits="_Default, App_Web_pizv9cfi" %>
> Line 2:
> Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
>
> --------------------------------------------------------------------------------
> Version Information: Microsoft .NET Framework Version:1.1.4322.2300;
> ASP.NET Version:1.1.4322.2300
>
> - Server is running IIS 6.0. Both .NET framework 1.1 and 2.0 is
> installed on the server.
> - Server has many applications using framework 1.1 which are running
> fine. This is the first application using framework 2.0.
> - The applicaiton folder is configured as application in IIS virtual
> directory.
> - I have also changed asp.net version to 2.0 under asp.net tab in
> virtual directory settings. The weird thing is that the error message
> shows version as 1.1. I don't understand why?
>
> The application is compiled correctly and all necessary files are
> copied on server. I have tried copying the folder on another
> development machine and it works well.
>
> Any help would be really appreciated.
>
> Thanks,
> Rachana
>



  Reply With Quote
Old 07-06-2006, 06:55 PM   #3
rachana
 
Posts: n/a
Default Re: Could not load assembly. Make sure that it is compiled before accessing the page.

Creating separate application pool solved the problem. Thanks a lot for
your help.


Winista wrote:
> Is your application running in a separate pool? On IIS6.0 you can put
> applications in different pools. But in one pool you can use only one
> framework version. So if rest of the applications in your pool are
> configured for .Net1.1 and this one is using 2.0 then you will run into
> interesting problems.
>


  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump