This sounds like your VS.NET project is missing a reference to this
specific DLL. Be sure you add a specific reference (add-reference) from
your project to this DLL. If the code compiles, but on your production
machine it still cannot find this reference, you may be using assemblies
that are differently versioned (e.g. different strong names). Be sure to
copy the same versions from your development environment to your production
environment. One way to test if this is the case is to "file-publish" the
web service that is working on your development machine to a test machine.
If the code works there, you probably are using different versions of the
--------------------cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP12>From: "Roger R. Smith" <rog_21>
>Date: Tue, 23 Nov 2004 19:54:31 -0500
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
phx.gblmicrosoft.public.dotnet.framework.aspnet.webservic es:26794>Xref: cpmsftngxa10.phx.gbldata>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>I need some help.
>I generated an enum using EnumBuilder and created an assembly called
>EnumAssembly.dll into the bin directory of my web service. I not creating
>this enum while running the web service, I created it before I called the
>I then use this enum from the web service as a input to to [webmethod].
>I am getting the error FileNotFoundException: File or assembly name
><random.dll>, or one of its dependencies, was not found.
>However if I create an enum in Visual Studio and manually put in the enum
>values and place this dll into my web service bin dir and then use this>type as my input, things work fine.
>I am not creating the enum at runtime in the web service, I create it
>beforehand and import it into my web service, but when I try to invoke any
>operation on my web service I get that error.
>I am using C#.
>Thank you very much.