Search the web
Sign In
New User? Sign Up
XMLRPCNET · XML-RPC.NET
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Configuration error: Could not load file or assembly...   Message List  
Reply | Forward Message #1087 of 1226 |
Re: Configuration error: Could not load file or assembly...

OK, I managed to make the service work.

However, by now it should be located in the root directory (any
indication of the relative path to the assembly in another virtual
directory causes the above mentioned error),

and the name of the class must be indicated with the default
namespace (even though the I program in C#).

Any comments? :)

Thanks.
Valera



--- In XMLRPCNET@yahoogroups.com, "Valeriy Shylin" <valera-sh@...>
wrote:
>
>
> 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]
>





Wed Oct 29, 2008 9:59 am

valerashylin
Offline Offline
Send Email Send Email

Forward
Message #1087 of 1226 |
Expand Messages Author Sort by Date

Hi guys, sorry for posting once again the same thing already discussed here about how to implement and configure the service in the web.config file. Still I...
Valeriy Shylin
valerashylin
Offline Send Email
Oct 27, 2008
2:44 pm

Download dependency checker at: http://www.dependencywalker.com/ This will allow you to see what DLLs (paths) are expected and which are missing. This will...
zbeckerman
Offline Send Email
Oct 27, 2008
6:42 pm

Thanks Zev for the advice. However, DependencyWalker does not seem to reveal any problem with expected dlls except of one missing function in MPR.DLL, but I...
Valeriy Shylin
valerashylin
Offline Send Email
Oct 27, 2008
7:46 pm

If you plan to deploy a .NET application to a machine that did not install .NET, you MUST install the .NET redistributables ...
Zev Beckerman
zbeckerman
Offline Send Email
Oct 28, 2008
3:29 am

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...
Valeriy Shylin
valerashylin
Offline Send Email
Oct 28, 2008
7:05 am

OK, I managed to make the service work. However, by now it should be located in the root directory (any indication of the relative path to the assembly in...
Valeriy Shylin
valerashylin
Offline Send Email
Oct 29, 2008
9:59 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help