Re: Configuration error: Could not load file or assembly...
I'm using a virtual machine with Windows 2003 Server Enterprise edition.
All the recent updates (including .NET Framework Version 2.0) are
installed.
I checked and the assembly is compiled in Release mode. In fact, I am
even trying to make the original MathService (downloaded from the web
site) work I fail.
I always receive this error:
Parser Error Message: Could not load file or assembly 'MathService' or
one of its dependencies. The system cannot find the file specified.
Source Error:
Line 2: <system.web>
Line 3: <httpHandlers>
Line 4: <add verb="*" path="math.rem" type="MathService,
MathService" />
Line 5: </httpHandlers>
Line 6: </system.web>
Source File: c:\inetpub\wwwroot\math\web.config Line: 4
Assembly Load Trace: The following information can be helpful to
determine why the assembly 'MathService' could not be loaded.
=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = MathService
(Partial)
LOG: Appbase =
file:///c:/inetpub/wwwroot/ <
file:///c:/inetpub/wwwroot/>
LOG: Initial PrivatePath = c:\inetpub\wwwroot\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
\\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
<file://\\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config>
LOG: Using machine configuration file from
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary
<
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary>
ASP.NET Files/root/26676eb7/92c7e946/MathService.DLL.
LOG: Attempting download of new URL
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary
<
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary>
ASP.NET Files/root/26676eb7/92c7e946/MathService/MathService.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/bin/MathService.DLL
<
file:///c:/inetpub/wwwroot/bin/MathService.DLL> .
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/bin/MathService/MathService.DLL
<
file:///c:/inetpub/wwwroot/bin/MathService/MathService.DLL> .
LOG: Attempting download of new URL
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary
<
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary>
ASP.NET Files/root/26676eb7/92c7e946/MathService.EXE.
LOG: Attempting download of new URL
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary
<
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary>
ASP.NET Files/root/26676eb7/92c7e946/MathService/MathService.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/bin/MathService.EXE
<
file:///c:/inetpub/wwwroot/bin/MathService.EXE> .
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/bin/MathService/MathService.EXE
<
file:///c:/inetpub/wwwroot/bin/MathService/MathService.EXE> .
------------------------------------------------------------------------\
--------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433;
ASP.NET Version:2.0.50727.1433
In this log I notice that AppBase and Initial Private path are pointing
to the c:\inetpub\wwwroot instead of c:\inetpub\wwwroot\math where the
web.config file is located. Is that a problem?
Thanks! :)
Valera
--- In
XMLRPCNET@yahoogroups.com <mailto:
XMLRPCNET@yahoogroups.com> ,
Zev Beckerman <zbeckerman@...> wrote:
>
> If you plan to deploy a .NET application to a machine that did not
> install .NET, you MUST install the .NET redistributables
>
(
http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-\
4B0D-8EDD-AAB15C5E04F5&displaylang=en
<
http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-\
4B0D-8EDD-AAB15C5E04F5&displaylang=en> ).
>
> If you compiled in DEBUG mode, then your foundation library is in
debug
> mode and likely the target computer does not have it. Compile in
release
> mode and install the redistributables. Hope that helps, if you not,
> post screen shots (or links to) of the dependency walker.
>
> Thanks,
> Zev.
[Non-text portions of this message have been removed]