S
Steven Cheng[MSFT]
Hi Ofer,
Welcome to ASPNET newsgroup.
From the error info you provided, seems the occur is caused by the page
failed to load the assembly of a certain ascx usercontrol. Is the
<pix:xxxxx ...> the usercontrol? Also, does the problem always occur on
that particular page and the referenced usercontrol? If so, would you
provide the position of the page and usercontrol in your website
application's folder structure (in the same directory or not ....).
Based on my experience, such assembly not found error may caused by the new
different compilation model, when the referenced ascx control is not put in
the same directory with the page that use it, the classes(page class and
the usercontrol's class) may be compiled into different dynamic generated
assembly which cause control reference not found..... Also, is your
usercontrol derived from another ascx usercontrol in the application? If
so, this is also the possible cause, since the base ascx control's class
maybe compiled in to different assembly.
If this is the problem, you can try explicitly add the following directive
in page's aspx to reference the usercontrol(or base usercontrol) so that
the usercontrol's code will be compiled into the same assembly with the
page:
<%@ Reference Control="~/UserControls/WebUserControl.ascx" %>
If there're anything I didn't quite get or any other finding, please feel
free to post here.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Ofer Zelig" <[email protected]>
| Subject: "The system cannot find the file specified" appears peridically
in runtime
| Date: Wed, 4 Jan 2006 09:46:27 +0200
| Lines: 611
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: line134-75.adsl.actcom.co.il 192.115.134.75
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:368458
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I run a live ASP.NET 2 web site, which is still on trial run, therefore I
| use simple compilation model (all .cs files are uploaded to the server).
|
| Sometimes, and I can't point in which circumstances, the ASP.NET Runtime
| Engine throws the following message, in specific pages (not in all of the
| pages):
|
| A full HTML version of the error is available in the attachment for this
| message.
|
| I could only manually resolve the problem by performing a Stop-Start
actions
| on this web site, or performing a dummy change in Global.asax .
| Needless to say, the code including the mentioned ASCX file is perfect,
and
| there are no permission problems.
|
| Software specifications: Windows Server 2003, IIS 6, .NET runtime
| v2.0.50727, plenty of RAM and HD space.
|
| p.s. a similar problem is described here (submitted by some other person
on
| the web): http://forums.asp.net/799026/ShowPost.aspx (in that case, it's a
| BETA according to the submission date, but in my case it's the full
official
| .NET 2 runtime release)
|
| I'd appreciate a solution for this problem.
|
|
|
Welcome to ASPNET newsgroup.
From the error info you provided, seems the occur is caused by the page
failed to load the assembly of a certain ascx usercontrol. Is the
<pix:xxxxx ...> the usercontrol? Also, does the problem always occur on
that particular page and the referenced usercontrol? If so, would you
provide the position of the page and usercontrol in your website
application's folder structure (in the same directory or not ....).
Based on my experience, such assembly not found error may caused by the new
different compilation model, when the referenced ascx control is not put in
the same directory with the page that use it, the classes(page class and
the usercontrol's class) may be compiled into different dynamic generated
assembly which cause control reference not found..... Also, is your
usercontrol derived from another ascx usercontrol in the application? If
so, this is also the possible cause, since the base ascx control's class
maybe compiled in to different assembly.
If this is the problem, you can try explicitly add the following directive
in page's aspx to reference the usercontrol(or base usercontrol) so that
the usercontrol's code will be compiled into the same assembly with the
page:
<%@ Reference Control="~/UserControls/WebUserControl.ascx" %>
If there're anything I didn't quite get or any other finding, please feel
free to post here.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Ofer Zelig" <[email protected]>
| Subject: "The system cannot find the file specified" appears peridically
in runtime
| Date: Wed, 4 Jan 2006 09:46:27 +0200
| Lines: 611
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: line134-75.adsl.actcom.co.il 192.115.134.75
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:368458
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I run a live ASP.NET 2 web site, which is still on trial run, therefore I
| use simple compilation model (all .cs files are uploaded to the server).
|
| Sometimes, and I can't point in which circumstances, the ASP.NET Runtime
| Engine throws the following message, in specific pages (not in all of the
| pages):
|
| A full HTML version of the error is available in the attachment for this
| message.
|
| I could only manually resolve the problem by performing a Stop-Start
actions
| on this web site, or performing a dummy change in Global.asax .
| Needless to say, the code including the mentioned ASCX file is perfect,
and
| there are no permission problems.
|
| Software specifications: Windows Server 2003, IIS 6, .NET runtime
| v2.0.50727, plenty of RAM and HD space.
|
| p.s. a similar problem is described here (submitted by some other person
on
| the web): http://forums.asp.net/799026/ShowPost.aspx (in that case, it's a
| BETA according to the submission date, but in my case it's the full
official
| .NET 2 runtime release)
|
| I'd appreciate a solution for this problem.
|
|
|