Process - Console App Crashing After Being Launched From ASP.NET Webform?
Dec 17, 2010
I need to trigger a Console App (exe) file from a asp.net webforms page. Obviously the main issue is permissions, and for now I'm just trying to get this working by letting the asp.net service impersonate the main Administrator account. Once I can get it working in a stable fashion, I'll set up it's own user and permissions. For now I would really appreciate assistance in getting this working.
[code]...
Also, the EXE can be launched directly on the server via RDC and it runs just fine.I've wasted almost 2 days trying to get this to work, and at this point I'm desperate for some experienced input on this job. I'd even be willing to throw in $50 as a thankyou gift to whoever has the solution.
View 1 Replies
Similar Messages:
May 28, 2010
I have come across some ASP.NET sites that rather than displaying a page, it launches a console-based application similar to how LiveMeeting kicks-off. I am interested in building an app that uses that feature so that I could take advantage of richer features of a console-based app, but for the life of me, I can't seem to find any info on the internet as to what type of project this would be in VS. I have tried WPF Browse Application, but thats not what I am looking for since the app type I am talking about does not run in the browser at all. The image below shows what happens when reaching the web site, which would therefore then launch the console-application (which is not even installed on the client's machine)
View 1 Replies
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 = 127.0.0.1 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
Aug 13, 2010
We are thinking about using the enterprise library caching framework in our asp.net 3.5 application to store small datatables of our most hit products. Is there a way to write an outside process, like a console application, to remove these datatables, if needed? For example, a client can come in and update the data for a product, which will make the datatable stored in cache out of date. When this happens, I would like an outside application go into the cache and remove or even update the cache with the new data.
View 1 Replies
Nov 5, 2010
I launched an aspx site recently and all roles worked perfectly in the development environment.
However when I use the login function in the production environment all users have access to all pages. Why would this be happening?
View 3 Replies
Mar 30, 2010
I create dynamically a serie of buttons, with differents IDs (button_1, button_2...), but all of them, call to the same method when they "OnClientClick" event is lanched.
I need to know which of these buttons was clicked.
View 5 Replies
Jul 14, 2010
I have a solution with about 10 web services and one web site that calls them. All the services have to launch when I click "start debugging", which is necessary and good. When I stop debugging the services are still running. I can right click on each of them in the system tray to shut them down, or I can shut down Visual Studio and they get shut down automatically. Is there a better way?
I found this SO post which says how to not start the services in the first place, but I want the services to launch (and even want them to stay running more often than not.)
View 1 Replies
Aug 3, 2010
When I press F5 (debug) in Visual Studio 2010 Express, I get the following error message:
Unable to start debugging on the web server. IIS does not list a web site that matches the launched URL.
This happens only when I am trying to make use of the option "Use custom server".
I got both the host file and the IIS bindings set up. The server that I specified is working in the browser.
View 3 Replies
May 25, 2010
I just upgraded to Windows 7. On Win XP, I could set breakpoints in an ASP.Net project and those breakpoints would hit from any browser/tab on my machine. Using Windows 7, that doesn't work. The browser that launches when I hit F5 does, but no other instances/tabs
do. If I try to explicitly attach to process to attach to another browser instance, it still doesn't hit.I need to debug this way because an error is occuring only when I enter the application by following an external link.
View 2 Replies
Mar 17, 2011
I'm trying to get threading to work in ASP.NET but for some reason it keeps crashing my local server, and simply does not work at all when uploaded online. Here's the code:
protected void testThread()
{
for (int i = 0; i < 10; i++)
[code]...
View 3 Replies
May 18, 2010
I've been using MVC since the previews of 1.0 and I think I know what I'm doing, but for the life of me I can not figure out why sometimes when I use RedirectToAction it crashes saying there is no route available. Consider this in MVC 2.0:
I'm registering on my site and I first hit the SiteController, which does its magic then I am to be redirected to my new dashboard, controlled by the... DashboardController. I never make it there. I specify the action and the controller in the redirect call, but it still crashes and burns. The only thing I can possible think of is because the DashboardController is its own area, but that still doesn't help me because by my understanding it should still work regardless.
View 1 Replies
Mar 5, 2010
am trying to upload video into database,but i click and upload video firewall is crashing and it is same with IE is well.
View 8 Replies
Sep 26, 2010
I can't see anything about this in the forum, yet it's a problem I have both on my VPS demo box and on some live boxes too:
When I deploy anything requiring a re-compile (e.g. not just an aspx.cs, but a .cs file) about once in every three times, IIS crashes.
This then requires not just a restart of IIS, but a reboot of the entire server, to bring it back again. If I try to restart just IIS, it won't actually "stop", so it won't then start again.
I therefore try to only deploy updates late at night, but in urgent situations a problem which needs rectifying can be made much worse by an additional 5 minutes of hard downtime while the box reboots. I can't predict when this will happen, but now warn all my clients against any updates during "office hours".
Is this a known bug/fault - can I get around this, preferably not by using RDP and stopping IIS completely before I FTP the files across?
Both boxes are 32 bit Windows Web Server.
View 6 Replies
Feb 26, 2010
I am using a server control on a single web.forms page. I have to use this control on a web.forms page since its a server control, although this is actually a MVC project. So I created a web.forms folder and put my new page in it. I then copy the example code from the signature control. I get the following error:
The base class includes the field 'ctrlSign', but its type (WebSignatureCapture.SignatureControl) is not compatible with the type of control (ASP.signaturecapture_signaturecontrol_ctlsignature_ascx).
I know the code works because if I removed the ID attribute from the server control, it no longer gives me this error and my control renders. But I need the attribute for the ID so I can perform is post event
I am using this signature control. Here's the web.forms code...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="KahunaCentralTIDRevamp.SignatureCapture.Index" %> [code]....
View 2 Replies
Jul 5, 2010
The text on my website is skewed and different areas are running together when viewing my site on a Mac using either Firefox or Safari. Is there anything I can do about this?
View 1 Replies
Nov 13, 2010
i have 2 problems with running&debugging my web projects using visual studio 2008 pro :
1.when choosing to run without debugging , IE is being opened (which is ok , since i chose it to be the default one to be opened via VS ) , and yet when i close IE , it is being opened once again .
2.when choosing to debug , visual studio crashes and IE is being frozen (can only be killed via task manager) ,even when i don't have the "debugger;" string in the javascript code.
i've tried to re-install VS , and also uninstall it and then re-install it, but it didn't help. i have windows xp sp3 home edition 32bit. what should i do? EDIT:about #1 , it seems that from some reason, VS didn't install "Microsoft Visual Studio Web Authoring Component" , and this is also why i had another problem of not being able to use the design/split mode . after installing this component, it seems that IE doesn't run twice anymore. however, i still have crashes of VS when trying to debug (problem #2) ,even thogh script debugging is enabled on IE. the weird thing is that on maxthon2 , which uses IE engine, debugging works just fine.
View 2 Replies
Apr 27, 2010
When I open my web page with my RadEditor version 7.3.6.0 on it to create a new using the editor I get a popup warning on the page.
Soon after this while using Rad Editor I get a message in IE8 (Version 8.0.6001.18702IS) saying the page has been recovered and I have lost all of my edits.
This is also happening to other people, my customers, when they use the same page on their IE browser.
View 1 Replies
Feb 29, 2012
I have the following in a .ascx control and it is crashing today due to leap year I assume. Is there any global setting i can do to make this work?
Code:
<cc1:CalendarExtender ID="TextBox4_CalendarExtender" runat="server" Enabled="True"
TargetControlID="TextBox4" SelectedDate='<%# Datetime.Parse(Now.Month & "/" & Now.Day & "/" & DateTime.Now().AddDays(365).Year) %>'>
</cc1:CalendarExtender>
View 9 Replies
Mar 13, 2010
In my application i am getting data fROM sql server 2008.It is coming from collection of nearly 12 tables. I have to fillter this data in my application and of fillter data i have to write Xml.
my problem is that to fillter i need to that retrieve data to hold in my application and to achieve this i am using the help of dataset and datatable.But most of time when i am running application ,my application getting hang and very slow OR getting crashes.
View 1 Replies
Sep 7, 2010
I've written a aspx.net(C#) 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()
{
try
{
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++)
{
secPass.AppendChar(paswd[i]);
}
proc.StartInfo.Password = secPass;
proc.StartInfo.FileName = File;
proc.Start();
FileStream fs = new FileStream(@"c:80sAdminSendV80sOutput.log", FileMode.Append);
StreamWriter sw = new StreamWriter(fs);
sw.Write(proc.StandardOutput.ReadToEnd());
proc.WaitForExit();
sw.Close();
proc.Close();
}
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
Oct 19, 2010
in webform 1, i have search button when i click its open webform2 and there the gridview.
I want when i click the link in gridview in webform 2 then it close webform 2 and change the datasource parameter in webform 1 without open the new window (still same window)
View 2 Replies
Mar 21, 2011
What is right way to send visitors from one webform to other. What are their limitations and their plus points.
View 2 Replies
Jul 21, 2010
I know that similar questions have been asked all over the place, but I'm having trouble finding one that relates directly to what I'm after.
I have a website where a user uploads a data file, then that file is transformed and imported into SQL. The file could be up to 50mb in size, and some times this process can take 30 minutes or sometimes even longer.
I realise I need to palm off the actual work to another process, and poll that process on the web page. I'm wondering what the best approach would be though? Being a web developer by trade, I'm finding all this new Windows Service stuff a bit confusing, and I just wanted somewhere to start.
So:
Can I do / should I being doing this with a windows service? if so, how?
Should I use WCF? If this runs under IIS, will I have problems with aspnet_wp.exe recycling and timing out my process?
clarifications
The data is imported into sql, there's no file distribution taking place.
If there is a failure, it absolutely MUST be reported to the user. The web page will poll every, lets say, 5 seconds, from the time the async task begins, to get the 'status' of the import. Once it's finished another response will tell the page to stop polling for status updates.
queries on final decision
ok, so as I thought, it seems that a windows service is the best idea. So as to HOW to get it to work, it seems the 'put the file there and wait for the service to pick it up' idea is the generally accepted way, is there a way I can start a process run by the service, without it having to constantly be checking a database table / folder? As I said earlier, I don't have any experience with Windows Services - I wondered if I put a public method in the service, can I call it somehow?
View 2 Replies
Feb 26, 2010
I'm working on an ASP.net app I'm trying to execute a process remotely , using System.Diagnostics.Process class here's my code:
ProcessStartInfo startInfo = new ProcessStartInfo(@"C:TestCommand.exe");
startInfo.Domain = "myDomain";
startInfo.UserName = "MyUserName";
SecureString sec = new SecureString();
foreach (char item in "MyPassword")
{
sec.AppendChar(item);
}
sec.MakeReadOnly();
startInfo.Password = sec;
startInfo.UseShellExecute = false;
Process.Start(startInfo);
I keep receiving an exception with the message "Logon failure: unknown user name or bad password". Im absolutelly sure that i'm submiting my correct username/pwd
View 1 Replies
Apr 3, 2010
I've developed a popup email .aspx used on our intranet based web app that is auto generated with .pdf's attached. I'm developing with VS 2008 ASP.Net 3.5 C# and System.Net.Mail.MailMessage. I can create and send the email with no issues. The problem is with any attempt to open or delete the attachments I get the above error. The .pdf's a copied with the following code:
FileStream fsr = new FileStream(inFilename, FileMode.Open, FileAccess.Read, FileShare.Read);
BinaryReader reader = new BinaryReader(fsr);
byte[] bytes = new byte[fsr.Length];
reader.Read(bytes, 0, bytes.Length);
FileStream fsw = new FileStream(outFileName, FileMode.Create, FileAccess.Write, FileShare.Write);
BinaryWriter writer = new BinaryWriter(fsw);
writer.Write(bytes, 0, bytes.Length);
// clean up
writer.Flush();
writer.Close();
writer = null;
fsw.Close();
fsw.Dispose();
fsw = null;
reader.Close();
reader = null;
fsr.Close();
fsr.Dispose();
fsr = null;
Later after sending the email I:
mailMessage.Dispose();
mailMessage = null;
foreach (string fileName in attachments)
{
if (File.Exists(fileName))
File.Delete(fileName);
}
The error occurs at: the File.Delete(fileName);
how I can delete or reopen these files after sending the email?
View 9 Replies