|
You can't until you have access to the path where EXE resides. Also starting an EXE on the server is pointless.
|
|
|
|
|
madancode wrote: I have to run an EXE in remote machine
Do you mean the client side?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
If user clicks on a button, i have to run the exe. Access rights is not an issue.. I have full access to the remote machine.
|
|
|
|
|
madancode wrote: I have to run an EXE in remote machine, exe will be present in same remote machine just i have to initiate that EXE through my code.
I am using ASp.Net with C#
You want to execute EXE on Client System? If yes... ActiveX or Applet is one option. Javascript does not have the sufficient rights to execute exe on clients.
|
|
|
|
|
Thanks for the reply abhijit, Not in client machine. ExE is in separate remote system, i have to run their(File residing remote system) only
|
|
|
|
|
madancode wrote: i have to run their(File residing remote system) only
If you have all the necessary permission on the remote machine, you can use the System.Management functions to do this. Here [^]is a nice article on it.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
But can we use System.Management in asp.net
|
|
|
|
|
Hi,
have a look at the system.diagnostics.process class. Using this you can start an exe-file. You will need to set the user for the process. If you do not, the process will run using the ASPNET-account (or networkservice, depending on IIS version).
Regards
Sebastian
|
|
|
|
|
I have tried by giving user name and password of Remote system, in process and and in machine.config file in<procees model=""> tag. It gives me login failure(Error would be like Login failuer:Bad user name or password), but username and password are correct.
|
|
|
|
|
Are the ASP.NET app and the exe on the same machine?
|
|
|
|
|
No...Both are in separate system.I can able to run the EXE, while residing in same systems.
But here i have to run the EXE in remote system(ExE file present in the same remote system).
|
|
|
|
|
Then the class will not work... The login is for the ASP.NET machine, not for your machine with the exe...
|
|
|
|
|
If so,How to solve this problem....
|
|
|
|
|
Check out this ..![^]
You are best person who knows about your problem.
-------------------------------------------------
More pain more gain
|
|
|
|
|
HI All,
Thanks for all your helps,Now i am getting error
'Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))'
I am using System.Management, error raises while trying to connect.
|
|
|
|
|
how to check the control is their or not which is not in the page
is it possible to check the control is present or not using codebehind
|
|
|
|
|
if(Page.FindControl("ControlID") != null)
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Plz Dont ask same questions again and agian
himanshu
|
|
|
|
|
You can use Page.FindControl("ControlID") to get all the server control but not html controls.
You are best person who knows about your problem.
-------------------------------------------------
More pain more gain
|
|
|
|
|
Hi To all,
how to move mails from Inbox to other Folders??
Thanks,
nkmkrishna
|
|
|
|
|
nkmkrishna wrote: how to move mails from Inbox to other Folders??
How does it relate to ASP.Net????
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
nkmkrishna wrote: how to move mails from Inbox to other Folders??
Here is the few steps.
Right Click on Inbox > New Folder > Give Name of the Folder > Now Select Mail From Inbox > Drag it and Drop the mail to the New Folder that you have create .
So,Unless you give the proper information Nobody can give you the proper answer? Which inbox, what is the mailbox server? By the, I don't thing my answer is wrong
|
|
|
|
|
Hi Abhijit,
really sorry..
How to move mails from Inbox to other folders through .net code???
I am using the mail server like yahoo,gmail & any org mail server.
I get all the details through .net code.
My question is how to move mails from inbox to other folders through .net code???
|
|
|
|
|
nkmkrishna wrote: how to move mails from inbox to other folders through .net code???
I guess there is no way unless the mail service provider provides some API to do this. AFAIK, gmail doesn't maintain folders. They have something similar called labels.
|
|
|
|
|
I’m using sqldatasource to link data from sql to gridview. Using the following
SELECT itemName, itemEmail, itemPhone, itemImage, itemDate, itemPrice, itemDescription FROM Item
All the data appear in the gridview except the itemimage. Itemimage should show an image from sql. I try to use imagefield in the gridview, but instead of the image a small white box with a red cross. What option should I use in the imagefield to link data from sql server.
|
|
|
|