Process.start() Method Is Not Working In Server Machine?

Mar 29, 2011

In my project i am having the VB Script file openHTML.vbs which is used to open the .HTML file in the server location.

If i run the following code in VS2005 it's working fine but if i use the same code to publish and work in the server machine it's not working.



View 11 Replies

Similar Messages:

Start Batch Job From IIS / Start Exe File With System.Diagnostics.Process.Start With Another Account Is Disabled?

Oct 28, 2010

What is the right approach when users (authenticated domain admins) should be able to start batch jobs (usually exe files) from an IIS (7.x) aspx (c#) page? This is an intranet site. The batch jobs have to run on the web server as Domain Admins. The website pool is executed by network service or some similar restricted account in AD.

Approaches I can think of (and their disadvantages):
1. Start exe file with System.Diagnostics.Process.Start with another account. This feature is disabled in IIS 7.x, how do I allow it?

2. Create a sheduled task and call scheduled task-api. This unmanaged dll is giving VS compiler warnings because it's unsafe to call from managed code.

3. I suppose there's a better approach, because the previous suggestions doesn't appear safe or robust.

View 2 Replies

Configuration :: System.Diagnostics.Process.Start Not Working?

Jan 7, 2011

I have installed VS2008 on my development machine have winxp sp2 OS.i have created one aspx page where i have placed one button. On click of that button i want to open osk.exe(on screen keyboard). i an using following code

System.Diagnostics.Process.Start("osk.exe")i works fine there.Now for testing i deployed that application to testing server having Win7 OS and IIS7.0. It is not working there.

View 2 Replies

Visual Studio :: Unable To Start Debugging "Auto - Attach To Process (8360) W3wp.exe On Machine DELL Failed" - 2008

May 10, 2010

suddenly, with my Visual Studio 2008 I can no longer debugging my web applications (ASP.NET 3.5). I obtain this error: Unable to start debugging on the web server. Click Help for more information. Auto-attach to process [8360] w3wp.exe' on machine 'DELL' failed. The weird thing is that I haven't done special changes to my IIS.

View 1 Replies

Configuration :: System.diagnostic.process.start Not Working From Client Browser

Jul 15, 2010

I've an application where in am trying to show a slideshow directly on page load.. for that am using the following code


Its perfectly working on the dev environment but when deployed onto iis7.. am not able open the file..

I've given all folder rights for account and network service..

View 5 Replies

Does Access To Server Resources Require Client Process To Login To Server Machine

Sep 22, 2010

Reposting my unanswered in question?

MSDN "ASP.NET Delegation" article tells:

1) "When you configure to use a particular account as the process identity, ASP.NET attempts to delegate that account. If it is a local account that is identical (including password) to a local account on a remote machine, delegation is possible. If such an account does not exist on the remote machine, to the network it appears as the Windows anonymous account (NT AUTHORITYANONYMOUS LOGON). In addition, delegation is also possible if the account is a domain account that has access to the remote machine, in which case it uses the domain network identity of that account."

The same frequently repeated story as in case of manually/interactively accessing remote computer (server resource) in workgroup - it is necessary to create local account with the same username, the same password. But why?

If a workgroup Windows client process cannot access resources on server machine without having duplicate of such (local) account on target machine already pre-created,does it mean that client (process, machine, or user) can access server resources only by/after having logged (opening logon session) into server machine? Or, how to understand that such access is impossible without having corresponding duplicate local account on server machine?

The same MSDN "ASP.NET Delegation" article tells:

"NetworkService account. It behaves the same as the System account. This account possesses the network credentials associated with the machine account (domainnamemachinename) in the domain of which it is a member"

