freelanceprogrammers.org Forum Index » ASP
Re: Unmanaged C++ Load Error
Joined: 11 Jan 2006
Posts: 38
Re: Unmanaged C++ Load Error
Hi Dean,
Any chance you need to register the unmanaged DLL? I`m just grasping at
straws here...
Peter
From: "kindawords" dfiala@...
Greg,
It is actually happening in the app load. Here is the full error
spew...
Configuration Error
Description: An error occurred during the processing of a
configuration file required to service this request. Please review
the specific error details below and modify your configuration file
appropriately.
Parser Error Message: File or assembly name PartitionWrap, or one of
its dependencies, was not found.
Source Error:
Line 256: Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
Line 257: Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
Line 258:
Line 259:
Line 260:
Source File: c:windowsmicrosoft.netframeworkv1.1.4322
Configmachine.config Line: 258
Assembly Load Trace: The following information can be helpful to
determine why the assembly `PartitionWrap` could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = PartitionWrap
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/BENCH
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: PartitionWrap
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET Files/bench/7b2d7936/2f6f01a7/PartitionWrap.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET Files/bench/7b2d7936/2f6f01a7/PartitionWrap/PartitionWrap.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/BENCH/bin/PartitionWrap.DLL.
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: PartitionWrap, Version=0.9.0.0,
Culture=neutral, PublicKeyToken=null
--- In AspNetAnyQuestionIsOk@yahoogroups.com, "Greg Ewing"
wrote:
> Dean, do you have a stack trace on the error?
>
> Greg Ewing [MVP]
> www.citidc.com
>
> ----------------------------------------
> From: Dean Fiala
> Sent: Wednesday, January 12, 2005 10:03 AM
> To: aspnetanyquestionisok@yahoogroups.com
> Subject: [AspNetAnyQuestionIsOk] Unmanaged C++ Load Error
>
> This is a fun one...
>
> I have created a managed wrapper class for a small unmanaged C++
class
> to alllow access to the unmanaged code from an ASP.NET web
> application.
>
> The wrapper class and unmanaged class work perfectly well on our
> development machines, but we receive a dependency error...
>
> File or assembly name PartitionWrap, or one of its dependencies,
was not found.
>
> ...when we attempt to run the application on a production server.
>
> Both the unmanaged dll (system32) and managed assembly (bin) have
been
> placed on the production machine and the permissions are identical.
> The production server has the .NET 1.1 framework installed properly
> (it serves a number of sites).
>
> Any hints to what the error might be would be greatly appreciated.
>
> --
> Dean Fiala
> Very Practical Software, Inc
> http://www.vpsw.com
[Non-text portions of this message have been removed]
Joined: 11 Jan 2006
Posts: 46
Re: Unmanaged C++ Load Error
Peter,
No, it is old-fashioned, pre-COM, windows DLL, no registration
required. As long as it is in the app dir or environment path, it
should be found and linked to.
Dean
--- In AspNetAnyQuestionIsOk@yahoogroups.com, "Peter Brunone"
<peterlists@b...> wrote:
> Hi Dean,
>
> Any chance you need to register the unmanaged DLL? I`m just
grasping at straws here...
>
> Peter
>
> From: "kindawords" dfiala@g...
>
> Greg,
> It is actually happening in the app load. Here is the full error
> spew...
>
> Configuration Error
> Description: An error occurred during the processing of a
> configuration file required to service this request. Please review
> the specific error details below and modify your configuration file
> appropriately.
>
> Parser Error Message: File or assembly name PartitionWrap, or one
of
> its dependencies, was not found.
>
> Source Error:
>
> Line 256: Version=1.0.5000.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a" />
> Line 257: Version=1.0.5000.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a" />
> Line 258:
> Line 259:
> Line 260:
>
> Source File: c:windowsmicrosoft.netframeworkv1.1.4322
> Configmachine.config Line: 258
>
> Assembly Load Trace: The following information can be helpful to
> determine why the assembly `PartitionWrap` could not be loaded.
>
> === Pre-bind state information ===
> LOG: DisplayName = PartitionWrap
> (Partial)
> LOG: Appbase = file:///c:/inetpub/wwwroot/BENCH
> LOG: Initial PrivatePath = bin
> Calling assembly : (Unknown).
> ===
>
> LOG: Policy not being applied to reference at this time (private,
> custom, partial, or location-based assembly bind).
> LOG: Post-policy reference: PartitionWrap
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
> ASP.NET Files/bench/7b2d7936/2f6f01a7/PartitionWrap.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
> ASP.NET
Files/bench/7b2d7936/2f6f01a7/PartitionWrap/PartitionWrap.DLL.
> LOG: Attempting download of new URL
> file:///c:/inetpub/wwwroot/BENCH/bin/PartitionWrap.DLL.
> LOG: Policy not being applied to reference at this time (private,
> custom, partial, or location-based assembly bind).
> LOG: Post-policy reference: PartitionWrap, Version=0.9.0.0,
> Culture=neutral, PublicKeyToken=null
>
> --- In AspNetAnyQuestionIsOk@yahoogroups.com, "Greg Ewing"
> wrote:
> > Dean, do you have a stack trace on the error?
> >
> > Greg Ewing [MVP]
> > www.citidc.com
> >
> > ----------------------------------------
> > From: Dean Fiala
> > Sent: Wednesday, January 12, 2005 10:03 AM
> > To: aspnetanyquestionisok@yahoogroups.com
> > Subject: [AspNetAnyQuestionIsOk] Unmanaged C++ Load Error
> >
> > This is a fun one...
> >
> > I have created a managed wrapper class for a small unmanaged C++
> class
> > to alllow access to the unmanaged code from an ASP.NET web
> > application.
> >
> > The wrapper class and unmanaged class work perfectly well on our
> > development machines, but we receive a dependency error...
> >
> > File or assembly name PartitionWrap, or one of its dependencies,
> was not found.
> >
> > ...when we attempt to run the application on a production server.
> >
> > Both the unmanaged dll (system32) and managed assembly (bin) have
> been
> > placed on the production machine and the permissions are
identical.
> > The production server has the .NET 1.1 framework installed
properly
> > (it serves a number of sites).
> >
> > Any hints to what the error might be would be greatly appreciated.
> >
> > --
> > Dean Fiala
> > Very Practical Software, Inc
> > http://www.vpsw.com
>
>
> [Non-text portions of this message have been removed]
Joined: 11 Jan 2006
Posts: 38
Re: Unmanaged C++ Load Error
Anything installed on the production box that isn`t on dev/test? The
following are just about the only threads I`ve found that might relate to your
problem (out of several pages of Google results):
http://www.error-bank.com/microsoft.public.dotnet.general/137526_Thread.aspx
http://www.dotnet247.com/247reference/msgs/21/108534.aspx
Have you tried Dependency Walker ( http://dependencywalker.com )? I can`t
speak to its effectiveness, but I`ve seen it recommended a time or two.
Also, are there any differences in the web.config or machine.config? You`ve
probably already checked this, but given the situation, I`m just chucking stuff
out there.
Peter
From: "kindawords" dfiala@...
Peter,
No, it is old-fashioned, pre-COM, windows DLL, no registration
required. As long as it is in the app dir or environment path, it
should be found and linked to.
Dean
--- In AspNetAnyQuestionIsOk@yahoogroups.com, "Peter Brunone"
wrote:
> Hi Dean,
>
> Any chance you need to register the unmanaged DLL? I`m just
grasping at straws here...
>
> Peter
>
> From: "kindawords" dfiala@g...
>
> Greg,
> It is actually happening in the app load. Here is the full error
> spew...
>
> Configuration Error
> Description: An error occurred during the processing of a
> configuration file required to service this request. Please review
> the specific error details below and modify your configuration file
> appropriately.
>
> Parser Error Message: File or assembly name PartitionWrap, or one
of
> its dependencies, was not found.
>
> Source Error:
>
> Line 256: Version=1.0.5000.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a" />
> Line 257: Version=1.0.5000.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a" />
> Line 258:
> Line 259:
> Line 260:
>
> Source File: c:windowsmicrosoft.netframeworkv1.1.4322
> Configmachine.config Line: 258
>
> Assembly Load Trace: The following information can be helpful to
> determine why the assembly `PartitionWrap` could not be loaded.
>
> === Pre-bind state information ===
> LOG: DisplayName = PartitionWrap
> (Partial)
> LOG: Appbase = file:///c:/inetpub/wwwroot/BENCH
> LOG: Initial PrivatePath = bin
> Calling assembly : (Unknown).
> ===
>
> LOG: Policy not being applied to reference at this time (private,
> custom, partial, or location-based assembly bind).
> LOG: Post-policy reference: PartitionWrap
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
> ASP.NET Files/bench/7b2d7936/2f6f01a7/PartitionWrap.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
> ASP.NET
Files/bench/7b2d7936/2f6f01a7/PartitionWrap/PartitionWrap.DLL.
> LOG: Attempting download of new URL
> file:///c:/inetpub/wwwroot/BENCH/bin/PartitionWrap.DLL.
> LOG: Policy not being applied to reference at this time (private,
> custom, partial, or location-based assembly bind).
> LOG: Post-policy reference: PartitionWrap, Version=0.9.0.0,
> Culture=neutral, PublicKeyToken=null
>
> --- In AspNetAnyQuestionIsOk@yahoogroups.com, "Greg Ewing"
> wrote:
> > Dean, do you have a stack trace on the error?
> >
> > Greg Ewing [MVP]
> > www.citidc.com
> >
> > ----------------------------------------
> > From: Dean Fiala
> > Sent: Wednesday, January 12, 2005 10:03 AM
> > To: aspnetanyquestionisok@yahoogroups.com
> > Subject: [AspNetAnyQuestionIsOk] Unmanaged C++ Load Error
> >
> > This is a fun one...
> >
> > I have created a managed wrapper class for a small unmanaged C++
> class
> > to alllow access to the unmanaged code from an ASP.NET web
> > application.
> >
> > The wrapper class and unmanaged class work perfectly well on our
> > development machines, but we receive a dependency error...
> >
> > File or assembly name PartitionWrap, or one of its dependencies,
> was not found.
> >
> > ...when we attempt to run the application on a production server.
> >
> > Both the unmanaged dll (system32) and managed assembly (bin) have
> been
> > placed on the production machine and the permissions are
identical.
> > The production server has the .NET 1.1 framework installed
properly
> > (it serves a number of sites).
> >
> > Any hints to what the error might be would be greatly appreciated.
> >
> > --
> > Dean Fiala
> > Very Practical Software, Inc
> > http://www.vpsw.com
[Non-text portions of this message have been removed]
Joined: 11 Jan 2006
Posts: 46
Re: Unmanaged C++ Load Error
Peter,
Thanks for the refs. The web.configs are identical, but i haven`t
checked the machine configs yet -- will do so.
I did download dependency walker and my first walk through didn`t
point to anything. I will have to go through in a more rigorous
manner.
Thanks again. If you have any more ideas please let me know.
Dean
--- In AspNetAnyQuestionIsOk@yahoogroups.com, "Peter Brunone"
<peterlists@b...> wrote:
>
> Anything installed on the production box that isn`t on
dev/test? The following are just about the only threads I`ve found
that might relate to your problem (out of several pages of Google
results):
>
> http://www.error-
bank.com/microsoft.public.dotnet.general/137526_Thread.aspx
>
> http://www.dotnet247.com/247reference/msgs/21/108534.aspx
>
> Have you tried Dependency Walker (
http://dependencywalker.com )? I can`t speak to its effectiveness,
but I`ve seen it recommended a time or two.
>
> Also, are there any differences in the web.config or
machine.config? You`ve probably already checked this, but given the
situation, I`m just chucking stuff out there.
>
> Peter
>
> From: "kindawords" dfiala@g...
>
> Peter,
> No, it is old-fashioned, pre-COM, windows DLL, no registration
> required. As long as it is in the app dir or environment path, it
> should be found and linked to.
>
> Dean
>
> --- In AspNetAnyQuestionIsOk@yahoogroups.com, "Peter Brunone"
> wrote:
> > Hi Dean,
> >
> > Any chance you need to register the unmanaged DLL? I`m just
> grasping at straws here...
> >
> > Peter
> >
> > From: "kindawords" dfiala@g...
> >
> > Greg,
> > It is actually happening in the app load. Here is the full error
> > spew...
> >
> > Configuration Error
> > Description: An error occurred during the processing of a
> > configuration file required to service this request. Please
review
> > the specific error details below and modify your configuration
file
> > appropriately.
> >
> > Parser Error Message: File or assembly name PartitionWrap, or one
> of
> > its dependencies, was not found.
> >
> > Source Error:
> >
> > Line 256: Version=1.0.5000.0, Culture=neutral,
> > PublicKeyToken=b03f5f7f11d50a3a" />
> > Line 257: Version=1.0.5000.0, Culture=neutral,
> > PublicKeyToken=b03f5f7f11d50a3a" />
> > Line 258:
> > Line 259:
> > Line 260:
> >
> > Source File: c:windowsmicrosoft.netframeworkv1.1.4322
> > Configmachine.config Line: 258
> >
> > Assembly Load Trace: The following information can be helpful to
> > determine why the assembly `PartitionWrap` could not be loaded.
> >
> > === Pre-bind state information ===
> > LOG: DisplayName = PartitionWrap
> > (Partial)
> > LOG: Appbase = file:///c:/inetpub/wwwroot/BENCH
> > LOG: Initial PrivatePath = bin
> > Calling assembly : (Unknown).
> > ===
> >
> > LOG: Policy not being applied to reference at this time (private,
> > custom, partial, or location-based assembly bind).
> > LOG: Post-policy reference: PartitionWrap
> > LOG: Attempting download of new URL
> > file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
> > ASP.NET Files/bench/7b2d7936/2f6f01a7/PartitionWrap.DLL.
> > LOG: Attempting download of new URL
> > file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
> > ASP.NET
> Files/bench/7b2d7936/2f6f01a7/PartitionWrap/PartitionWrap.DLL.
> > LOG: Attempting download of new URL
> > file:///c:/inetpub/wwwroot/BENCH/bin/PartitionWrap.DLL.
> > LOG: Policy not being applied to reference at this time (private,
> > custom, partial, or location-based assembly bind).
> > LOG: Post-policy reference: PartitionWrap, Version=0.9.0.0,
> > Culture=neutral, PublicKeyToken=null
> >
> > --- In AspNetAnyQuestionIsOk@yahoogroups.com, "Greg Ewing"
> > wrote:
> > > Dean, do you have a stack trace on the error?
> > >
> > > Greg Ewing [MVP]
> > > www.citidc.com
> > >
> > > ----------------------------------------
> > > From: Dean Fiala
> > > Sent: Wednesday, January 12, 2005 10:03 AM
> > > To: aspnetanyquestionisok@yahoogroups.com
> > > Subject: [AspNetAnyQuestionIsOk] Unmanaged C++ Load Error
> > >
> > > This is a fun one...
> > >
> > > I have created a managed wrapper class for a small unmanaged
C++
> > class
> > > to alllow access to the unmanaged code from an ASP.NET web
> > > application.
> > >
> > > The wrapper class and unmanaged class work perfectly well on our
> > > development machines, but we receive a dependency error...
> > >
> > > File or assembly name PartitionWrap, or one of its
dependencies,
> > was not found.
> > >
> > > ...when we attempt to run the application on a production
server.
> > >
> > > Both the unmanaged dll (system32) and managed assembly (bin)
have
> > been
> > > placed on the production machine and the permissions are
> identical.
> > > The production server has the .NET 1.1 framework installed
> properly
> > > (it serves a number of sites).
> > >
> > > Any hints to what the error might be would be greatly
appreciated.
> > >
> > > --
> > > Dean Fiala
> > > Very Practical Software, Inc
> > > http://www.vpsw.com
>
>
> [Non-text portions of this message have been removed]
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







