473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Windows Service FilenotFound exception when accessing a type from an assemble

I have a class library used by a windows service executable, both
binaries and dependancies are in one bin directory located on c:.

1) I can run a test app on my class library without failure
2) My service runs, but if I reference anything in the class library it
fails with a FileNotFound exception e.g. MyClassLib.MyClass A = null;
will cause the exception
3) my service runs under the system account
4) using Window XP SP2
5) My class library is a C++.Net Assembly that wrapps a number of
unmanaged MFC and Win32 DLLs that are in my bin directory.
6) If I call System.Reflection.Assembly.LoadFile from within the
service my class library loads ok.

Any ideas as to how I might solve this one?

Nov 20 '06 #1
1 1403
Got fuslogvw.exe to work by setting up a custon log path. Unfornatley
it didn't help much as all binding where successful.

Vadym Stetsyak wrote:
Hello, ropo!

you can use fuslogvw.exe to see where your service look for the assembly.

See ( http://msdn2.microsoft.com/en-us/yx7xezcf.aspx ) for reference,
how CLR locates assemblies

rI have a class library used by a windows service executable, both
rbinaries and dependancies are in one bin directory located on c:.

r1) I can run a test app on my class library without failure
r2) My service runs, but if I reference anything in the class library
rit
rfails with a FileNotFound exception e.g. MyClassLib.MyClass A = null;
rwill cause the exception
r3) my service runs under the system account
r4) using Window XP SP2
r5) My class library is a C++.Net Assembly that wrapps a number of
runmanaged MFC and Win32 DLLs that are in my bin directory.
r6) If I call System.Reflection.Assembly.LoadFile from within the
rservice my class library loads ok.

rAny ideas as to how I might solve this one?
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Nov 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tom | last post by:
I load an assembly via Assembly assembly=Assembly.LoadFile(assemblyName); .... foreach(Type t in types) { attribs=t.GetCustomAttributes(typeof(MayaPanelAttribute),true); }
2
by: AZSEEK | last post by:
I created a Windows Service in VB.Net and I tried using the InstallUtil and I keep getting this error message -- please help Exception occurred while initializing the installation:...
12
by: SJD | last post by:
I've just read Christoph Schittko's article on XmlSerializer: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp . . . and very informative it is too....
2
by: Roman Muntyanu | last post by:
Hi All, I got exception when call Activator.GetObject( ... ) When I start my application I register Channel to communicate between two computers and register type ReceiverLocator for remoting...
3
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
12
by: Noam | last post by:
I had originally written a program as a c# console application. The program used a reference that I wrote in c++. Later I was told to re-write the application as a windows service. When the service...
1
by: serge calderara | last post by:
Dear all, I have build a windows service whcih read soime remote configuration in an application file. That file path is pass as argument in the satrt parameter of the service. If I start the...
1
by: Mahesh Devjibhai Dhola | last post by:
Hi, Scenario: The webservice was developed on windows 2000 Pro and deployed previously on windows XP pro for testing. We have tested for many days. The client for that service was 30+ and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.