Does not any Windows have accounts ((NT AUTHORITYNETWORK SERVICE)? as well as many other common pre-built accounts? Why are they installed (before any joining to domain) but cannot be used for remote network access and client identification ? And what is identity used when the process from workgroup Windows under identity ((NT AUTHORITYNETWORK SERVICE) accesses a remote server?

My related questions:

domained LocalSystem vs. non-domained LocalSystem account in Windows-es ? how to check group membership of an "NT AUTHORITY" account ? Is client LocalSystem (SYSTEM) identified by target/server machine? and in which context? Window workgroup LocalSystem vs. domain (AD) LocalSystem [closed]how to better set up machine for development both in workgroup and Windows domain? [closed] interoperating with Windows domain computer from workrgroup Windows [closed] the context of local user of AD-joined machine? Is it of domain machine account or of local machine account? RunAs under domain account from non-AD Windows [closed] how to better set up machine for development both in workgroup and Windows domain? [closed] how to share the same domain machine account with multi-boot workgroup Windows setup?

View 1 Replies

System.Diagnostics.Process.Start Not Work With IIS, But On Development Server?

Jul 26, 2010

System.Diagnostics.Process.Start not work with IIS, but on ASP.NET Development Server

View 3 Replies

Configuration :: Process.start (System.Diagnostics.Process) - Execute A Batch File

Sep 7, 2010

I've written a page that after the user has done what they do on the page they hit a Submit button. The Submit button

1) takes the work the users was producing on the page and writes it to a file.
2) attempts to execute a batch file.

The call to the batch file is executed via:

protected void Execute123EDI()
string File = @"c:80sAdminSendV80s.bat";
lblCancelled.Text = lblCancelled.Text + File;
Process proc = new System.Diagnostics.Process();
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.LoadUserProfile = false;
proc.StartInfo.UserName = "administrator";
proc.StartInfo.RedirectStandardOutput = true;
System.Security.SecureString secPass = new System.Security.SecureString();
string paswd = "123abc";
for (int i = 0; i < paswd.Length; i++)
proc.StartInfo.Password = secPass;
proc.StartInfo.FileName = File;
FileStream fs = new FileStream(@"c:80sAdminSendV80sOutput.log", FileMode.Append);
StreamWriter sw = new StreamWriter(fs);
catch(Exception ex)
lblDebug.Text = lblDebug.Text + ex.Message + "<br/>";

If I watch the processes tab in Task Manager on the web server I see "cmd.exe" under the context of 'administrator' but it just hangs. For test purposes c:SendV80s.bat: copy c: oot.ini c:zzz.txt

If I logon onto the webserver's console and execute SendV80s.bat it works and exits without issue. But when I execute the same batch file via the Submit button it gets stuck executing in Task Manager/Process. I believe this has something to do with the fact that cmd is not running in a full environment/desktop context. I just noticed this on the actual console of the webserver (not in my RDP console but console 0 instead)

A pop-up box stating: CMD.exe Application error The application failed to initialize properly (0xc0000142). Click OK to terminate the application. And when I click on the OK button my ASPX page's WaitForExit is satisfied and the continues processing normally.

View 2 Replies

C# - Process.Start("url") Is Not Working In Proxy Environment

Apr 15, 2010

How i can pass WebProxy credentials like userid, password, IP,Port and domain. During proxy environment the url does not open.

View 1 Replies

Visual Studio :: Unable To Start Debugging On The Web Server. The IIS Worker Process For The Launched URL Is Not C?

Jul 19, 2010

Unable to start debugging on the web server. The IIS worker process for the launched URL is not currently running.I'm running Windows 7 64 bit, VS 2008 sp1.When I first try to debug I get the error msg above. I wait a few minutes (presumably some service is starting) and debugging will start but no breakpoints are recognized.Some of the things I've tried:Changing the binding of my site from a static IP to "*".

Enabled windows authentication.made sure localhost = in the hosts file.The website was built under windows xp and whatever version of IIS ships with xp. My web config has no errors that I know of but might be missing something required for iis 7 (??)

View 2 Replies

C# - Get Log From Process.Start?

Jul 21, 2010

I'm going to precompile an application in my custom c# form. How do i retrieve the process logs and check whether it is a successful process or not?

Here's my code

string msPath = "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\";
string msCompiler = "aspnet_compiler.exe";
string fullCompilerPath = Path.Combine(msPath, msCompiler);
ProcessStartInfo process = new ProcessStartInfo
CreateNoWindow = false,
UseShellExecute = false,
WorkingDirectory = msPath,
FileName = msCompiler,
Arguments = "-p {0} -v / {1}"

View 2 Replies

C# - How To Start Process From Web Service (and Allow To It To Do Everything What It Wants To Do)

Jan 17, 2011

There is a Web Service installed on Amazon Server. Exposed WebMethod should start an executable. But, it seems that process (executable) started by WebMethod has not permissions to finish its job. If a WebMethod is called locally (using IE on Amazon VM) I can trace some events into log file placed on the path: C:\LogFiles. But, if it is called from remote machine, there is no even log files. Locally, on my machine all works fine.The question: is there any way or settings in IIS7 to allow to my WebService to create process that can do everything I want to do? In web.config file I added a line:

