473,396 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Using remoting features inside a .NET applet loaded in a tag object

First of all, is it possible usign .NET remoting feature inside a .NET
applet loaded into a tag object inside an HTML page ?

<OBJECT id="myID" height="150" width="300"
classid="http:applet.dll#test.applet"</OBJECT>

If not please can anyone explain why ?

I think yes and so I'd written a small example immediately I've met a
problem.

I'm using .NET Framework v. 1.1.4322 and it's the only version
installed both client side and server side.

My test applet is correctly loaded into IE client but when I try to
setting programmatically the remoting I aways obtain a
SecurityException even if the assembly is strong name signed and client
side fully trusted.

The exception is the following:
System.Security.SecurityException: Request for the permission of type
System.Security.Permissions.SecurityPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed.
at
System.Security.CodeAccessSecurityEngine.CheckToke nBasedSetHelper(Boolean
ignoreGrants, TokenBasedSet grants, TokenBasedSet denied, TokenBasedSet
demands)
at
System.Security.CodeAccessSecurityEngine.CheckSetH elper(PermissionSet
grants, PermissionSet denied, PermissionSet demands)
at
System.Runtime.Remoting.Channels.ChannelServices.R egisterChannel(IChannel
chnl) at test.applet.Check()

Could anyone help me please ?

Best regards

Sep 21 '06 #1
5 3567
Hi,

..NET controls, when loaded inside IE, are given pretty restricted security
permissions. In particular, they are not allowed to access the network. You
can change this permission set by using the .NET Framework configuration
tools, but this will have to be done on every machine where your code is
going to be used.

Consider using an AJAX-like approach when JavaScript code on the page uses
the XMLHttpRequest object to talk to the server and then feeds the received
data to the .NET object hosted within the OBJECT tag.

--
Regards,
Dmytro Lapshyn [MVP]
http://blogs.vbcity.com/DmytroL

"Lambuz" <la*****@gmail.comwrote in message
news:11*********************@d34g2000cwd.googlegro ups.com...
First of all, is it possible usign .NET remoting feature inside a .NET
applet loaded into a tag object inside an HTML page ?

<OBJECT id="myID" height="150" width="300"
classid="http:applet.dll#test.applet"</OBJECT>

If not please can anyone explain why ?

I think yes and so I'd written a small example immediately I've met a
problem.

I'm using .NET Framework v. 1.1.4322 and it's the only version
installed both client side and server side.

My test applet is correctly loaded into IE client but when I try to
setting programmatically the remoting I aways obtain a
SecurityException even if the assembly is strong name signed and client
side fully trusted.

The exception is the following:
System.Security.SecurityException: Request for the permission of type
System.Security.Permissions.SecurityPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed.
at
System.Security.CodeAccessSecurityEngine.CheckToke nBasedSetHelper(Boolean
ignoreGrants, TokenBasedSet grants, TokenBasedSet denied, TokenBasedSet
demands)
at
System.Security.CodeAccessSecurityEngine.CheckSetH elper(PermissionSet
grants, PermissionSet denied, PermissionSet demands)
at
System.Runtime.Remoting.Channels.ChannelServices.R egisterChannel(IChannel
chnl) at test.applet.Check()

Could anyone help me please ?

Best regards
Sep 22 '06 #2
.NET controls, when loaded inside IE, are given pretty restricted security
permissions. In particular, they are not allowed to access the network. You
can change this permission set by using the .NET Framework configuration
tools, but this will have to be done on every machine where your code is
going to be used.
While I was waiting an answer from somebody I've solved my problem, but
now I've got another one.

The code I'm using is the following:

PermissionSet ps = new PermissionSet(PermissionState.None);
ps.AddPermission(new SecurityPermission(PermissionState.Unrestricted));

ps.AddPermission(new SocketPermission(PermissionState.Unrestricted));
ps.Assert();

TcpClientChannel _channel = new TcpClientChannel();
ChannelServices.RegisterChannel(_channel);
RemotingConfiguration.RegisterActivatedClientType( typeof(DataProvider),"tcp://localhost:8081");

//DataProvider dp = (DataProvider)
(Activator.CreateInstance(typeof(DataProvider)));
DataProvider dp = new DataProvider();
As you can see even if my assembly is strong name signed and fully
trusted by strong nome reference I must create to permission and it's
very strange for me...can you explain to me ?

