OVH Cloud OVH Cloud

Compilation

1 réponse
Avatar
Patrick Bastin
Bonjour,

J'ai un page ASP.NET sur laquel j'ai ajouté un composant extérieur (un
bouton qui dès qu'on clique dessus affiche une image en attendant la fin de
la procédure). Ce composant ce trouve dans la DLL : "pleasewaitbutton.dll".
Quand je compile avec Visual Studio 2003 pas de problème la compilation ce
passe bien et l'exécution aussi. Après comme tout s'est bien déroulé je dois
mettre ces pages en production. La en production je dois recompiler ma source.
Lors de la compilation il n'y a aucun problème.

script de compilation :

-------------------------------------
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe
/o+ /lib:./bin /t:library /out:.\bin\fonopz.dll
/recurse:*.cs /r:System.dll /r:System.Data.dll
/r:System.Drawing.dll /r:System.Web.dll /r:System.XML.dll
/r:pleasewaitbutton.dll
-------------------------------------

Et lors de l'exécution j'obtiens l'erreur suivante :

-------------------------------------
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: File or assembly name PleaseWaitButton, or one of its
dependencies, was not found.

Source Error:


Line 1: <%@ Register TagPrefix="cc1" Namespace="JavaScriptControls"
Assembly="PleaseWaitButton" %>
Line 2: <%@ Page language="c#" Src="fonopz.aspx.cs"
Inherits="fonopz.CFonOpz" %>
Line 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >


Source File: F:\intranet\fonopz\fonopz.aspx Line: 1

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'PleaseWaitButton' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = PleaseWaitButton
(Partial)
LOG: Appbase = file:///F:/intranet
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: PleaseWaitButton
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/84759297/8589c692/PleaseWaitButton.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/84759297/8589c692/PleaseWaitButton/PleaseWaitButton.DLL.
LOG: Attempting download of new URL
file:///F:/intranet/bin/PleaseWaitButton.DLL.
LOG: Attempting download of new URL
file:///F:/intranet/bin/PleaseWaitButton/PleaseWaitButton.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/84759297/8589c692/PleaseWaitButton.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/84759297/8589c692/PleaseWaitButton/PleaseWaitButton.EXE.
LOG: Attempting download of new URL
file:///F:/intranet/bin/PleaseWaitButton.EXE.
LOG: Attempting download of new URL
file:///F:/intranet/bin/PleaseWaitButton/PleaseWaitButton.EXE.
-------------------------------------

Je ne comprends pas pourquoi il fait ca vu que mes dlls sont a la bonne
place. Enfin si quelqu'un avait une idée...

Icrem.
Patrick.

1 réponse

Avatar
Pierre Lagarde [MS]
Bonjour,

C'est peut être un problème de sécurité. Tu peux tester de mêtre l'assembly
dans le GAC.
C'est à dire la copier dans C:windowsassembly

--
Pierre Lagarde
Microsoft France

Patrick Bastin wrote:
Bonjour,

J'ai un page ASP.NET sur laquel j'ai ajouté un composant extérieur (un
bouton qui dès qu'on clique dessus affiche une image en attendant la
fin de la procédure). Ce composant ce trouve dans la DLL :
"pleasewaitbutton.dll". Quand je compile avec Visual Studio 2003 pas
de problème la compilation ce passe bien et l'exécution aussi. Après
comme tout s'est bien déroulé je dois mettre ces pages en production.
La en production je dois recompiler ma source. Lors de la compilation
il n'y a aucun problème.

script de compilation :

-------------------------------------
C:WINDOWSMicrosoft.NETFrameworkv1.1.4322csc.exe
/o+ /lib:./bin /t:library /out:.binfonopz.dll
/recurse:*.cs /r:System.dll /r:System.Data.dll
/r:System.Drawing.dll /r:System.Web.dll /r:System.XML.dll
/r:pleasewaitbutton.dll
-------------------------------------

Et lors de l'exécution j'obtiens l'erreur suivante :

-------------------------------------
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: File or assembly name PleaseWaitButton, or one
of its dependencies, was not found.

Source Error:


Line 1: <%@ Register TagPrefix="cc1" Namespace="JavaScriptControls"
Assembly="PleaseWaitButton" %>
Line 2: <%@ Page language="c#" Src="fonopz.aspx.cs"
Inherits="fonopz.CFonOpz" %>
Line 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN" >


Source File: F:intranetfonopzfonopz.aspx Line: 1

Assembly Load Trace: The following information can be helpful to
determine why the assembly 'PleaseWaitButton' could not be loaded.


=== Pre-bind state information == > LOG: DisplayName = PleaseWaitButton
(Partial)
LOG: Appbase = file:///F:/intranet
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
== >
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: PleaseWaitButton
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/84759297/8589c692/PleaseWaitButton.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/84759297/8589c692/PleaseWaitButton/PleaseWaitButton.DLL.
LOG: Attempting download of new URL
file:///F:/intranet/bin/PleaseWaitButton.DLL.
LOG: Attempting download of new URL
file:///F:/intranet/bin/PleaseWaitButton/PleaseWaitButton.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/84759297/8589c692/PleaseWaitButton.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/84759297/8589c692/PleaseWaitButton/PleaseWaitButton.EXE.
LOG: Attempting download of new URL
file:///F:/intranet/bin/PleaseWaitButton.EXE.
LOG: Attempting download of new URL
file:///F:/intranet/bin/PleaseWaitButton/PleaseWaitButton.EXE.
-------------------------------------

Je ne comprends pas pourquoi il fait ca vu que mes dlls sont a la
bonne place. Enfin si quelqu'un avait une idée...

Icrem.
Patrick.