<identity impersonate="true" userName="USERNAME" password="password"/>
(userName and password are, of course, written correctly in the file).

Also, I tried to use impersonization as it is explained here, but there is no result. My process can't do its job, it cannot even trace actions into log file. Locally, on my machine, everything works fine.
how to change settings or whatever into IIS7?

EDIT: In addition to the main question: my WebService is not able even to create log files on the path: C:\LogFiles - although it is able if it started locally, but remotely there is no simple log file that contains some string. How to allow it to create simple text files?

View 3 Replies

Configuration :: Start A Process From A 4 App With IIS 7.5?

Jun 18, 2010

I have a web app that needs to start an application. It works great when using the debug server from VS2010 but once I deploy the web app and use the local IIS 7.5 server the application process starts in the background (no UI just a process visible in the task manager). The process is owned by DefaultAppPool. I Added DefaultAppPool user & IIS_IUSRS group to the program folder permissions but still no luck.I've found this old link on this problem but the solution doesn't apply to IIS 7.5.

View 4 Replies

VS 2005 Process.start() Don't Open Pdf File.

Jun 10, 2010

i am using a data list with link button in it that is dynamically populated by String list. i can get accurate path of the clicked link button from the data list, and the next step is to open that document. i am using process.start() method to open pdf file but it does not open that file.i am using the following code to open pdf file from specific path.
protected void lnkbtnFirstQtrly_Click(object sender, EventArgs e)
//dirCustom is the DirectoryInfo variable that is global variable.


View 4 Replies

Web Forms :: Unable To Execute The Cmd Using Process.Start?

Apr 16, 2010

I am using 2005, and my deployement server is Windows Server 2003.

I am invoking a .bat (which executes some cmd) file from my page.

But the cmd prompt not getting invoked . the application is waiting for long time in Process.Start() and after some time i am getting time out error.

Note : a. Same application is working in another production server with windows 2003

b. i have checked with giving impersonation = true - It doesnt worked

c. I have checked with gsetting identity as 'Local System' , 'Local Server'in th eApplication pool of the IIS.

View 8 Replies

C# - Unable To Start External Process With Impersonate

Feb 24, 2010

Im deploying my website onto my new server (windows 2003) from my local pc (windows 7) and my local homeserver (windows 2008) and have run in to a issue.

I have a process that starts up with the below code. It is passed a video file which gets converted.

System.Diagnostics.ProcessStartInfo StartInfo = new System.Diagnostics.ProcessStartInfo(Command, Parameters);

Them problem I have is on my new windows 2003 server it fails to work. No error or anything. Looking at the server and its taskmgr.exe I see the Process start but nothing happens.

Looking into it, everyone seems to say I need to have impersonate="true" in the webconfig which I do have, I currently have it set to the Administrator account which I use to log into remote desktop (I assume this is fine???)

<identity impersonate="true" userName="Administrator" password="********" />

This still doesn't work.. Looking in the taskmgr.exe the process is started with the username ="NETWORK SERVICE" ...

View 1 Replies

System.Diagnostics.Process.Start Not Work From An IIS?

Jan 13, 2011

When I run System.Diagnostics.Process.Start from my console application it works but the same code when I run from my web service hosted in IIS doesn't work.

Is it some thing to do with ASP.Net privileges?? if yes how can I configure it from my C# code.

View 1 Replies

C# - IIS Session Isolation / Internet Explorer Not Working In Windows Server 2003 Machine

Nov 10, 2010

I am using ShDocVW.InternetExplorer class to spawn a new internet explorer object and to do some form filling stuffs(for some sharepoint works).It works fine in my own machine which has Windows 7 as the OS. But when I deployed the same thing in windows server 2003 machine, it does not pop up the internet explorer window. When I check the Task Manager, I could see a new iexplore process, but with Session ID = 0 (but session ID = 1 in windows 7). So, I see this is something regarding IIS Session isolation.So, is it possible to assign a ShDocVW.InternetExplorer instance to kind of a new System.Diagnostics.Process and achieve this task? Or can we start a new ShDocVW.InternetExplorer instance with session ID = 1?

View 3 Replies

Start Stop Exe On A Particular Machine Based On Ip Address?

Oct 21, 2010