My real problem is that if I create my remote object by Activatar
object I always obtain the following exception:

System.Security.SecurityException: Request failed.
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at IBM.Cipros.Refinery.CPRSWebClient.Check()

The granted set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission
class="System.Security.Permissions.EnvironmentPerm ission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Read="USERNAME"/>
<IPermission
class="System.Security.Permissions.FileDialogPermi ssion, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission
class="System.Security.Permissions.IsolatedStorage FilePermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Allowed="AssemblyIsolationByUser"
UserQuota="9223372036854775807"
Expiry="9223372036854775807"
Permanent="True"/>
<IPermission
class="System.Security.Permissions.ReflectionPermi ssion, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Flags="ReflectionEmit"/>
<IPermission class="System.Security.Permissions.SecurityPermiss ion,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Flags="Assertion, Execution, BindingRedirects"/>
<IPermission class="System.Security.Permissions.UIPermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission class="System.Net.DnsPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission class="System.Drawing.Printing.PrintingPermission,
System.Drawing, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
version="1"
Level="DefaultPrinting"/>
<IPermission class="System.Diagnostics.EventLogPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<Machine name="."
access="Instrument"/>
</IPermission>
<IPermission class="System.Net.WebPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<ConnectAccess>
<URI uri="(https|http)://localhost/.*"/>
</ConnectAccess>
</IPermission>
<IPermission
class="System.Security.Permissions.SiteIdentityPer mission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Site="localhost"/>
<IPermission
class="System.Security.Permissions.UrlIdentityPerm ission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Url="http://localhost/"/>
<IPermission
class="System.Security.Permissions.ZoneIdentityPer mission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Zone="Intranet"/>
</PermissionSet>

If I use directly the contructor of my remote object it takes a couple
of minute to create it, it is very strange because if I use the
prevoius code inside a console application the remote creation is very
quickly, quite immediat. Do you know the reason ?

>
Consider using an AJAX-like approach when JavaScript code on the page uses
the XMLHttpRequest object to talk to the server and then feeds the received
data to the .NET object hosted within the OBJECT tag.
it is already the first alternative if my initial solution is
impossible to realize.

Sep 22 '06 #3
As you can see even if my assembly is strong name signed and fully
trusted by strong nome reference I must create to permission and it's
very strange for me...can you explain to me ?
I wish I could remember all the intricacies of .NET Framework security...
especially when it comes to hosting .NET objects in IE. As I understand,
you've already created a code group with the FullTrust permission set and
the membership condition for this group is matching a certain assembly
strong name. Have you tested that the membership condition works properly?
You can do so by launching the .NET Configuration MMC console, then clicking
on the "Runtime Security Policy" node in the left pane and then clicking on
the "Evaluate Assembly" task link in the right pane.

Another thing you can try is trying the "Adjust Zone Security" wizard, a
link to which is available on the same page in the right pane. However, be
careful and don't loosen the security too much. I'd rather consider
loosening the security restrictions for the "Trusted Sites" zone (given you
have the ability and willingness to consider the site hosting the
DataProvider as a trusted site).

--
Regards,
Dmytro Lapshyn [MVP]
http://blogs.vbcity.com/DmytroL

"Lambuz" <la*****@gmail.comwrote in message
news:11**********************@d34g2000cwd.googlegr oups.com...
>.NET controls, when loaded inside IE, are given pretty restricted
security
permissions. In particular, they are not allowed to access the network.
You
can change this permission set by using the .NET Framework configuration
tools, but this will have to be done on every machine where your code is
going to be used.

While I was waiting an answer from somebody I've solved my problem, but
now I've got another one.

The code I'm using is the following:

PermissionSet ps = new PermissionSet(PermissionState.None);
ps.AddPermission(new SecurityPermission(PermissionState.Unrestricted));

ps.AddPermission(new SocketPermission(PermissionState.Unrestricted));
ps.Assert();

TcpClientChannel _channel = new TcpClientChannel();
ChannelServices.RegisterChannel(_channel);
RemotingConfiguration.RegisterActivatedClientType( typeof(DataProvider),"tcp://localhost:8081");

