473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Need Help Impersonating Across Process Boundaries

Hi, all.

I'm have some difficulty on Win2K3 trying to spawn
a devenv.exe process from my ASP.NET app. I've
set up an intranet website to allow engineers to
launch builds of our product remotely.

I understand that I need to invoke Win32 with
CreateProcessWithLogonW(), which I have. I'm
unable to keep the IDE from popping up and
hanging on a dialog pop-up. Is there a better
way to compile a .NET solution from a separate
C# application?

Thanks!
bn

Nov 19 '05 #1
4 1176
Use the C# command line compiler, csc.exe. Here's an article:
http://msdn.microsoft.com/library/de...ommandLine.asp

Hope that helps,

DalePres
MCAD, MCDBA, MCSE

<ho**********@hotmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Hi, all.

I'm have some difficulty on Win2K3 trying to spawn
a devenv.exe process from my ASP.NET app. I've
set up an intranet website to allow engineers to
launch builds of our product remotely.

I understand that I need to invoke Win32 with
CreateProcessWithLogonW(), which I have. I'm
unable to keep the IDE from popping up and
hanging on a dialog pop-up. Is there a better
way to compile a .NET solution from a separate
C# application?

Thanks!
bn

Nov 19 '05 #2
spawned process from asp.net can not open any windows. did you try the
/build switch?

look at nant on sourceforge. also look at cruisecontrol for a prebuilt web
site to do .net builds.

-- bruce (sqlwork.com)

<ho**********@hotmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
| Hi, all.
|
| I'm have some difficulty on Win2K3 trying to spawn
| a devenv.exe process from my ASP.NET app. I've
| set up an intranet website to allow engineers to
| launch builds of our product remotely.
|
| I understand that I need to invoke Win32 with
| CreateProcessWithLogonW(), which I have. I'm
| unable to keep the IDE from popping up and
| hanging on a dialog pop-up. Is there a better
| way to compile a .NET solution from a separate
| C# application?
|
| Thanks!
| bn
|
Nov 19 '05 #3
ho**********@hotmail.com wrote in news:1107552593.867953.205060
@c13g2000cwb.googlegroups.com:
Is there a better
way to compile a .NET solution from a separate
C# application?


Take a look at the .NET SDK - there is a free command line compiler
(CSC.exe).

http://msdn.microsoft.com/library/de...l=/library/en-
us/cscomp/html/vcrefCompilerOptions.asp
VB.NET options:

http://msdn.microsoft.com/library/en-
us/vblr7/html/vaconBuildingFromCommandLine.asp?frame=true

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #4

bruce barker wrote:
spawned process from asp.net can not open any windows. did you try the /build switch?

look at nant on sourceforge. also look at cruisecontrol for a prebuilt web site to do .net builds.

-- bruce (sqlwork.com)


Thanks for that, Bruce! Yeah, I'm thinking of
going with CruiseControl.NET and NANT. I'm so
worn out trying to spawn processes from ASP.NET
while impersonating a domain account. This looks
like it does what I want, and I can customize it
with plug-ins.

CruiseControl appears to be free. Is that the case?

bn

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Danny | last post by:
Hi ; i'm Using ASp.Net C# and i need to open a new task in outlook : Application outLookApp = new Application(); TaskItem newTask = (TaskItem)outLookApp.CreateItem (OlItemType.olTaskItem);...
8
by: Drew | last post by:
I am trying to build a small app that shows a Course Title from the database, then displays a dropdown full of categories for the user to choose one... I thought a loop would be the best way to...
1
by: cur | last post by:
Ok, I need some help here. First of all, here's the offending bit of code: Private Sub WriteToFile(ByVal strPath As String, ByRef buffer As Byte()) Dim newFile As System.IO.FileStream = New...
1
by: Indepth | last post by:
Overview: We're creating a ASP.NET app in C# that calls some C# programs we've created. Our DB server is on a w2k3 machine and using our w2k machines as our web server. Without setting an Identity...
2
by: Leonardo Arena | last post by:
We have an Index Server on Win2k Server SP4 indexing about 250.000 docs. We have written an ASP.NET serch page, setup a new virtual directory, and set to use .NET framework 2.0. On the server is...
4
by: foxx | last post by:
This is driving me nuts. I can't catch an exception thrown out of a ..so library. It passes up and terminates the program instead. Here is the code for the .so and the executabe, the compiler...
2
by: Bill | last post by:
I have a 200 record database that includes a date/time field, AnnivDate, for a wedding anniversary. AnnivDate has nulls and some incorrect year data. I have been creating the Access database...
2
by: Bhuwan Bhaskar | last post by:
Hi, Can anyone explain me about what is a worker process in ASP.net. Thanks and Regards, Bhuwan
45
by: =?Utf-8?B?QmV0aA==?= | last post by:
Hello. I'm trying to find another way to share an instance of an object with other classes. I started by passing the instance to the other class's constructor, like this: Friend Class...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.