C# Applets and Dependencies

J

Jonathan Seidner

Hi,
Another Question.

If my .net Applet uses other assemblies such as a custom
component (a sophisticated grid component for example)
the html refuses to show the applet embedded in the page
which is obivous from a certain standpoint (the assemblies
on which my componenet are depended are not available
on the client computer), but even when those are already
present in the GAC the applet refuses to appear.

Moreover, somebody told me he read in an article somewhere
that if i put those assemblies (the one's that my Applet depends
upon) in the same Directory as the applet itself, they will be downloaded
automatically by the client and then could be used by my applet.

Does anybody have a clue as to this behavior/feature?

thanks,
Jonathan.
 
N

Nicholas Paldino [.NET/C# MVP]

Jonathan,

If you have the assemblies in the same directory that your assembly came
from, then it should execute fine. However, you have to be sure that the
assembly is granted the appropriate permissions to execute.

I am curious, why are you not just creating a smart client and
distributing it over the web (have the exe located at a URL). Hosting in
the browser is one step away from that, and you gain almost nothing from it.
 
D

Dante

Nicholas,

Do you have more information about creating "smart clients"?
Do you know of any good tutorials or websites?
I have created a c# app that is downloaded and executed through the browser
and dealing with the security issues is a nightmare.
I would be very interested in learning more about "smart clients".

Thanks,
Dante



Nicholas Paldino said:
Jonathan,

If you have the assemblies in the same directory that your assembly came
from, then it should execute fine. However, you have to be sure that the
assembly is granted the appropriate permissions to execute.

I am curious, why are you not just creating a smart client and
distributing it over the web (have the exe located at a URL). Hosting in
the browser is one step away from that, and you gain almost nothing from it.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jonathan Seidner said:
Hi,
Another Question.

If my .net Applet uses other assemblies such as a custom
component (a sophisticated grid component for example)
the html refuses to show the applet embedded in the page
which is obivous from a certain standpoint (the assemblies
on which my componenet are depended are not available
on the client computer), but even when those are already
present in the GAC the applet refuses to appear.

Moreover, somebody told me he read in an article somewhere
that if i put those assemblies (the one's that my Applet depends
upon) in the same Directory as the applet itself, they will be downloaded
automatically by the client and then could be used by my applet.

Does anybody have a clue as to this behavior/feature?

thanks,
Jonathan.
 
D

Dante

Jonathan,

Take a look at this. This will help.
http://windowsforms.net/articles/iesourcing.aspx


Jonathan Seidner said:
Hi,

My aim is to use it as part of an asp.net application or some other web
application, not as the whole application.

You said:

"However, you have to be sure that the assembly is granted the appropriate
permissions to execute."

Where do I check that? If these assemblies do not access client resources
Such as file system etc. they are not breaking any "law" as do my applet,
but it still refuses to load...

Thanks,

Jonathan.

message news:[email protected]...
Jonathan,

If you have the assemblies in the same directory that your assembly
came from, then it should execute fine. However, you have to be sure that
the assembly is granted the appropriate permissions to execute.

I am curious, why are you not just creating a smart client and
distributing it over the web (have the exe located at a URL). Hosting in
the browser is one step away from that, and you gain almost nothing from
it.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jonathan Seidner said:
Hi,
Another Question.

If my .net Applet uses other assemblies such as a custom
component (a sophisticated grid component for example)
the html refuses to show the applet embedded in the page
which is obivous from a certain standpoint (the assemblies
on which my componenet are depended are not available
on the client computer), but even when those are already
present in the GAC the applet refuses to appear.

Moreover, somebody told me he read in an article somewhere
that if i put those assemblies (the one's that my Applet depends
upon) in the same Directory as the applet itself, they will be downloaded
automatically by the client and then could be used by my applet.

Does anybody have a clue as to this behavior/feature?

thanks,
Jonathan.
 
J

Jonathan Seidner

Hi,

My aim is to use it as part of an asp.net application or some other web
application, not as the whole application.

You said:

"However, you have to be sure that the assembly is granted the appropriate
permissions to execute."

Where do I check that? If these assemblies do not access client resources
Such as file system etc. they are not breaking any "law" as do my applet,
but it still refuses to load...

Thanks,

Jonathan.

Nicholas Paldino said:
Jonathan,

If you have the assemblies in the same directory that your assembly
came from, then it should execute fine. However, you have to be sure that
the assembly is granted the appropriate permissions to execute.

I am curious, why are you not just creating a smart client and
distributing it over the web (have the exe located at a URL). Hosting in
the browser is one step away from that, and you gain almost nothing from
it.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jonathan Seidner said:
Hi,
Another Question.

If my .net Applet uses other assemblies such as a custom
component (a sophisticated grid component for example)
the html refuses to show the applet embedded in the page
which is obivous from a certain standpoint (the assemblies
on which my componenet are depended are not available
on the client computer), but even when those are already
present in the GAC the applet refuses to appear.

Moreover, somebody told me he read in an article somewhere
that if i put those assemblies (the one's that my Applet depends
upon) in the same Directory as the applet itself, they will be downloaded
automatically by the client and then could be used by my applet.

Does anybody have a clue as to this behavior/feature?

thanks,
Jonathan.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top