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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |
Our Partners |