I am makiing a web application and this application will run only in LAN enviorement.what i want to do is-

there is a textbox and a button start. in this textbox i want to give IP address and on button click i want to run a exe on the particluer system ( ip given). and on stop click i want to stop the exe.

View 5 Replies

C# - After Deploying 4 Web Application To IIS6 Server Worker Process Recycles Cause It To Stop Working Most Of The Time?

Jul 8, 2010

This is a really odd situation, so hopefully I can explain it well enough.

I am deploying an ASP.NET 4 webforms application to a Windows Server 2003 SP2 server running IIS6.

Here's the problem -- when the application pool recycles its worker process (w3wp.exe), about 80% of the time, I will get an ReflectionTypeLoadException error trying to access any page in the app that contains an EntityDataSoure every time I try to view it.

However (this is the interesting part) -- the other 20%, it works just fine. I've actually resorted to turning off recycling the worker process entirely for this application pool and just add/remove whitespace from web.config forcing the site to recompile until I get a "good" w3wp.exe.

If this isn't clear, what I'm saying is: the actual worker process doesn't work at all for pages containing an EntityDataSource for about 4/5 times it starts, but still manages to serve all other pages just fine. Once you get a worker process that manages to serve a page with an EntityDataSource, it works every time until that process gets recycled.

My question is, how can I debug this? It works fine on my dev machine, it works fine on the server as long as you get a good process running, but iisreset or a server restart or anything that kills the worker process is almost guaranteed to cause the site to not come back up and throw this ReflectionTypeLoadException.


View 3 Replies

Security :: Cannot Run System.Diagnostics.Process.Start In Code Behind Under IIS

Jun 30, 2010

I can not run System.Diagnostics.Process.Start(@"wmplayer.exe") in code behind under IIS, - nothing happens, though I can do it successfully using Visual Studio ASP.NET Development server. I read topic and made as recommended: 1) Made ASP.NET worker process run in SYSTEM account 2) Enabled IIS Admin Service to interact with desktop and rebooted serivce. - wmplayer.exe does not start, even its process does not start. I tried start notepad.exe and it partly works - process starts, I see only window frame, but not menu and can not interact with it. The other thing I tried is to put it under out-of-process (IIS virtual folder properties) and gave the process administrative rights (changed identity in Component Services): no result.

View 6 Replies

Configuration :: Opening A File With Process.Start Outside Root Folder?

Nov 6, 2010

So, I have a webForm that has an ImageButton. This ImageButton has to open a file (said file is uploaded by the user in another web form. The file is saved to \serverNamefiles; it can be a doc file, pdf file, excel file).

So this ImageButton should open said file as you normally would. It works on debug, however when I publish my site, and run it from my localhost, it doesn't open the file. When I click the ImageButton it just does the postback and nothing happens.

The code for the ImageButton is just:


fileName has the full path of the file I want to open, in this case it has: \serverNamefilesmyFile.pdf

View 11 Replies

Does Server.MapPath Behaves Differently In Local Machine And Server Machine

Jul 1, 2010

I have had a real nightmare with Server.MapPath(). When I call Server.MapPath("~") in my application that is running in ASP.NET Development Server it returns root directory that ends in a back slash like f:projectsapp1, but I call it in published version, installed in IIS, it returns root directory without any back slash like c:inetpubwwwrootapp1.

string mainRoot = HttpContext.Current.Server.MapPath("~");
DirectoryInfo di = new DirectoryInfo(mainRoot);
//added to solve this problem with Server.MapPath
if (!mainRoot.EndsWith(@""))
mainRoot += @"";
FileInfo[] files = di.GetFiles("*.aspx");
foreach (FileInfo item in files)
string path = item.FullName.Replace(mainRoot, "~/").Replace(@"", "/");
//do more here

View 1 Replies

Configuration :: Diagnostics.Process.Start - Works In Development/debug Not Deployed?

Aug 27, 2010


for example it just starts notepadn my development pc i'm using Win7 and when i deploy the app onto my local IIS7 it works and i can call notepadWhen i run debug mode with VS2010 it works too!

View 2 Replies

How To Force Web Service Base Class Method Run Before Web Service Method Start

Aug 6, 2010

My web services have base web service method called IsGood()I want to make sure every methods in my web service call IsGood() in base web service automatically without add code in each web service method, can I do that?

View 2 Replies

Copyrights 2005-15, All rights reserved