473,406 Members | 2,356 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,406 software developers and data experts.

.NET Equivalent of an Applet?

Does the .NET framework provide any equivalent of an applet?

I've under Winforms Hosted in IE - but Security is a major headache.

Is there a way to bypass these security headaches? Can I sign the control,
etc. etc?
Oct 17 '07 #1
11 3313
>Does the .NET framework provide any equivalent of an applet?
You mean a Java applet?

Have you looked at Silverlight?
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Oct 17 '07 #2
On Oct 17, 4:15 pm, Spam Catcher <spamhoney...@rogers.comwrote:
Does the .NET framework provide any equivalent of an applet?

I've under Winforms Hosted in IE - but Security is a major headache.

Is there a way to bypass these security headaches? Can I sign the control,
etc. etc?
As Mattias suggested there is silverlight - which has the advantage of
being cross platform, there is even a port underway for linux, known
as moonlight. The biggest problem with silverlight, is really that it
is so new - there aren't a lot of controls for it (that could have
changed by now, the last time I lookes was about 3 or 4 months ago),
and so unless your doing media work, it might not be up to what you
need to do.

The other option is the xbap - or xml browser application. They can
be hosted inside of an iframe in an asp or html page. xbap's are
click once applications that run inside of a sandbox, which is there
biggest problem. Right now, that sandbox, IMHO, is way to
restrictive. It is supposedly going to loosen over time, but right
now it really depends on what you want to do and who your audience is
that should be the determining factor.

So, describe what you want the applet to do (in a general sense), and
maybe you might get a better, more specific answer :)

--
Tom Shelton

Oct 17 '07 #3
Mattias Sjögren <ma********************@mvps.orgwrote in news:
#z**************@TK2MSFTNGP02.phx.gbl:
>>Does the .NET framework provide any equivalent of an applet?

You mean a Java applet?

Have you looked at Silverlight?
Ya silverlight comes close - but unfortunately it requires yet another
runtime. <sigh>

Also the tools don't seem to be production quality?

I guess silverlight is Microsoft's answer?
Oct 18 '07 #4
Tom Shelton <to*********@comcast.netwrote in
news:11**********************@v29g2000prd.googlegr oups.com:
As Mattias suggested there is silverlight - which has the advantage of
being cross platform, there is even a port underway for linux, known
as moonlight. The biggest problem with silverlight, is really that it
is so new - there aren't a lot of controls for it (that could have
changed by now, the last time I lookes was about 3 or 4 months ago),
and so unless your doing media work, it might not be up to what you
need to do.
I basically want to deploy an application via the browser. The
application needs to send and receive state information continously from
a central server.

I could use AJAX for this type of thing, but I have not found the
reliablity to be there (i.e. 8 hour work days).

The other option is the xbap - or xml browser application. They can
be hosted inside of an iframe in an asp or html page. xbap's are
click once applications that run inside of a sandbox, which is there
biggest problem. Right now, that sandbox, IMHO, is way to
restrictive. It is supposedly going to loosen over time, but right
now it really depends on what you want to do and who your audience is
that should be the determining factor.
So true - the sandbox is much too restrictive. It would be nice to be
able to make a network connection back to the host with our a security
exception!
So, describe what you want the applet to do (in a general sense), and
maybe you might get a better, more specific answer :)
I'm building a client which talks to a central server. The client
controls the state of the user on the server side. When the server
detects that the user is in a particular state... and has a particular
piece of work for the user, the server will send the work to the client.

Couple issues:

1. The information must be transmitted to the client ASAP (i.e. no
delay!)

2. Application must be deploy via a web browser.

If this were a desktop app, this would be a piece of cake... but because
it's in a browser, I'm struggling with the technological limitations.

Here are the technologies I looked at:

1. Java
2. .NET WinForms Control - Too much security
3. Silverlight - Too new, yet another runtime
4. Flash/Flex - no skills
5. AJAX - don't think it's reliable enough and requires polling which
seems to cause issues with IE

Users will be intranet users - but I won't be able to change too many
security settings, so I'm stuck with the basic IE settings.

So I was hoping .NET would have something equivalent to Java Applets /
Java Web Start which has a decent set of permissions...but I guess not?
Oct 18 '07 #5
On Oct 18, 1:17 pm, Spam Catcher <spamhoney...@rogers.comwrote:
Tom Shelton <tom_shel...@comcast.netwrote innews:11**********************@v29g2000prd.google groups.com:
As Mattias suggested there is silverlight - which has the advantage of
being cross platform, there is even a port underway for linux, known
as moonlight. The biggest problem with silverlight, is really that it
is so new - there aren't a lot of controls for it (that could have
changed by now, the last time I lookes was about 3 or 4 months ago),
and so unless your doing media work, it might not be up to what you
need to do.

I basically want to deploy an application via the browser. The
application needs to send and receive state information continously from
a central server.