//DataProvider dp = (DataProvider)
(Activator.CreateInstance(typeof(DataProvider)));
DataProvider dp = new DataProvider();
As you can see even if my assembly is strong name signed and fully
trusted by strong nome reference I must create to permission and it's
very strange for me...can you explain to me ?
My real problem is that if I create my remote object by Activatar
object I always obtain the following exception:

System.Security.SecurityException: Request failed.
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at IBM.Cipros.Refinery.CPRSWebClient.Check()

The granted set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission
class="System.Security.Permissions.EnvironmentPerm ission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Read="USERNAME"/>
<IPermission
class="System.Security.Permissions.FileDialogPermi ssion, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission
class="System.Security.Permissions.IsolatedStorage FilePermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Allowed="AssemblyIsolationByUser"
UserQuota="9223372036854775807"
Expiry="9223372036854775807"
Permanent="True"/>
<IPermission
class="System.Security.Permissions.ReflectionPermi ssion, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Flags="ReflectionEmit"/>
<IPermission class="System.Security.Permissions.SecurityPermiss ion,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Flags="Assertion, Execution, BindingRedirects"/>
<IPermission class="System.Security.Permissions.UIPermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission class="System.Net.DnsPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission class="System.Drawing.Printing.PrintingPermission,
System.Drawing, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
version="1"
Level="DefaultPrinting"/>
<IPermission class="System.Diagnostics.EventLogPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<Machine name="."
access="Instrument"/>
</IPermission>
<IPermission class="System.Net.WebPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<ConnectAccess>
<URI uri="(https|http)://localhost/.*"/>
</ConnectAccess>
</IPermission>
<IPermission
class="System.Security.Permissions.SiteIdentityPer mission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Site="localhost"/>
<IPermission
class="System.Security.Permissions.UrlIdentityPerm ission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Url="http://localhost/"/>
<IPermission
class="System.Security.Permissions.ZoneIdentityPer mission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Zone="Intranet"/>
</PermissionSet>

If I use directly the contructor of my remote object it takes a couple
of minute to create it, it is very strange because if I use the
prevoius code inside a console application the remote creation is very
quickly, quite immediat. Do you know the reason ?

>>
Consider using an AJAX-like approach when JavaScript code on the page
uses
the XMLHttpRequest object to talk to the server and then feeds the
received
data to the .NET object hosted within the OBJECT tag.

it is already the first alternative if my initial solution is
impossible to realize.
Sep 25 '06 #4
You can do so by launching the .NET Configuration MMC console, then clicking
on the "Runtime Security Policy" node in the left pane and then clicking on
the "Evaluate Assembly" task link in the right pane.
I've already tested it and everything is ok.

What about my other problem:

-----------------------
If I use directly the contructor of my remote object it takes a couple
of minute to create it, it is very strange because if I use the
prevoius code inside a console application the remote creation is very
quickly, quite immediat. Do you know the reason ?
---------------------------------
>
Another thing you can try is trying the "Adjust Zone Security" wizard, a
link to which is available on the same page in the right pane. However, be
careful and don't loosen the security too much. I'd rather consider
loosening the security restrictions for the "Trusted Sites" zone (given you
have the ability and willingness to consider the site hosting the
DataProvider as a trusted site).

--
Regards,
Dmytro Lapshyn [MVP]
http://blogs.vbcity.com/DmytroL

"Lambuz" <la*****@gmail.comwrote in message
news:11**********************@d34g2000cwd.googlegr oups.com...
.NET controls, when loaded inside IE, are given pretty restricted
security
permissions. In particular, they are not allowed to access the network.
You
can change this permission set by using the .NET Framework configuration
tools, but this will have to be done on every machine where your code is
going to be used.
While I was waiting an answer from somebody I've solved my problem, but
now I've got another one.

The code I'm using is the following:

PermissionSet ps = new PermissionSet(PermissionState.None);
ps.AddPermission(new SecurityPermission(PermissionState.Unrestricted));

ps.AddPermission(new SocketPermission(PermissionState.Unrestricted));
ps.Assert();

TcpClientChannel _channel = new TcpClientChannel();
ChannelServices.RegisterChannel(_channel);
RemotingConfiguration.RegisterActivatedClientType( typeof(DataProvider),"tcp://localhost:8081");

