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 geirove]

Hello,

I have read Dave's post and Fergal's response here:
http://www.manning.com/ao/dotnet/dotnetao.html?action=getthread&id=7&mypage=1.

I am able to run IEPok (page 73) as described above. However, there is some
strange things going on. First a little background: I am running everything
from a machine called "aika", and I have also mapped aika in the hosts file to
the TCP/IP address of this machine.

The strang thing is, If I set up IEPok.html as follows:

<object id="machine">
classid="http://localhost/WebApplication1/poker.dll#Poker.SimpleMachine"
VIEWASTEXT>

I have to use the following address in IE to start the game:

http://localhost/WebApplication1/IEPok.html

And:
http://aika/WebApplication1/IEPok.html

will NOT work!

If I change IEPok.html as follows:

<object id="machine">
classid="http://aika/WebApplication1/poker.dll#Poker.SimpleMachine"
VIEWASTEXT>

I have to use the following address in IE to start the game:

http://aika/WebApplication1/IEPok.html

And:
http://localhost/WebApplication1/IEPok.html

will NOT work!


QUESTION 1:
What is going on?

-----------------------

I tested this, because I wanted to start IEPok.html from a remote machine
(REX): This machine does not have .NET installed (not enough space, and tooo
slow). But it has IE 6.02600.....

I set up IEPok.html with classid="http://aika/....

and used connection string:

http://aika/WebApplication1/IEPok.html

The Page loads, but when I hit Deal, I get the error: "Error on Page", "Object
does not support this property or method".
It happens in machine.Deal();

I now this, because I put a prompt before and after this method call:

prompt("before");
Hand = machine.Deal();
prompt("after")

The "before "prompt is reached, but not the "after".

QUESTION 2:

Do I need .NET on the remote computer (REX)?

If the error was related to not having .NET on REX, I would expect another
error message?


Please Help.



Geir Ove
import-bot (20211) [Avatar] Offline
#2
Re: IEPok problem - Thanks
[Originally posted by geirove]

Hello,

Thanks a lot. I was just curious: Like to understand what's going on smilie


Geir Ove
import-bot (20211) [Avatar] Offline
#3
Re: IEPok problem
[Originally posted by fgrimes]

Geir,

>> More Poker.dll problems

I don't think the problem is with the dll. Try the solution described by WM
Jones in a message posted here on 07/16/02; i.e. adding the site "as a Trusted
Site in the Internet Explorer Security Page". Please let us know if it works.

>> Do I need .NET on the remote computer (REX)?

Yes, I believe so. See my post "Re: assembly download" on 05/01/02.

Regards,
Fergal
import-bot (20211) [Avatar] Offline
#4
Re: IEPok problem
[Originally posted by geirove]

Hello,

I got it to work on another Remote computer as well. The remote computer
(laptop) is one I have through my work: I don't have Admin. right on it, so I
can't change any settings regarding security in IE (those settings are simply
not present !)


The issue with the URL confuses me....Why can't I mix aika and localhost on
computer "aika" ?



Geir Ove
import-bot (20211) [Avatar] Offline
#5
Re: IEPok problem - more info &amp; questions
[Originally posted by geirove]

Hello,

Some more info:

configuring IEPok.html as follows:

<object id="machine">
classid="http://aika/WebApplication1/poker.dll#Poker.SimpleMachine"
VIEWASTEXT>

The game can be started on my remote machine (rex) as follows:

http://aika/WebApplication1/IEPok.html

Before I did this, I cleared the download cache on both sides (rex and aika).

The game starts and runs nicely on rex, but poker.dll is not found in the
download cache on either side afterwards!

Questions:

a) Are poker.dll run over the net in this situation?
b) Is there a way to get IE to download a dll so it is run locally?


Geir Ove
import-bot (20211) [Avatar] Offline
#6
Re: IEPok problem - more info &amp; questions
[Originally posted by fgrimes]

Hi Geir,

I'm a little confused.

>> Is there a way to get IE to download a dll so it is run locally?

Yes. Indeed that is the point of the IEPok example - see sec. 3.6 etc.

Try adding aika as a trusted site, as suggested. If you don't have the
necessary rights, then just move on. After all, you've succesfully executed
the example already. These other issues are just housekeeping details and are
of no particular importance or relevance to the material.

Regards,
Fergal