Local Intranet App needs to run app from web page

I have a vb.net executible app that resides on a group of users on our local network and I want to integrate an ASP.Net website that is also local to our internal users so they can select an item on the web page and it would open the executable passing in
a parameter to the app (the vb.net app currently accepts these command line parameters I want to pass in).
I have tried several types of examples ranging from ActiveXObject("WScript.Shell") in JS to Response.ConetentType in code behind. Although there are several posts saying you can run the shell command, I am not having any luck. All users have Win
7 Pro with IE8 and IE10.
I know this is not a good way to do this, but I need to show a proof of concept, and just need to show it can work. I would like to ultinmately create an Accelerator of Add-in that could do this properly.
Can anyone provide some help please?
Here is snippets of code tried:
code behind page with Grid of records:
Private Sub GridView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridView1.SelectedIndexChanged
    Response.Clear()
    Dim AppPath As String = "\\\\MyPC\\MyShare\\Winforms.exe"
    Dim TestApp As String = System.IO.Path.GetFileName(TripleAPath)
    Response.ContentType = "application/octet-stream"
    Response.AddHeader("content-disposition", "filename=" + TestApp)
    Response.TransmitFile(AppPath)
    Response.End()
End Sub
And here is the js scriptmanager example I am trying to run from a button click. I get error about shell failure:
Specifically automation error cannot create object, and here is the line in break mode:
<script type="text/javascript"> function OpenApp() {var ws = new ActiveXObject("WScript.Shell"); ws.Exec("g:\\Winform.exe");} </script>
And here is the code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
    ' Define the name and type of the client script on the page. 
    Dim csName As [String] = "ButtonClickScript"
    Dim csType As Type = Me.[GetType]()
    ' Get a ClientScriptManager reference from the Page class. 
    Dim cs As ClientScriptManager = Page.ClientScript
    ' Check to see if the client script is already registered. 
    If Not cs.IsClientScriptBlockRegistered(csType, csName) Then
        Dim csText As New StringBuilder()
        csText.Append("<script type=""text/javascript""> function OpenApp() {")
        csText.Append("var ws = new ActiveXObject(""WScript.Shell""); ")
        csText.Append("ws.Exec(""g:\\Winform.exe"");")
        csText.Append("} </script>")
        cs.RegisterClientScriptBlock(csType, csName, csText.ToString())
    End If
End Sub
<input id="Button1" type="button" value="Click to open App" onClick="OpenApp()"/></p>
Daniel R Gleason

Hi Daniel,
this forum is for questions about html, css and scripting for website development.
I have a vb.net executible app that resides on a group of users on our local network and I want to integrate an ASP.Net website that is also local to our internal users so they can select an item on the web page and it would open the executable passing in
a parameter to the app (the vb.net app currently accepts these command line parameters I want to pass in).
I think an ActiveX control or a hosted WBC in your VB.net app are the only viable solutions.
Rob^_^