I could use AJAX for this type of thing, but I have not found the
reliablity to be there (i.e. 8 hour work days).
The other option is the xbap - or xml browser application. They can
be hosted inside of an iframe in an asp or html page. xbap's are
click once applications that run inside of a sandbox, which is there
biggest problem. Right now, that sandbox, IMHO, is way to
restrictive. It is supposedly going to loosen over time, but right
now it really depends on what you want to do and who your audience is
that should be the determining factor.

So true - the sandbox is much too restrictive. It would be nice to be
able to make a network connection back to the host with our a security
exception!
So, describe what you want the applet to do (in a general sense), and
maybe you might get a better, more specific answer :)

I'm building a client which talks to a central server. The client
controls the state of the user on the server side. When the server
detects that the user is in a particular state... and has a particular
piece of work for the user, the server will send the work to the client.

Couple issues:

1. The information must be transmitted to the client ASAP (i.e. no
delay!)

2. Application must be deploy via a web browser.

If this were a desktop app, this would be a piece of cake... but because
it's in a browser, I'm struggling with the technological limitations.

Here are the technologies I looked at:

1. Java
2. .NET WinForms Control - Too much security
3. Silverlight - Too new, yet another runtime
4. Flash/Flex - no skills
5. AJAX - don't think it's reliable enough and requires polling which
seems to cause issues with IE

Users will be intranet users - but I won't be able to change too many
security settings, so I'm stuck with the basic IE settings.

So I was hoping .NET would have something equivalent to Java Applets /
Java Web Start which has a decent set of permissions...but I guess not?
Hmmm, sounds like an XBAP is almost perfect... The big problem that
you would have to overcome is the security restrictions on network
communication. Off the top of my head, the way to overcome this would
depend on if you were going to use .NET 3.0 or .NET 3.5 :) If in 3.0,
then you could write a simple asp.net page, that you could
periodically request from the server that could esentially pull data
from the server and return it to you - it could even be a serialized
object, as long as it is xml serialization (or xaml). One word of
warning on this approach - if you plan on displaying web content in a
frame control in 3.0 in an xbap hosted inside of an iframe, forget
about it.

In 3.5, you can actually use WCF web services from an XBAP. Still
sort of a polling method, but maybe a little cleaner. Personally, I
think they should do like they do in java and allow you to open a
connection back to your server of origin with a socket....

--
Tom Shelton

Oct 18 '07 #6
This would left you with :
- Java

You may want also to post about the ogrinal security problem you have but
if I remember you can cojnect with the originating site but not with third
party sites...
--
Patrice
"Spam Catcher" <sp**********@rogers.coma écrit dans le message de news:
Xn**********************************@127.0.0.1...
Tom Shelton <to*********@comcast.netwrote in
news:11**********************@v29g2000prd.googlegr oups.com:
>As Mattias suggested there is silverlight - which has the advantage of
being cross platform, there is even a port underway for linux, known
as moonlight. The biggest problem with silverlight, is really that it
is so new - there aren't a lot of controls for it (that could have
changed by now, the last time I lookes was about 3 or 4 months ago),
and so unless your doing media work, it might not be up to what you
need to do.

I basically want to deploy an application via the browser. The
application needs to send and receive state information continously from
a central server.

I could use AJAX for this type of thing, but I have not found the
reliablity to be there (i.e. 8 hour work days).

>The other option is the xbap - or xml browser application. They can
be hosted inside of an iframe in an asp or html page. xbap's are
click once applications that run inside of a sandbox, which is there
biggest problem. Right now, that sandbox, IMHO, is way to
restrictive. It is supposedly going to loosen over time, but right
now it really depends on what you want to do and who your audience is
that should be the determining factor.

So true - the sandbox is much too restrictive. It would be nice to be
able to make a network connection back to the host with our a security
exception!
>So, describe what you want the applet to do (in a general sense), and
maybe you might get a better, more specific answer :)

I'm building a client which talks to a central server. The client
controls the state of the user on the server side. When the server
detects that the user is in a particular state... and has a particular
piece of work for the user, the server will send the work to the client.

Couple issues:

1. The information must be transmitted to the client ASAP (i.e. no
delay!)

2. Application must be deploy via a web browser.

If this were a desktop app, this would be a piece of cake... but because
it's in a browser, I'm struggling with the technological limitations.

Here are the technologies I looked at:

1. Java
2. .NET WinForms Control - Too much security
3. Silverlight - Too new, yet another runtime
4. Flash/Flex - no skills
5. AJAX - don't think it's reliable enough and requires polling which
seems to cause issues with IE

Users will be intranet users - but I won't be able to change too many
security settings, so I'm stuck with the basic IE settings.

So I was hoping .NET would have something equivalent to Java Applets /
Java Web Start which has a decent set of permissions...but I guess not?

Oct 19 '07 #7
On Thu, 18 Oct 2007 19:12:34 GMT, Spam Catcher
<sp**********@rogers.comwrote:
>Mattias Sjögren <ma********************@mvps.orgwrote in news:
#z**************@TK2MSFTNGP02.phx.gbl:
>>>Does the .NET framework provide any equivalent of an applet?

