Luke,
No the "Microsoft.Web.UI.WebControls.dll" file is not in
the BIN folder, but I made a reference to it (pointing to
C:\Inetpub\wwwroot\webctrl_client\1_0
\Microsoft.Web.UI.WebControls.dll) so this wouldn't be a
problem.
The problem looks like being on the very first part of
the HTML code, as it is the line that comes in RED when
IIS tries to execute the page with the webcontrols:
<%@ Register TagPrefix="iewc"
Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls,
Version=1.0.2.226, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" %>
the following code is the one I have running on the
development machine - and runs w/o problems:
<%@ Register TagPrefix="iewc"
Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls,
Version=1.0.2.226, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" %>
as you can see, they are identical - but in my machine
the code runs - while on the PRODUCTION server it comes
back with the error we're strugling with.
The error message we get from the production server is
below (between the ***s):
I realy don't understand what's going on... please help
us.
**********************************************************
***********************
Source File:
C:\Inetpub\wwwroot\ProcDoc\ProcDoc\DataEntry\DataEntry1_2
\de_mdl_lstng.aspx Line: 2
Assembly Load Trace: The following information can be
helpful to determine why the
assembly 'Microsoft.Web.UI.WebControls' could not be
loaded.
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Web.UI.WebControls,
Version=1.0.2.226, Culture=neutral,
PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase =
file:///C:/Inetpub/wwwroot/ProcDoc/ProcDoc/DataEntry/DataE
ntry1_2
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINNT\Microsoft.NET\Framework\v1.1.4322
\aspnet.config).
LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Framework\v1.1.4322
\config\machine.config.
LOG: Post-policy reference: Microsoft.Web.UI.WebControls,
Version=1.0.2.226, Culture=neutral,
PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Tempora
ry ASP.NET
Files/e21dataentry/f243f91e/6a947565/Microsoft.Web.UI.WebC
ontrols.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Tempora
ry ASP.NET
Files/e21dataentry/f243f91e/6a947565/Microsoft.Web.UI.WebC
ontrols/Microsoft.Web.UI.WebControls.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/ProcDoc/ProcDoc/DataEntry/DataE
ntry1_2/bin/Microsoft.Web.UI.WebControls.DLL.
WRN: Comparing the assembly name resulted in the
mismatch: PUBLIC KEY TOKEN
----------------------------------------------------------
----------------------
Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
**********************************************************
***********************
[quoted text, click to view] >-----Original Message-----
>Is the file "Microsoft.Web.UI.WebControls.dll " in the
BIN folder of the
>web application?
>
>Luke
>Microsoft Online Support
>
>Get Secure!
www.microsoft.com/security >(This posting is provided "AS IS", with no warranties,
and confers no
>rights.)
>
>.
Luke,
after my last message I did the following changes:
1) I copied the "Microsoft.Web.UI.Webcontrols.dll" file
from the other folder to the BIN folder of this site.
2) I removed the reference to the file from the other
directory and then created a new one pointng to the .dll
file in the Bin folder.
The following error message came back from the same page
with the webcontrols (lines between ****). The error is
on the line 2 (red font)
*********************************************************
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: The located assembly's manifest
definition with name 'Microsoft.Web.UI.WebControls' does
not match the assembly reference.
Source Error:
Line 1: <%@ import
namespace="Microsoft.Web.UI.WebControls" %>
Line 2: <%@ Register TagPrefix="iewc"
Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls,
Version=1.0.2.226, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" %>
Line 3: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="de_Mdl_Lstng.aspx.vb"
Inherits="DataEntry1.Mdl_Lstng"%>
Line 4: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
Source File:
C:\Inetpub\wwwroot\ProcDoc\ProcDoc\DataEntry\DataEntry1_2
\de_mdl_lstng.aspx Line: 2
Assembly Load Trace: The following information can be
helpful to determine why the
assembly 'Microsoft.Web.UI.WebControls' could not be
loaded.
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Web.UI.WebControls,
Version=1.0.2.226, Culture=neutral,
PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase =
file:///C:/Inetpub/wwwroot/ProcDoc/ProcDoc/DataEntry/DataE
ntry1_2
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINNT\Microsoft.NET\Framework\v1.1.4322
\aspnet.config).
LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Framework\v1.1.4322
\config\machine.config.
LOG: Post-policy reference: Microsoft.Web.UI.WebControls,
Version=1.0.2.226, Culture=neutral,
PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Tempora
ry ASP.NET
Files/e21dataentry/f243f91e/6a947565/Microsoft.Web.UI.WebC
ontrols.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Tempora
ry ASP.NET
Files/e21dataentry/f243f91e/6a947565/Microsoft.Web.UI.WebC
ontrols/Microsoft.Web.UI.WebControls.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/ProcDoc/ProcDoc/DataEntry/DataE
ntry1_2/bin/Microsoft.Web.UI.WebControls.DLL.
WRN: Comparing the assembly name resulted in the
mismatch: PUBLIC KEY TOKEN
----------------------------------------------------------
----------------------
Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
*********************************************************
So now, I have moved the file to the place you suggested -
but still having the same problem. Please advise,
Thanks in advance,
Sam
[quoted text, click to view] >-----Original Message-----
>Is the file "Microsoft.Web.UI.WebControls.dll " in the
BIN folder of the
>web application?
>
>Luke
>Microsoft Online Support
>
>Get Secure!
www.microsoft.com/security >(This posting is provided "AS IS", with no warranties,
and confers no
>rights.)
>
>.
HI Sam,
Can you explain more on the second step:
2) I removed the reference to the file from the other directory and then
created a new one pointng to the .dll file in the Bin folder.
How did you perform it? I think it is unnexessary for the problem.
Normally, the assembly will locate its run folder for references file.
Luke
Microsoft Online Support
Get Secure!
www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no
rights.)
I basicaly performed the following steps:
1) opened the project
2) went to the solution explorer window
3) opened the 'references' folder
3.1) there was an item 'Microsoft.WEB.UI.WebControls'
3.2) selected it and removed it from the project
4) opened a Windows Explorer
4.1) navigated to the folder where I have the webcontrols
samples working
4.2) pasted the 'Microsoft.WEB.UI.WebControls' file
4.3) navigated to this project folder
4.4) went to the BIN subfolder
4.5) copied the (pasted) file above into it.
5) run the application
6) Made a copy of the problems and submitted to you.
Is there any way you can scale this request to someone
else? The basic problem here is:
a) my machine (development) has the same configuration as
far as software installed (.net)
b) both machines have the
same 'Microsoft.WEB.UI.WebControls' files
c) when I copy the application (that's running on my
machine) to the production one, the outcome of operation
is not working. I mean, just by copying all files in the
application is not making it work.
If you follow the last message I sent you, I put the
beginning of the page with the problem.. by looking at
it, you would be able to understand what's going on... If
we see that I opened the case about a month ago... it is
realy sad that you can't provide me a route to fix it.
Thanks in advance,
Sam
[quoted text, click to view] >-----Original Message-----
>HI Sam,
>
>Can you explain more on the second step:
>
>2) I removed the reference to the file from the other
directory and then
>created a new one pointng to the .dll file in the Bin
folder.
>
>How did you perform it? I think it is unnexessary for
the problem.
>Normally, the assembly will locate its run folder for
references file.
>
>Luke
>Microsoft Online Support
>
>Get Secure!
www.microsoft.com/security >(This posting is provided "AS IS", with no warranties,
and confers no
>rights.)
>
>.
Hi Sam,
I think it is not necessary to remove the reference
"Microsoft.Web.UI.WebControls" from the list. We only need to set its "Copy
Local" to True and it will access the "Microsoft.Web.UI.WebControls.DLL" in
the BIN folder at runtime. I think you first need to confirm the
"Microsoft.Web.UI.WebControls.dll" is in the BIN folder and its version is
1.0.2.226.
Luke
Microsoft Online Support
Get Secure!
www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no
rights.)
Don't see what you're looking for? Try a search.