//DataProvider dp = (DataProvider)
(Activator.CreateInstance(typeof(DataProvider)));
DataProvider dp = new DataProvider();
As you can see even if my assembly is strong name signed and fully
trusted by strong nome reference I must create to permission and it's
very strange for me...can you explain to me ?
My real problem is that if I create my remote object by Activatar
object I always obtain the following exception:

System.Security.SecurityException: Request failed.
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at IBM.Cipros.Refinery.CPRSWebClient.Check()

The granted set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission
class="System.Security.Permissions.EnvironmentPerm ission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Read="USERNAME"/>
<IPermission
class="System.Security.Permissions.FileDialogPermi ssion, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission
class="System.Security.Permissions.IsolatedStorage FilePermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Allowed="AssemblyIsolationByUser"
UserQuota="9223372036854775807"
Expiry="9223372036854775807"
Permanent="True"/>
<IPermission
class="System.Security.Permissions.ReflectionPermi ssion, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Flags="ReflectionEmit"/>
<IPermission class="System.Security.Permissions.SecurityPermiss ion,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Flags="Assertion, Execution, BindingRedirects"/>
<IPermission class="System.Security.Permissions.UIPermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission class="System.Net.DnsPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission class="System.Drawing.Printing.PrintingPermission,
System.Drawing, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
version="1"
Level="DefaultPrinting"/>
<IPermission class="System.Diagnostics.EventLogPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<Machine name="."
access="Instrument"/>
</IPermission>
<IPermission class="System.Net.WebPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<ConnectAccess>
<URI uri="(https|http)://localhost/.*"/>
</ConnectAccess>
</IPermission>
<IPermission
class="System.Security.Permissions.SiteIdentityPer mission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Site="localhost"/>
<IPermission
class="System.Security.Permissions.UrlIdentityPerm ission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Url="http://localhost/"/>
<IPermission
class="System.Security.Permissions.ZoneIdentityPer mission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Zone="Intranet"/>
</PermissionSet>

If I use directly the contructor of my remote object it takes a couple
of minute to create it, it is very strange because if I use the
prevoius code inside a console application the remote creation is very
quickly, quite immediat. Do you know the reason ?
I'll try...but please take a look at my other problem described above.

thanks

Sep 25 '06 #5
Hi !

I remembered just, that in my own controls using remoting - I never
found the time to develop them to it's end - I had the same problem.

Once upon a time in this group, someone posted a workaround, which
helped me. Use simply the following statement, before you initialize the
remoting layer:

System.Configuration.ConfigurationSettings.GetConf ig("DNS");

May be, that is helpful for you too.
Best regards,
Manfred
The original thread was:

http://groups.google.de/group/micros...e4d4c8638909a2
One of the posters links to the solution:

http://www.genuinechannels.com/Conte...x?id=20&type=1
Lambuz wrote:
>You can do so by launching the .NET Configuration MMC console, then clicking
on the "Runtime Security Policy" node in the left pane and then clicking on
the "Evaluate Assembly" task link in the right pane.

I've already tested it and everything is ok.

What about my other problem:

-----------------------
If I use directly the contructor of my remote object it takes a couple
of minute to create it, it is very strange because if I use the
prevoius code inside a console application the remote creation is very
quickly, quite immediat. Do you know the reason ?
---------------------------------
>Another thing you can try is trying the "Adjust Zone Security" wizard, a
link to which is available on the same page in the right pane. However, be
careful and don't loosen the security too much. I'd rather consider
loosening the security restrictions for the "Trusted Sites" zone (given you
have the ability and willingness to consider the site hosting the
DataProvider as a trusted site).

--
Regards,
Dmytro Lapshyn [MVP]
http://blogs.vbcity.com/DmytroL

"Lambuz" <la*****@gmail.comwrote in message
news:11**********************@d34g2000cwd.googleg roups.com...
>>>.NET controls, when loaded inside IE, are given pretty restricted
security
permissions. In particular, they are not allowed to access the network.
You
can change this permission set by using the .NET Framework configuration
tools, but this will have to be done on every machine where your code is
going to be used.
While I was waiting an answer from somebody I've solved my problem, but
now I've got another one.

The code I'm using is the following:

PermissionSet ps = new PermissionSet(PermissionState.None);
ps.AddPermission(new SecurityPermission(PermissionState.Unrestricted));

