Iis - Open An .EXE File From A Site?
Feb 9, 2011
Can I open executable files on a client machine from an ASP.NET site hosted on IIS?
I have tried using the following code in ASP.NET:
Process notePad = new Process();
notePad.StartInfo.FileName = "notepad.exe";
notePad.StartInfo.Arguments = @"E:abc.txt";
notePad.StartInfo.CreateNoWindow = false;
notePad.StartInfo.UseShellExecute = false;
notePad.StartInfo.RedirectStandardOutput = false;
notePad.Start();
and also in Javascript with the following code:
function Launch() {
var w = new ActiveXObject("WScript.Shell");
w.run('notepad.exe');
return true;
}
But both snippets will only open the file when the site is not hosted in IIS.
View 3 Replies
Similar Messages:
Jan 27, 2011
I'm running into a problem trying to download a file from the server. I'm receiving a IE 8 "Unable to open this internet site" error dialog.
Basically, I want to open a new page and pass in the file path and mimetype of the server's document using a query string.
My code is as follows:
[Code]....
The JavaScript:
[Code]....
This is the code of the page load event that will transmit the file:
[Code]....
View 3 Replies
Mar 3, 2011
When i try to open a csv file from my asp.net 3.5 app by clicking on the link provided, a file download dialog box appears.When i click on the open button from there , i get this eror
C:Documents and settingsUserNameLocal SettingsTemporary Internet FilesContent.IE5X9TXTM06myfilename.csv could not be found .Check the spelling of the file name and verify that the file locationis correct?
Wjy am i getting this error? I am trying to open a file and it complains about file not found in the Temporary Internet Folder.I tried deleting the temp intrnet files.Dint work.I have IE 7 on xp professional sp3. Also i am streaming the file from the application. This happens only to some files and the rest of the files , i can open .
View 1 Replies
Jan 6, 2011
When im try to export to excel from my web page im getting this error.
View 2 Replies
Feb 22, 2013
I have created a pdf file using aspose and need to open it without saving the pdf.Is it possible.
View 1 Replies
Aug 2, 2010
I am trying to open a file share link from the window.open ... but its adding the http://localhost/vdir/ before the path can any one say what is the problem?
View 1 Replies
Nov 12, 2010
When the user clicks on "OPEN" button, It should open up that(.txt) file which is on the file server in ReadWrite Mode (like in notepad) without any Access Issues.
Or simply has to be openend as temporary READONLY .Txt File. So that the user can close after viewing it.
View 8 Replies
Jan 6, 2010
I am looking for a open source site in which I can post jobs and Apply for jobs and it have feaures like [URL], i have gone thorugh Job Site Starter Kit but it offers very limited features can some one tell me some open source software for recruitment site.
View 4 Replies
Jul 21, 2010
looking for a good opensource code for a jobs website. Do you know any?
View 1 Replies
Jun 29, 2010
I get this error message when i try to open my site in the web browser... i'm not sure how to mix this problem.Configuration ErrorDescription:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.Parser Error Message: Unrecognized attribute 'targetFramework'.
[Code]...
View 6 Replies
Jul 28, 2010
I have a site that I am trying to extend how long a session stays open even though the user is inactive. I have this set in my web.config
<sessionState mode="InProc" timeout="720" />
And this is set it IIS
Time-out (in minutes):
720
But it is still timing out after like 15 minutes.
View 6 Replies
Mar 19, 2011
I need to build a Q&A module for a .net site. I need it to integrate with our .net membership system. We are happy to pay for it... but all I have found so far is php code and the QHub hosted system, which would be a problem to integrate with out members.
View 6 Replies
May 6, 2010
I was hoping to open a document in a menu control using a sitemap. I am using the following code in the sitemap but get an error. I would like to be able to click on the menu item, have it open the sample doc in a new window, but not to have the original page navigate to a new place (essentially to do nothing on the main page.)
<siteMapNode url="javascript:window.open('Sample.doc','SampleName'); return false" title="FAQs" description="FAQs" />
Is there some javascript I can use that does not require me to register a function on every page?
View 3 Replies
Dec 10, 2010
I am curious to know that how we can make web site development much faster. I am specific about asp.net.
As far as my knowledge is concern, we can make asp.net website development faster by
Using Log4Net - to capture logging information Entity framework - to increase database operation speed.
So, is there other tools also which we can use to optimize the development process?
If you have used in any of your project, whether it was a small project or large.
View 3 Replies
May 27, 2010
I'd like some recommendations for a good open source CMS . I need it for developing a multilingual (Hebrew/Arabic/English) community site. I'm familiar with ASP.NET and would like to stay within this framework.
View 8 Replies
Apr 4, 2011
When I edit .aspx or .cshtml file in the Visual Studio and press Ctrl-F5 (run), it runs the current file in the browser. How do I make it to avoid this and always open the app's site URL instead?
View 1 Replies
Mar 27, 2011
How woulld I set this up:
I wanna save what links a user clicks on in a website. I thought of creating a jquery function that would save the link name everytime a link is clicked , then ajax the info to the db after the user closes the site.
Does that sound like a proper way. Anyone have samples of that?
Since there are multiple pages with multpile links, I wanna create something equivalient to a Session variable in javascript so I can append info to it everytime a user clicks a link and send the info only once to the db, instead of everytime a user clicks a link open a db connection and send the info.
The links are products so I wanna save related products, so I wanna save related product infomation. Maybe I need a cookie instead?
View 3 Replies
Nov 27, 2010
My company uses Google Apps for our e-mail/business app provider. Every employee has an account here.I'm looking into creating an asp.net web app that would allow users to sign-in (using their Google Apps account) and then accomplish certain things (first goal: keep a current record of the employee's skillset).Before I get started, I wanted to find out if an OpenID login system using Google Apps is any more difficult than doing it the standard way, or if I need to be aware of any pitfalls.
View 2 Replies
Mar 10, 2011
I want to create a site which is based on users submitting a suggestion and then other users voting the suggestions up or down. Very much like the Dell [URL] site. I was wondering if there might be an open source or other existing software I could leverage for this purpose
View 1 Replies
May 7, 2015
I have a site (URL...) which loads and runs fine locally on the server itself, but when I try to access this externally from outside of the server (and firewall) will not load. In Safari for example, I get the message "Safari could not open the page because the server stopped responding".I have other sites on this server that do load and operate fine so I don't belive this is a Firewall issue. One thing I did notice however is that when the error message appears, it seems like the site is trying to change the protocol from http to https.
I'm trying to debug this to find out what could be happening. I've tried looking into the IIS logs as well as the Event Viewer but I see nothing. I have even tried to turn on Failed Request Tracking but no errors are logged.
View 1 Replies
Jan 12, 2011
I got this error while converting
Unable to open the Web site 'http://localhost/America/Tranxfer3.4/TxfReport/TxfReport.vbproj'.
The Web site 'http://localhost/America/Tranxfer3.4/TxfReport/TxfReport.vbproj' does not exist.
if you know anyother suggestions for converting vs2003 to vs2008 project
View 1 Replies
Nov 16, 2010
In our application, we allow user to upload documents which can be PDF, Doc, XLS, TXT. Uploaded documents will be saved on web server. We need to display link for each document user uploaded and when user click on that link, it should open relevant document. it is expected to have required software to open relevant documents.
To upload document, we use saveAs method of FileUpload control and it works absolutely fine.Now, how to view it?I believe, i need to copy/download file to local user machine and need to open it using Process.Start.For that i need to find user local temp directory. if i put path.GetTempPath(), it gives me web server directory and copy file there.
File.Copy(
sPath + dataReader["url"].ToString(),
Path.GetTempPath() + dataReader["url"].ToString(),
true);
View 4 Replies
Mar 23, 2011
I create a pdf, then I set NavigateUrl with the path. The file is opened, but if I re-create it, ie open the temp file pdf, don't reload the new.. Only after some minutes (I don't refresh the page) ie re-download the new pdf..How can I force to open always the file on the server?
View 2 Replies
Nov 24, 2010
I have built an ASP.NET (.NET v4) application in VS 2010. It is working just fine. But when I try to create deployment package (so I can deploy it in our test IIS 7.5 Server), it gives me error like this,
Error 1 Could not open Source file: Could not find file 'C:11-2 estobjDebugCSAutoParameterize ransformedWeb.config'. 0 0 test
Thing is in past, I had deployed the SAME application using the SAME method.
View 2 Replies
Jun 24, 2011
I am using HTML Input control that will open a file dialog window where user can select a file.
Is there a way to set a path from where to open the window. Right now it looks like the default folder is "My Documents".
I need it to point to something like "ftpexternalftp$Data"
View 1 Replies