You mean a Java applet?

Have you looked at Silverlight?

Ya silverlight comes close - but unfortunately it requires yet another
runtime. <sigh>

Also the tools don't seem to be production quality?

I guess silverlight is Microsoft's answer?
Alas, there's no getting away from runtimes. Every solution requires a
runtime:

- Flash
- Applets (Java JRE)
- Silverlight
- XBAP (.NET Framework 3)

--
http://bytes.thinkersroom.com
Oct 19 '07 #8
"Rad [Visual C# MVP]" <ra*@nospam.comwrote in
news:ed********************************@4ax.com:
Alas, there's no getting away from runtimes. Every solution requires a
runtime:

- Flash
- Applets (Java JRE)
- Silverlight
- XBAP (.NET Framework 3)
True, but Flash and Applets have been around for ages. .NET already has a
runtime (the framework) ... so I'm surprised it's not included in the base
framework itself, but it's yet another installation.
Oct 19 '07 #9
Tom Shelton <to*********@comcast.netwrote in news:1192738638.711523.44120
@t8g2000prg.googlegroups.com:
In 3.5, you can actually use WCF web services from an XBAP. Still
sort of a polling method, but maybe a little cleaner. Personally, I
think they should do like they do in java and allow you to open a
connection back to your server of origin with a socket....
My thoughts exactly! Without the ability to open a socket to the origin
server, it really limits the type of browser applications one can build.

Polling is fine for some stuff, but for application which need instant
notification (and the ability to scale), polling sucks.

Thanks for the information about XBAP... I'll take a look at it :-)
Oct 19 '07 #10
"Patrice" <http://www.chez.com/scribe/wrote in
news:e$**************@TK2MSFTNGP05.phx.gbl:
This would left you with :
- Java

You may want also to post about the ogrinal security problem you have
but if I remember you can cojnect with the originating site but not
with third party sites...
Supposed with .NET Winform controls you could connect to the origin site,
but I was never able to get it working unless the origin site was
localhost! If it's an intranet, or even 127.0.0.1 IP it would throw an
security exception. I had to give my .NET control full trust before it
would work.

Yes, I think Java is the most viable solution - I'm surprised with .NET's
comparisons with Java, Microsoft hasn't stepped upto the plate this area
(browser applets/browser launched applications).
Oct 19 '07 #11
On Oct 19, 12:19 pm, Spam Catcher <spamhoney...@rogers.comwrote:
Tom Shelton <tom_shel...@comcast.netwrote in news:1192738638.711523.44120
@t8g2000prg.googlegroups.com:
In 3.5, you can actually use WCF web services from an XBAP. Still
sort of a polling method, but maybe a little cleaner. Personally, I
think they should do like they do in java and allow you to open a
connection back to your server of origin with a socket....

My thoughts exactly! Without the ability to open a socket to the origin
server, it really limits the type of browser applications one can build.

Polling is fine for some stuff, but for application which need instant
notification (and the ability to scale), polling sucks.

Thanks for the information about XBAP... I'll take a look at it :-)
Here is a white paper on the wpf sandbox. It might give you a more
general feeling as to what you can and can't do, and if an XBAP is
right for you.... I'm actually creating an XBAP for my current
project, and to do what I want, I had to make it full trust. Which in
this particular case, isn't an issue - but, if you intend it for
internet consumption, then it isn't really a viable option.

http://msdn2.microsoft.com/en-us/library/Aa480229.aspx

--
Tom Shelton

Oct 19 '07 #12

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

Similar topics

1
by: nathanlaan | last post by:
This is the stupidest thing I have ever seen. Java 1.2, 1.3, and 1.4.1, and 1.4.2 all define the Applet.getDocumentBase() method differently! How am I supposed to get the directory of the document...
0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
1
by: Charlie Kim | last post by:
Here is gnome applet source of mine. -------------------------------------------------- #!/usr/bin/env python import pydic import gtk import gnome.applet
3
by: Andy Fish | last post by:
Hi, I have a web-based application and some of the UI I want to incorporate is just too complicated for javascript. Instead of using a Java Applet, I would like to have the user download a .net...
8
by: DKM | last post by:
Here are the source code files to a Java applet that utilizes LiveConnect to communicate with Javascript, and the HTML file. The thing works both in IE 6.0 and FireFox 1.4. but with some...
3
by: _R | last post by:
I'd like to build a small web app that models an electronic circuit. Easily done on desktop. In the web version, the controls could be done via ASP.net, but graphics would have to be built and...
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 ...
4
by: tudyfruity18 | last post by:
I'm suppose to write an applet that contains two buttons Investment calculator and Loan Calculator. When the Investment Calculator button is clicked, a frame appears in a new window for calculating...
1
by: sheephead86 | last post by:
Hi, I'm pretty new to java, and I have a small problem involving drawing a rectangle on a java applet.Firstly this is not a plea for someone to help me with this peice of work, I just need pointing...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.