ps.AddPermission(new SocketPermission(PermissionState.Unrestricted));
ps.Assert();

TcpClientChannel _channel = new TcpClientChannel();
ChannelServices.RegisterChannel(_channel);
RemotingConfiguration.RegisterActivatedClientTyp e(typeof(DataProvider),"tcp://localhost:8081");

//DataProvider dp = (DataProvider)
(Activator.CreateInstance(typeof(DataProvider))) ;
DataProvider dp = new DataProvider();
As you can see even if my assembly is strong name signed and fully
trusted by strong nome reference I must create to permission and it's
very strange for me...can you explain to me ?
My real problem is that if I create my remote object by Activatar
object I always obtain the following exception:

System.Security.SecurityException: Request failed.
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at IBM.Cipros.Refinery.CPRSWebClient.Check()

The granted set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission
class="System.Security.Permissions.EnvironmentPe rmission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Read="USERNAME"/>
<IPermission
class="System.Security.Permissions.FileDialogPer mission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission
class="System.Security.Permissions.IsolatedStora geFilePermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Allowed="AssemblyIsolationByUser"
UserQuota="9223372036854775807"
Expiry="9223372036854775807"
Permanent="True"/>
<IPermission
class="System.Security.Permissions.ReflectionPer mission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Flags="ReflectionEmit"/>
<IPermission class="System.Security.Permissions.SecurityPermiss ion,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Flags="Assertion, Execution, BindingRedirects"/>
<IPermission class="System.Security.Permissions.UIPermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission class="System.Net.DnsPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission class="System.Drawing.Printing.PrintingPermission,
System.Drawing, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
version="1"
Level="DefaultPrinting"/>
<IPermission class="System.Diagnostics.EventLogPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<Machine name="."
access="Instrument"/>
</IPermission>
<IPermission class="System.Net.WebPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<ConnectAccess>
<URI uri="(https|http)://localhost/.*"/>
</ConnectAccess>
</IPermission>
<IPermission
class="System.Security.Permissions.SiteIdentityP ermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Site="localhost"/>
<IPermission
class="System.Security.Permissions.UrlIdentityPe rmission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Url="http://localhost/"/>
<IPermission
class="System.Security.Permissions.ZoneIdentityP ermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Zone="Intranet"/>
</PermissionSet>

If I use directly the contructor of my remote object it takes a couple
of minute to create it, it is very strange because if I use the
prevoius code inside a console application the remote creation is very
quickly, quite immediat. Do you know the reason ?

I'll try...but please take a look at my other problem described above.

thanks
Oct 13 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Put 030516 in email subj to get thru | last post by:
I've always been bothered about having to statically declare the size of a Java applet window (container?) in the calling HTML. I've always wanted the moral equivalent of width=50% statement (of...
0
by: Björn Jansson | last post by:
Hi, I have made a "shell" for Windows applications. The shell contains auto update, authentication and other things that are common for applications. The shell can contain 1 or more applications....
2
by: dxben | last post by:
I am considering a situation where I have (n) number of form windows, each with an instance of the Microsoft Web Browser Control (IE) on each form. In each web browser control is an HTML page that...
2
by: Blondie21 | last post by:
Hi, I have a .jsp file in the following format: .... html headers, jsp code, html code... <jsp:plugin type="applet" code="path.in.packet.appletclassname.class" codebase=".."...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
0
by: ankur | last post by:
WHEN I RUN THIS WEB APPLICATION ON Tomcat5.5.9 SERVER MY HttpChatApplet sccessfully Loaded from ChatDispatch but running on some another PC HttpChatApplet not loaded my Coad ...
8
by: smthames | last post by:
I have a pretty sophisticated applet running from several JARs. The main applet is in a signed JAR and performs local file accesses. This works fine. However, the applet in this signed JAR is...
0
by: pekkahu | last post by:
I need to send an http request from an applet to a web server other than the one where the applet was loaded from. Sandbox prohibits doing this directly. The applet sandbox only allows connetion to...
7
by: Marc Gravell | last post by:
The weird thing Evidenced by? You didn't say why you think this... And over what time interval are you seeing tihs? Are you sure you aren't getting different ProcessAgent instances from a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.