IT Community - Software Programming, Web Development and Technical Support

Java WebStart on local and remote ASP.NET

This is a discussion on Java WebStart on local and remote ASP.NET within the ASP and ASP.NET Programming forums, part of the Web Development category; On my MS FrontPage-based web site I used Java WebStart without any problems. Clicking on a hyperlink to a ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 06-25-2009, 06:25 PM
jobygolden jobygolden is offline
D-Web Trainee
 
Join Date: Jun 2009
Posts: 2
jobygolden is on a distinguished road
Default Java WebStart on local and remote ASP.NET

On my MS FrontPage-based web site I used Java WebStart without any problems. Clicking on a hyperlink to a JNLP-file started the application. MS ASP.NET does not support the JNLP file type and one has to use an event handler and make a binary write when the user clicks the link. C# code (posted on Internet several years ago):

private void outputJnlp(String fp) {

FileStream fs;

long FileSize;

fs = new FileStream(fp, FileMode.Open);

FileSize = fs.Length;

byte[] Buffer = new byte[(int)FileSize];

fs.Read(Buffer, 0, (int)FileSize);

fs.Close();

Response.Clear();

Response.ClearHeaders();

Response.ContentType = "application/x-java-jnlp-file";

Response.BinaryWrite(Buffer);

Response.End();

}

This works fine in MS Visual Studio running ASP.NET 2.0 (The browser is not supported....), but not on my production site (web hotel), also running ASP.NET 2.0, where I get HTTP Error 404 File Not Found when trying to get the file. All files reside on the same disk. Yes, I have changed the JNLP codebase value to the production site URL. How to debug? I would be very grateful if anybody has a clue.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote File Handling ! ptrckgorman PHP Programming 0 12-27-2008 06:52 AM
What is Remote Desktop Connection? arjkhanna Server Management 4 01-31-2008 06:40 AM
How do you log in to a remote Unix box? sundarraja Operating Systems 1 01-22-2008 02:51 AM
Remote control of Windows PCs simpler through PsExec than Remote Desktop oxygen Server Management 1 07-26-2007 02:27 AM
What is Remote Scripting ?How to implement in ASP? kingmaker ASP and ASP.NET Programming 2 07-24-2007 01:22 AM


All times are GMT -7. The time now is 10:28 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0