Similar Messages

  • Packagemaker: need to run applescript from postflight script

    Does anybody makes packages using Packagemaker? I need to run applescript from postflight shell script. Generally, when we need to run applescript or any application from shell script we write:
    #!/bin/sh
    open /Path/to/applscrpt.app
    But what to do if all scripts (shell, app's) placed in MyPackage.pkg/Contents/Resources? What path I need to specify? This way:
    #!/bin/sh
    open ./Contents/Resources/applscrpt.app
    doesn't work...

    The $1 argument that gets passed to your postflight script by the Installer should contain the full path to the package that's currently being installed. So something like this should work...
    #!/bin/sh
    open "$1/Contents/Resources/applscrpt.app"
    Here is some additional info about args and environment variables available to your scripts.
    Steve

  • Asset Accurie dat 01.04.2010 but i need tu run Depriciation from 31.05.2010

    I Acquired asset on 01.04.2010 but i need to Run Depreciation from 31.05.2010 what steps need to do for blocking of 2 months
    Regards
    Varyb

    Hi,
    check the Capitalization date in Asst Master for perticular month from which you want to run the Deprecation, by this you need not block anything or else run the dep for that perticuar Asst  by changing to unplaaned Posting run in AFAB.
    Thanks
    Goutam

  • Need to run midlet from another midlet

    Need to run midlet from another midlet
    How to do it?
    In my midlet user get link to web-page, and i want to start mobile browser with this page.

    Hi,
    In order to run midlet from another midlet you may use push registry. Go through the API of that I am not sure but as far as I know push registry is the only solution to that
    Sunil
    Software Developer - J2ME

  • Error message says need Adobe reader 8 or 9 installed to open pdfs from web pages yet Reader 9alredy

    Error message says need Adobe reader 8 or 9 installed to open pdfs from web pages yet Reader 9 is alredy installed on computer. Is this a 64 bit ossue although I am sure I did not have this problem prior to a replacement hard drive being installed.

    What is your operating system, browser?
    What is the exact message you are getting?

  • I need an addon to extract music files from web pages like myspace.

    I'm running Firefox 23 on Ubuntu 12.04. I would like to be able to extract/download music files from web pages like MySpace. I searched through the addons but didn't find any. Is there and addon to download music from MySpace?

    There's a Search box at addons.mozilla.org which you can use. <br />
    [https://addons.mozilla.org/en-US/firefox/search/?q=MySpace+downloads&appver=23.0&platform=windows MySpace downloads addons search]
    The first one listed there says it works with MySpace.

  • How to include non web pages to the "Create PDF from Web Page" feature?

    In Acrobat Pro (v. 10), when I use the "Create PDF from Web Page" feature, it works great for html pages, but it skips non-html links (doc, pdf, ppt, xls, etc). I need Acrobat Pro to convert those files and put them in the order as well. I don't see an option for this in settings. Is there ANY way I can do this? This is for an archiving purpose and I have 10,000 plus files to convert. Please help.

    This is a question i'm trying to answer too. My issue is that I have a PDF file which itself contains links to both DOC and PDF files. The end result is that I need one consolidated PDF containing all the linked files (in order).
    I can run the "create from web page" on this PDF file, and it'll download them, but not convert them. It just adds them as "jumbled" text to the end of the document. I need it to download, convert, and then append them.
    So, as isunshine3 asked above, any way to have Adobe convert the files that it finds linked when running the "create from web page"?
    THanks
    Matt

  • Need help accessing the router web page.  I have been tol...

    Need help accessing the router web page.  I have been told my router is acting like a switch and the IP address is not in the proper range.  I have tried reseting the router (hold for 30 sec and unplug for 5 mins).  Didn't work.
    thanks

    What router are you using?  Almost all Linksys routers use 192.168.1.1 as the default local IP address, but there is at least one that uses 192.168.16.1 , namely the WTR54GS  (not the WRT54GS).
    You need to try again to reset the router to factory defaults.
    To reset your router to factory defaults, use the following procedure:
    1) Power down all computers, the router, and the modem, and unplug them from the wall.
    2) Disconnect all wires from the router.
    3) Power up the router and allow it to fully boot (1-2 minutes).
    4) Press and hold the reset button for 30 seconds, then release it, then let the router reset and reboot (2-3 minutes).
    5) Power down the router.
    6) Connect one computer by wire to port 1 on the router (NOT to the internet port).
    7) Power up the router and allow it to fully boot (1-2 minutes).
    8) Power up the computer (if the computer has a wireless card, make sure it is off).
    9) Try to ping the router. To do this, click the "Start" button > All Programs > Accessories > Command Prompt. A black DOS box will appear. Enter the following: "ping 192.168.1.1" (no quotes), and hit the Enter key. You will see 3 or 4 lines that start either with "Reply from ... " or "Request timed out." If you see "Reply from ...", your computer has found your router.
    10) Open your browser and point it to 192.168.1.1. This will take you to your router's login page. Leave the user name blank (note: a few Linksys routers have a default user name of "admin" (with no quotes)), and in the password field, enter "admin" (with no quotes). This will take you to your router setup page. Note the version number of your firmware (usually listed near upper right corner of screen). Exit your browser.
    If you get this far without problems, try the setup disk (or setup the router manually, if you prefer), and see if you can get your router setup and working.
    If you cannot get "Reply from ..." in step 9 above, your router is dead.
    If you get a reply in step 9, but cannot complete step 10, then either your router is dead or the firmware is corrupt. In this case, use the Linksys tftp.exe program to try to reload your router with the latest firmware. After reloading the firmware, repeat the above procedure starting with step 1.
    If you need additional help, please state your ISP, the make and model of your modem, your router's firmware version, and the results of steps 9 and 10. Also, if you get any error messages, copy them exactly and report back.
    Please let me know how things turn out for you.
    Message Edited by toomanydonuts on 01-21-2008 04:40 AM

  • CS6: DistributedCOM Error id: 10016 when open pdf from web page in Win8.1

    For example here below I've got the issue: 
    http://modemwifi.it/wp-content/uploads/asus-dsl-n55u.pdf
    Adobe Acrobat X pro V 10.1.8:
    DistributedCOM Error id: 10016 when open pdf from web page.
    Nome registro: System
    Origine:       Microsoft-Windows-DistributedCOM
    Data:          04/11/2013 19:09:19
    ID evento:     10016
    Categoria attività:Nessuna
    Livello:       Errore
    Parole chiave: Classico
    Utente:        PC-PIERO\Piero
    Computer:      Pc-Piero
    Descrizione:
    Le impostazioni delle autorizzazioni impostazioni predefinite del computer non concedono l'autorizzazione di Attivazione in Locale per l'applicazione server COM con CLSID
    {B801CA65-A1FC-11D0-85AD-444553540000}
    e APPID
    {2EAF0840-690A-101B-9CA8-9240CE2738AE}
    all'utente Pc-Piero\SID Piero (S-1-5-21-3453328585-262132574-2759341577-1001) dall'indirizzo LocalHost (tramite LRPC) in esecuzione nel SID del contenitore di applicazioni Non disponibile (S-1-15-2-1430448594-2639229838-973813799-439329657-1197984847-4069167804-1277922394). Per modificare tale autorizzazione di sicurezza, è possibile utilizzare lo strumento amministrativo Servizi componenti.
    XML evento:
    < Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-DistributedCOM" Guid="{1B562E86-B7AA-4131-BADC-B6F3A001407E}" EventSourceName="DCOM" />
        <EventID Qualifiers="0">10016</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8080000000000000</Keywords>
        <TimeCreated SystemTime="2013-11-04T18:09:19.468877700Z" />
        <EventRecordID>14806</EventRecordID>
        <Correlation />
        <Execution ProcessID="768" ThreadID="776" />
        <Channel>System</Channel>
        <Computer>Pc-Piero</Computer>
        <Security UserID="S-1-5-21-3453328585-262132574-2759341577-1001" />
      </System>
      <EventData>
        <Data Name="param1">impostazioni predefinite del computer</Data>
        <Data Name="param2">Locale</Data>
        <Data Name="param3">Attivazione</Data>
        <Data Name="param4">{B801CA65-A1FC-11D0-85AD-444553540000}</Data>
        <Data Name="param5">{2EAF0840-690A-101B-9CA8-9240CE2738AE}</Data>
        <Data Name="param6">Pc-Piero</Data>
        <Data Name="param7">Piero</Data>
        <Data Name="param8">S-1-5-21-3453328585-262132574-2759341577-1001</Data>
        <Data Name="param9">LocalHost (tramite LRPC)</Data>
        <Data Name="param10">Non disponibile</Data>
        <Data Name="param11">S-1-15-2-1430448594-2639229838-973813799-439329657-1197984847-4069167804-1 277922394</Data>
      </EventData>
    < /Event>
    How can I solve this problem?
    Thanks

    // I got this from an Action (I�m using Struts)
    java.sql.Blob file=(java.sql.Blob)request.getAttribute("PDFfile");
    String filename=(String)request.getAttribute("filename");
    try{
      int iLength = (int)(file.length());
      response.setHeader("Content-type", "application/pdf");   
      response.setHeader("Content-Disposition", "inline; filename=\""+filename+"\"");
      response.setHeader("Expires","0");
      response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
      response.setHeader("Pragma","public");
      response.setContentLength(iLength);
      ServletOutputStream os = response.getOutputStream();
      InputStream in = null;
      in = file.getBinaryStream();
      byte buff[] = new byte[1024];
      while (true) {
          int i = in.read(buff);
          if (i<0) break;      
          os.write(buff,0,i); 
      os.flush();
      os.close();
    } catch(Exception ex){
       out.println("Error while reading file : " + ex.getMessage());
    }and now it�s running !!! I�m not using response.setContentType(...) and I do this in response.setHeader("Content-type", "application/pdf"). And I use response.setHeader("Content-Disposition", "inline; filename=\""+filename+"\"") instead of response.setHeader("Content-Disposition", "attachment; filename=\""+filename+"\"");

  • Launching Java applications from web pages

    Hi there,
    Do you know how to launch Java applications (not applets) from web pages ? Thank you.
    Berk Can Celebisoy

    Do you know how to launch Java applications (not applets) from web pages ? Thank you.
    you can setoff a java servlet from a webpage.Is that what you are talking about ??? activeateing a server side app ????

  • Automize Create a PDF From Web Page

    I am trying to create PDF's from a list of 100+ web pages / URLs.
    I would like to automize the process as to save me time.
    (I have been doing some research but I am a newbie when it comes to programing / scripting / coding)
    My questions are
    1) Is it possible to write a script to execute Acrobat's Create PDF from Web Page option in order to automize a long list of URLs?
    Something along the lines of .bat file (reading something like)
    acrobat.exe "http://www.google.com" "%CD%\GoogleTest.pfd"
    acrobat.exe "http://www.yahoo.com" "%CD%\YahooTest.pdf"
    2) If it is possible to script / automize Acrobat's Create PDF from Web Page can you lead me to the right direction as to what programs I need to write a script (if any) and any examples of how the script would be written would be extremely helpful
    Thank you for your time

    You can post your question in the forum for Acrobat Scripting or Acrobat SDK.

  • "Create PDF from Web Page" Yields Authorization Failure

    Acrobat 9 Pro Extended running on Windows XP Service Pack 3:
    When using "Create PDF from Web Page," certain linked pages result in an "Authorization Failure" error message. Is there any way to instruct Acrobat to disregard pages that are not downloadable and continue creating the PDF?

    I am having the same issue AND none of my pages or files require a UserID or Password. My issue appears to be something with the domain because a and b work just fine and produce a PDF file while item c does not work and produces the error msg.
    http://www.dot.wi.gov/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.dot.state.wi.us/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.wisconsindot.gov/projects/neregion/151/index.htm produces an error msg. ‘Nothing done’.Error info. - Authorization Failure    http://www.wisconsindot.gov/projects/neregion/151/index.htm
    [email protected]

  • Create PDF From Web Page - Authenticated SharePoint Sites generate "Authorization Failure" error

    We have several authenticated sharepoint sites on our intranet, and we are trying to create a PDF of a site (x levels down) using the Acrobat create PDF from web page feature.  When you try to create a PDF from a non-sharepoint, authenticated website, a login prompt appears asking for login credentials.  However, when you try to use the same feature on an authenticated sharepoint site, you do not get prompted for credentials and instead get an Authorization Failure error.  the popup says "Error: Nothing Done".  We have successfully PDF'd anonymous sharepoint sites on the WWW.  Has anyone successfully PDF'd an authenticated SharePoint site? 
    Thanks in advance,
    -Richard.

    I am having the same issue AND none of my pages or files require a UserID or Password. My issue appears to be something with the domain because a and b work just fine and produce a PDF file while item c does not work and produces the error msg.
    http://www.dot.wi.gov/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.dot.state.wi.us/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.wisconsindot.gov/projects/neregion/151/index.htm produces an error msg. ‘Nothing done’.Error info. - Authorization Failure    http://www.wisconsindot.gov/projects/neregion/151/index.htm
    [email protected]

  • Passing Parameter from Web Page to Form 6i

    Dear All,
    We are using 9i AS with Form 6i. I want to created a web page for user login and called my application By passing value
    window.open("http://hrtest/dev60cgi/ifcgi60.exe?form=login_form.fmx&width=1000&height=700&
    userid=logme/logme1@test","","width=1000,height=700,top=0,left=0,location=no,directories=no,
    status=no,menubar=no,toolbar=no,maximize=yes,resizable=yes")
    and it successfully run.
    I want to pass additional parameter to my login_form.fmx from web page like User Shift entered by user on logon ?
    Please help me out.
    Regards,
    Khurram

    I got the clue
    pass parameter in your UR
    as
    //hrtest/dev60cgi/ifcgi60.exe?form=LOGIN_FORM_Para.fmx&width=1000&height=700&userid=power/power1@hrtest&otherparams=PAKISTAN=ALLAH"
    Define a :PARAMETER.PAKISTAN on Form
    and write following trigger
    BEGIN
    if :PARAMETER.PAKISTAN = 'ALLAH' then
    message('ALLAH HO AKBAR');
    message('ALLAH HO AKBAR');
    message(:PARAMETER.PAKISTAN||' HO AKBAR');
    message(:PARAMETER.PAKISTAN||' HO AKBAR');
    else
    message('INSH'||:PARAMETER.PAKISTAN);
    message('INSH'||:PARAMETER.PAKISTAN);
    end if;
    END;
    Regards
    Khurram Altaf | Assistant Manager ERP
    Enterprise Resource Planning Department
    Kohinoor Textiles Mills Ltd
    Peshawar Road, Rawalpindi.
    +92.51.5473940-44 ext 250 | +92.333.5256626
    e-mail: [email protected] | web: www.kmlg.com

  • Create from Web Page and Out Of Memory

    My machine is Windows XP Prof, 3+ GB of memory, 10's of GB of free hard drive space.
    I create a PDFs from HTML pages located on my local drive. I am not making a PDF from HTML pages served by a Web Server. They are not located on some network device.
    With Acrobat 7 Professional, I was able to create a PDF from HTML pages without any problem using the Create From Web Page menu option. It might have been slow, but it would predictably create a PDF. The final PDF might be as large as 72 or 130 MB.
    I recently upgraded to Acrobat Pro Extended version 9. When I make some small PDFs (4-5 thousand pages) it seems to work okay. However, if I make the full PDF (about 10-15 thousand pages), Acrobat produces an out of memory error.
    I have tried a number of things, but I still get the error. In the past I have had trouble like this with Acrobat 8 Prof on the Mac (but I don't remember an actual Out Of Memory message box).
    Is there some setting can change, or some procedure that I can get my work done. It appears to me to be a bug in Acrobat 9, but if I could get a workaround for now, I would greatly appreciate it.
    Thanks.

    Even though I an using the Create from Web Page function, I am accessing files which my company has produced. They are located on my local system. I am not accessing them via a web server.
    I can make a file with 1 level. I can make a file with a couple of thousand pages. Even 8400 pages. However, when I try to make a PDF of the full site Acrobat flakes out and dies. When it hits around 13,300 pages, it dies.
    The troubling thing for me is that I was able to do the same thing in Acrobat Pro 7. I made a file with almost 14,500 pages. Because of the way Acrobat must be installed in Windows, I can't easily go back to version 7. It is a real pain not to be able to do something in the "New and Improved" version that I was able to do in the "nasty old" version.
    It would be helpful if Acrobat had better logging and error logging facilities. Maybe there is one page that is hitting Acrobat's bug, and if I could eliminate or change that page I could continue, but there is no way of knowing (as far as I know).

Maybe you are looking for

  • Dv7 6014 fan failure message

    Is there documentation on opening a dv7-6014 to replace the cooling fan please? We got the 'detected cooling fan failure - 90? - shutting down in 15secs' during a windows update. Its running now with an external fan on the vent. Also have a dv7-5003,

  • Webi reports are running slow

    Hi Gurus, This may be repeated question but I didn't find suitable answer and need your help. There are number of webi reports which is based on olap connection directly on bex query. We are experiencing the slowness while opening the report and even

  • Edit Group Bugs

    When editing (eg.) multitracked drums on one group and multiple tracks (in this case midi regions for triggering gates) on another group I find that if I do a quick swipe of regions from both groups only one group will fully select - the other (actua

  • Now Playing song displayed in toolbar

    How can you get the Now Playing song to be displayed in toolbar? Thanks, Brandon

  • Leopard & Ricoh Aficio 2022: lost printer options

    After upgrading to Leopard, I've been unable to correctly print on our Aficio 2022 PS printer. More precisely, I can print, but I've lost all the specific features of the printer: no stapling, no duplex printing, nothing. I did an archive & install,