|
You get a Console when you either ask for one using explicit code, or when you specify a Console App (which will happily let you create and show Forms as well). What did you do? Which using statements did you get automatically, and which ones did you add? What are your project settings? what is in your static Main() method?
|
|
|
|
|
I actually I'm working with group and I'm just collecting their application and implement it as one application.
|
|
|
|
|
You likely have the project set to console app, set it to windows app.
|
|
|
|
|
thank you very much. yupe the setting was in the console app.
|
|
|
|
|
Hi,
Is there any way to find that the uploaded file is correctly saved in a given folder?
Thanks and Regards,
kalyan
|
|
|
|
|
File.Exists(path)
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi There everyone,
Does anyone know how i can automate the process of publishing a webapplication.
Normally in Visual studio i go to Build | publish and fill in the data.
However i want to do this using c# , so that the process can be completely automated.
I tried it using the Microsoft.Build.Engine. But i did not succeed.
Thanx in advance.
|
|
|
|
|
If you don't like the built in deployment model why not use xcopy deployment?
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
nils illegitimus carborundum
|
|
|
|
|
Hi there,
Thank you for your reply.
I'is not that i do not like the build in method.
But i want to automate the publishing project using C#.
A example.
I have a web application.
I want to create a tool where i can publish the application to a specified directory on my computer and the do some stuff.
The only thing missing is a way to automate the publisch action without having to do it myself.
I want to call the buildengine from code.
Greets
|
|
|
|
|
Having inherited someone else's code to maintain (we've all been there), I am having a problem with the (3rd party, non-MS) installer creator. Specifically, it includes two files that I cannot find, which are:
Microsoft.VC90.CRT.cat
Microsoft.VC90.CRT.manifest
From what I can tell, they are Microsoft VC++ redistributables, which should be installing to the folder "C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT(...)".
For some reason, I cannot find these files (.cat and .manifest) anywhere; Google and MSDN searches have not turned them up. If anyone can clue me in to where I can obtain them, it would be most helpful.
Thanks in advance.
|
|
|
|
|
Look in the "Redist" folder inside your Visual Studio installation in "Program Files".
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT
|
|
|
|
|
I did find that folder, and it contained the .manifest file, but not the .cat file. I don't know why it would be missing, perhaps something is wrong with my VS install?
Thank you for your help.
|
|
|
|
|
Like you, I found the .manifest file on my machine at work. But here I'm using VS2008 Express. At home I have the standard edition, so I'll check tonight for it.
Aren't .cat files usually used for installation, though? If you have the Visual Studio installation disc handy, I'd search there first.
-Nope, not on the home machine either. Sorry about that.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
modified on Saturday, June 19, 2010 11:11 AM
|
|
|
|
|
I am creating a windows service using c#.net 3.5
i created installer file to install it.
it was installed successfully. when i tried to start the service from the service explorer it showing the below error instead of starting the service
"some services stop automatically if they are not in use by other programs or services".
Please help me out.
Thanks
Anil Veeraghattapu.
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:20am.
|
|
|
|
|
alright.
lemme try and get back to you.
|
|
|
|
|
yes i put all the code of the Onstart event in try catch block. its no use.
i am getting the same error message when i tried to start the service from the service explorer
thanks
Anil Veeraghattapu.
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:19am.
|
|
|
|
|
Thanks
i find the exception in the text file.
you did a great help.
the problem is it was a fromat exception throw by a log control when i tried to log somethin in the on start event
Thanks
Anil Veeraghattapu.
|
|
|
|
|
Anil Veeraghattapu 4 wrote: i put all the code of the Onstart event
There is your problem.
The general layout of a Service is, in OnStart, you are expected to start a seperate thread that handles your main service code loop, such a listeners or some kind of polling loop, ... This releases OnStart and returns control back to the Service Control Manager.
In OnStop, you shutdown this loop as appropriate and let the thread stop gracefully.
Putting all of your code in OnStart gives you exactly the error message your getting because OnStart never returns control back to the SCM within the default 30 seconds the SCM expects OnStart to return.
|
|
|
|
|
Have you run it under the debugger yet?
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
the service a'nt got started my friend.
i am unable to attach it to debugger.
Thanks
Anil Veeraghattapu.
|
|
|
|
|
Wrong. Put a breakpoint at the top of the Start)( method.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
In the event log you can see further information, if there's an exception you will be able to see it there as well.
|
|
|
|
|
Yes
you are right.
it was some format exception
i find it in the event log too.
Thanks for your help
Thanks
Anil veeraghattapu.
|
|
|
|