all groups > dotnet component services > october 2004 >
You're in the

dotnet component services

group:

FileNotFoundException when instanciating component in COM+


FileNotFoundException when instanciating component in COM+ Jonas
10/18/2004 11:19:24 AM
dotnet component services:
Hi!

I have an ASPNET application using VB.NET components in COM+. This worked
just fine in my old installation, a WinXP SP1. I'm now trying to get this to
run in my new installation, a WinXP SP2, and then I get the following error
when trying to instanciate a component

------------------------------------
Dim objFunctions As New biz.Fncs

==>

[System.IO.FileNotFoundException]: {System.IO.FileNotFoundException}

HelpLink: Nothing

InnerException: Nothing

Message: "The system cannot find the file specified."

Source: "mscorlib"

StackTrace: " at
System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode,
IntPtr errorInfo)
------------------------------------

The code is exactly the same as in the old installation, and I've set up the
web application in the same way. I found some reports stating that the
hotfix from KB828741 could mess up COM+ applications, and apparently this
hotfix is included in SP2. I've run FileMon & RegMon to find out if any
permissions need to be changed, but haven't found anything.

Any tips??

/Jonas

Re: FileNotFoundException when instanciating component in COM+ Jonas
10/19/2004 8:39:32 AM
Hi!

I found the problem. When I set up my new machine, I lost all the
permissions on the web application folder, and that the user account running
the COM+ application didn't have permission to access the assembly files in
my webapp\bin-folder ... My bad :-<

/Jonas

[quoted text, click to view]

AddThis Social Bookmark Button