Calling An Executable File From Web Server
Nov 20, 2010
i am working on a project where i have to give call to an .exe file to access the scanner on client side. i am using System.Diagnostics.Process.Start(Server.MapPath("~/bin/Scan.exe").ToString()"); to call exe file in my bin folder on to the server, but it is not getting called.
View 4 Replies
Similar Messages:
Dec 21, 2010
I want to call an Executable from a Web Page. I used the following code :
System.Diagnostics.Process.Start("c:\WINDOWS\system32\notepad.exe");
Works fine when executing (debugging) from Visual Studio. But when deployed as a website on IIS, the UI of the Notepad application is not seen. As it is executed as an anonymous user (Network Service in IIS 6.0) it is seen in task manager but cannot be seen as an executing application.
So now I applied Impersonation :
Code file (ASPX.cs File)
System.Security.Principal.WindowsImpersonationContext impersonationContext;
impersonationContext = ((System.Security.Principal.WindowsIdentity)User.Identity).Impersonate();
System.Diagnostics.Process.Start("c:\WINDOWS\system32\notepad.exe");
impersonationContext.Undo();
(Web.Config)
<authentication mode="Windows" />
<identity impersonate="true" userName="DomainUserName" password="password" />
In the application's virtual Directory in IIS go to properties and go to Directory Security Tab. In the Authentication and access controlclick Edit. Default Settings are: Enable anonymous access and Integrated Windows authentication are checked. This will give the following Error : An anonymous identity cannot perform an impersonation......................
View 5 Replies
Mar 6, 2010
does someone know the utility/procedure for converting an ASP.net project containing multiple files into one executable (.EXE) file?
View 3 Replies
Oct 22, 2010
I have developed multiple WebServices in my project in ASP.NET. Now I need to deploy them as a single executable file. How can i do that?
View 1 Replies
Feb 3, 2010
i am working on a web application using C#,
i know that in window application how to give the path for executable file that started the application (if (!System.IO.File.Exists(Application.StartupPath + "gsdll32.dll")))
but i dont know how to give that path in web application using c#
View 2 Replies
Apr 6, 2010
I'm doing a project in component management system. I need to block executable files from getting uploaded. Blocking should not be based on the extensions. For example, i've a file named abc.exe i'm going to change the file extension to abc.jpg in this case that abc file should not get updated. Similar to that in gmail file attachment.
View 2 Replies
Feb 28, 2010
I'm doing a project in component management system. I need to block executable files from getting uploaded. Blocking should not be based on the extensions. For example, i've a file named abc.exe i'm going to change the file extension to abc.jpg in this case that abc file should not get updated. Similar to that in gmail file attachment.
View 1 Replies
Nov 7, 2010
I am developing and app to find automatically characters stats with the 2nd edition dnd rules to be easy for my party to create characters when we play.
I am using Visual studio 2010 c sharp express and Sql 2008 express R2.I have added a database in the project to have all the data needed. When I use the release folder or the debug folder on other pcs the app doesn't run. Wherever I install SQL server (database and management) things are fine. I googled but I am not sure what to look exactly for and made a brief search here but with no results. I am trying to make sth that has almost no dependencies but well I can't avoid installing .net framework 4 everywhere...
Is there anyway to make database work without installing SQL? Is there any workaround like a dll or sth?
View 5 Replies
Feb 9, 2011
I formatted my system which has Windows XP serive pack 2 and after that Installed the VisualStuido 2008 setup.But,when I run any website then it says
Compiler executable file csc.exe cannot be found. Description: An unhandled exception occurred during the execution of the current web request.
I searched but could not find any suitable soution for it.Before formatting .Net was working quite fine.
It only work if I change version value to 2.0 from version=3.5 in webconfig file
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
Kindly reply I wasted whole day for it but could not get the way for it.
View 1 Replies
Nov 16, 2011
I have a page which has populated a database with a set of information that needs to be processed. This could take a considerable amount of time and I want it to run in the background, mean while I will have my web app display a page with an intermittent meta refresh showing me progress of the records in the DB being processed.
What I think I need to do is start an executable, in a different thread running in the backgound on the server which will run until it is complete, without interfering with other web activity.
Can this be done? Do I start it in a different thread? How can I start the exe in that thread and just leave it to do its work?
View 2 Replies
Nov 30, 2010
I have a .Net Webservice(2.0 framework) and I am trying to call this service from SQL
server 2005 using CLR.
I have created assamblies on server and trying to call the we service through CLR, but I'm getting below error:
"Exception:
Server was unable to process request. ---> Invalid URI: The URI is empty."
View 1 Replies
Nov 4, 2010
I need to make an ajax call from my javascript and access a control on my page. Using a webmethod wont work then since it's static, do I have any other options?
View 3 Replies
Mar 13, 2015
i have a sql server store procedure which return json data. i want to get this data without .net framwork or php or any other server side language..
So how make this possible to get json data of sql server query through any client scripting language like jquery ajax method.
View 8 Replies
Apr 13, 2010
What are the alternatives to System.Diagnostics API for running external EXE or BAT files under IIS hosted web application?
I would like to run external EXE program from my ASP.NET-MVC web application. I don't need to wait till the program exits. I just want to start the program. The execution can take some time or it may crash, so I would like to run it separatelly from IIS in such a way that the web application only triggers its execution.
View 1 Replies
Jan 3, 2010
I need to call a sub which must be contained within a separate web page, but even though it is declared as public, when I call it like this:Code:
Cart.addMovie(ByVal title As String, ByVal format As String, _
ByVal copies As Integer, ByVal price As Double)
I'm getting this error:
Code:
Error1Reference to a non-shared member requires an object reference.C:Documents and SettingsJohn Wesley CooperMy DocumentsCollegecis259MovieStoreMovieStoreDefault.aspx.vb489MovieStore
View 35 Replies
Jul 15, 2010
My current ASP.NET site requires to launch FFMPEG.EXE to convert uploaded videos. With shared web hosting server, can't be done but via a Virtual Private Server (VPS) or a dedicated server.
I've been reading some info about Windows Azure but haven't found any info regarding:
1. Be able to launch external executable
2. Be able to remote desktop into the allocated virtual machines
View 1 Replies
Oct 5, 2010
I have a custom control which is used on many pages. I am making use of a jQuery plugin shown in the below link. [URL]
Problem is this plugin loads on the pages which take time to load and fails on those which load quickly.I also have multiple instances of this plugin on the same pages. I have tried calling the plugin in two different ways as listed below. But it is making no difference.I am doing everything in .cs file. I don't have aspx or ascx file.
01)
Page.ClientScript.RegisterStartupScript(GetType(), "dropdownchecklistOrg-setup" +
this.GetHashCode(), string.Format("$(document).ready(function() {{ $('#{0}').custSelectBox();}});", listBox.ClientID), true);
02)
Page.ClientScript.RegisterStartupScript(GetType(), "dropdownchecklistOrg-setup" + this.GetHashCode(), string.Format("$('#{0}').custSelectBox();", listBox.ClientID), true);
I get the below error on the pages which are loaded quickly.
$('#ctl00_FullRegion_MainRegion_EditForm_PredefinedLocations_DropdownCheckList').custSelectBox() is not a function.
This issue was due to different versions of jQuery library being loaded. I had 3 plugins on the same page. 1 plugin was loading jQuery 1.42 version and the other 2 plugins were loading jQuery 1.32 version.If the 1.42 version was loaded at start up the other two plugins would fail to work.
View 1 Replies
Apr 28, 2010
I have a common library and two executables. Each executable refers to the common library for some functionality. I would like the common library to read from the app.config of the exe which is currently running. Is there specific API calls to do this?
View 1 Replies
Feb 24, 2010
I have a JavaScript-based timeline which needs to use data from an SQL server. The queries and the JSON conversions have been worked out in the form of C#.NET functions within a code file related to an .aspx page. So for a complete newbie to ASP.NET, how do you set up a function call like this from JavaScript?I would love it if someone had some simple example code I could learn/get some pointers from.Edit: I am using .NET 3.5
View 1 Replies
Jun 9, 2010
I'm using Visual Studio 2008 and SQL Server 2008 Developer to create a website.
I'm trying to test a connectino to a local database in my computer.
What I did is create a connection string in the webconfig file like this:
[Code]....
Then I want to call that connection string like this in the default.aspx.cs file I write the following code:
[Code]....
I'm not getting any error or warning in any of the code but when I run the page I throws me an error telling me:
The connectionstring property has not been initialized.
If I run with debug on it shows this:
[Code]....
Line 22 in red.
I don't know what I'm doing wrong since VIsual Studio does not tell me there is an error, it just seems like it cannot make the connection.
View 4 Replies
May 29, 2010
How can I make a call on a function of an external javascript file?
More specific...
In the head tag i have
<script type="text/javascript" src="JScript/FontSize.js"></script>
The external javascript file, (that i would like to call) FontSize.js contains the following functions.
[code]...
Of course nothing works as it should because, i do not know how to make the call to a function to an external js file
View 1 Replies
Feb 1, 2010
i have the same prblmi have a class file in app_code/fol1/fol2/class1.vbbut when i call it as dim x as new class1 i am not getting itshld the class file be placed in app_code folder or outsideactually i had creatd the namespace but i am not able to import i
View 8 Replies
Mar 24, 2010
how to differentiate whether a managed library is running in the context of asp.net application or in a executable?
View 2 Replies
Feb 14, 2011
I was just wondering, let's say I created a Method that is in a partial class in App_Code, and this Method would replace the same type of Method that would otherwise be in many files, and so, since it would be called from many files and would probably be called and used very frequently especially because of this. Would this overload this class? I'm not saying what would most likely happen, I'm just asking if it would be even remotely possible?
View 2 Replies
Oct 5, 2010
I have an ImageButton and a FileUpload controls in a child page of a master page. I would like to achieve something like when user click on the ImageButton, the browse file window will pop-up like what we did when we click on the Browse button of the FileUpload control.
How can call the browse file window of the FileUpload control when i click on the ImageButton?
View 1 Replies