The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by dasousa]

I am attempting to download the person.dll assembly from IIS as detailed in
section 2.7.1. I am running Windows XP, and have installed the .NET Framework
SP1 update. I am getting the following error message. I think it might be
related to new security in SP1, but I am not sure since I have never seen the
code work. Any suggestions? I can browse to the directory listing in IE,
just like in figure 2.13 and see the person.dll.

icrosoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:CSharpGrimesPerson>people

Unhandled Exception: System.IO.FileNotFoundException: File or assembly name
person, or one of its dependencies, was not found.
File name: "person"
at People.Main()

Fusion log follows:
=== Pre-bind state information ===
LOG: DisplayName = person, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=8b29ae9b0f7f3a09
(Fully-specified)
LOG: Appbase = C:CSharpGrimesPerson
LOG: Initial PrivatePath = NULL
Calling assembly : people, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
.
===

LOG: Found application configuration file
(C:CSharpGrimesPersonpeople.exe.config).
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:WINDOWSMicrosoft.NETFrameworkv1.0.3705configmachine.config.
LOG: Post-policy reference: person, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=8b29ae9b0f7f3a09
LOG: Attempting download of new URL file:///C:/CSharp/Grimes/Person/person.DLL.
LOG: Attempting download of new URL
file:///C:/CSharp/Grimes/Person/person/person.DLL.
LOG: Attempting download of new URL file:///C:/CSharp/Grimes/Person/person.EXE.
LOG: Attempting download of new URL
file:///C:/CSharp/Grimes/Person/person/person.EXE.
import-bot (20211) [Avatar] Offline
#2
Re: Downloading Assembly
[Originally posted by fgrimes]

Hi Dave,

Downloading assemblies has been a subject of discussion here. So first check
postings on 2/15, 4/2, and 4/30. Perhaps they may help.

Regards,
Fergal
import-bot (20211) [Avatar] Offline
#3
Re: Downloading Assembly
[Originally posted by dasousa]

Here is the story with this error for anybody else who makes the same mistake
as I did. The following part of the message highlights the problem:

LOG: Post-policy reference: person, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=8b29ae9b0f7f3a09

As you can see, I had compiled people.cs with a reference to the version 2
dll. When I recompiled with version 1 everything was OK. The assembly did
not download however. I am assuming because I was running IIS and doing the
development on the same machine. I could verify that .Net was attempting the
download by changing the name of the href in the codebase tag to
"person1.dll". The error message that results from this is:

LOG: Attempting download of new URL http://localhost/deploy/person1.dll

I am assuming that this means that the application config file was used.

I can recreate the original error message by changing the version attribute to
"2.0.0.0" in the codebase tag.

Dave


> I am attempting to download the person.dll assembly from IIS as detailed in
> section 2.7.1. I am running Windows XP, and have installed the .NET Framework
> SP1 update. I am getting the following error message. I think it might be
> related to new security in SP1, but I am not sure since I have never seen the
> code work. Any suggestions? I can browse to the directory listing in IE,
> just like in figure 2.13 and see the person.dll.
>
> icrosoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> C:CSharpGrimesPerson>people
>
> Unhandled Exception: System.IO.FileNotFoundException: File or assembly name
> person, or one of its dependencies, was not found.
> File name: "person"
> at People.Main()
>
> Fusion log follows:
> === Pre-bind state information ===
> LOG: DisplayName = person, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=8b29ae9b0f7f3a09
> (Fully-specified)
> LOG: Appbase = C:CSharpGrimesPerson
> LOG: Initial PrivatePath = NULL
> Calling assembly : people, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null
> .
> ===
>
> LOG: Found application configuration file
> (C:CSharpGrimesPersonpeople.exe.config).
> LOG: Publisher policy file is not found.
> LOG: Host configuration file not found.
> LOG: Using machine configuration file from
> C:WINDOWSMicrosoft.NETFrameworkv1.0.3705configmachine.config.
> LOG: Post-policy reference: person, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=8b29ae9b0f7f3a09
> LOG: Attempting download of new URL
file:///C:/CSharp/Grimes/Person/person.DLL.
> LOG: Attempting download of new URL
> file:///C:/CSharp/Grimes/Person/person/person.DLL.
> LOG: Attempting download of new URL
file:///C:/CSharp/Grimes/Person/person.EXE.
> LOG: Attempting download of new URL
> file:///C:/CSharp/Grimes/Person/person/person.EXE.
import-bot (20211) [Avatar] Offline
#4
Re: Downloading Assembly
[Originally posted by fgrimes]

Dave...
Thanks for the update. Downloading assemblies seems to be a common cause of
error. I find the log output is not as helpful as it could be.
Regards,
Fergal