15,896,912 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by TSKNaidu (Top 20 by date)
TSKNaidu
2-Sep-11 14:06pm
View
The element is not of ref type. Also, the xmlns of "unknown" has been inserted by the code block (when I have not marked up the actual code). Actually, we can see the namespace being set explicitly in the C# code snippet.
Thanks for taking time.
Regards.
TSKNaidu
15-Jun-11 5:51am
View
If you convert encrypted byte[] array to store in an XML document as a string, it is possible that invalid XML characters could be part of the encrypted string.
TSKNaidu
15-Jun-11 5:49am
View
Thanks Keith for the tip to use HEX values. It worked. We used Uri.HexEscape and HexUnescape methods to store the encrypted values as XML string.
TSKNaidu
15-Jun-11 5:47am
View
Hi!
Thank you for taking time to respond to my question.
Yes. The solution works when the XML schema is fixed.
regards.
TSKNaidu
12-Apr-11 8:46am
View
Dave,
Appreciate your support.
You said: You do NOT write "containers" to run .EXE's as services.
Understanding that SRVANY is a utility that runs an EXE as a windows service, how did the guys who wrote this utility have implemented it (to run an EXE as a windows service)?
And, we are looking for an answer to this how, so that we can implement this using C#.
Thanks again for all your perseverance and help.
best regards,
Srikanth
TSKNaidu
12-Apr-11 8:45am
View
Deleted
Dave,
Appreciate your support.
You said: You do NOT write "containers" to run .EXE's as services.
Understanding that SRVANY is a utility that runs an EXE as a windows service, how did the guys who wrote this utility have implemented it (to run an EXE as a windows service)?
And, we are looking for an answer to this how, so that we can implement this using C#.
Thanks again for all your perseverance and help.
best regards,
Srikanth
TSKNaidu
7-Apr-11 5:49am
View
Are you now asking if you can run the same .EXE as both a Windows Forms app AND a Service?
No! Absolutely not! On the other hand, the service that is being created is consumed by our Windows forms app.
Coming back to our requirement, using C# with a 'Windows Service' project template, how can we create a "container" like "srvany.exe" to host a windows application to run as a service?
Thanks again for all your help and appreciate your time.
best regards,
Srikanth
TSKNaidu
6-Apr-11 2:12am
View
Dave,
Thanks for your patience and taking time to address my question.
As things are becoming clearer and for my own understanding, I have captured the understanding as a flowchart (not the literal meaning of it!). Here it is:
====== Begin =======
logic("Adding an application to a window service")
{
if("user-mode application")
{
//do not add
return;
}
else
{
//Add the application as a Windows service using any of the following external tools
///1. sc.exe (part of Windows 2003 resource kit)
///2. instsrv.exe and srvany.exe( same as above )
///3. Firedeamon commercial utility
//Within our application (client that consumes the services):
///1. Using methods in 'System.ServiceProcess.ServiceController' class, monitor and control the above added Windows service.
}
}
====== End ========
Now, coming back to our original requirement, we are looking for another tool (#4 in the above logic - after Firedaemon utility). This tool is a small C# application that can be internally developed using 'Windows Service' project template provided by Visual Studio IDE.
Thanks again for all your time in helping us in meeting our requirements.
best regards.
TSKNaidu
6-Apr-11 2:11am
View
Deleted
Dave,
Thanks for being patient and taking time to address my question.
As things are becoming clearer and for my own understanding, I have captured the understanding as a flowchart (not the literal meaning of it!). Here it is:
====== Begin =======
logic("Adding an application to a window service")
{
if("user-mode application")
{
//do not add
return;
}
else
{
//Add the application as a Windows service using any of the following external tools
///1. sc.exe (part of Windows 2003 resource kit)
///2. instsrv.exe and srvany.exe( same as above )
///3. Firedeamon commercial utility
//Within our application (client that consumes the services):
///1. Using methods in 'System.ServiceProcess.ServiceController' class, monitor and control the above added Windows service.
}
}
====== End ========
Now, coming back to our original requirement, we are looking for another tool (#4 in the above logic - after Firedaemon utility). This tool is a small C# application that can be internally developed using 'Windows Service' project template provided by Visual Studio IDE.
Thanks again for all your time in helping us in meeting our requirements.
best regards.
TSKNaidu
5-Apr-11 13:25pm
View
Are you saying that we just use Process.Start() within our application? And, this is the easiest way of launching the apps?
If it is, then, what we are looking for is to take out these Process.Start() calls and automate their launch via Windows Services.
Thanks for your time.
TSKNaidu
5-Apr-11 9:13am
View
Thanks Dave for taking time to bring clarity to the issue posted.
Coming back to our requirement and as mentioned in our question (option 2), we intend to start few out-of-process servers (apps) as windows services.
And, you are suggesting to better start these apps directly from our application.
This leaves us with the first option (bundle these apps into a batch file and run the batch file).
While still technically unclear about why these apps cannot be "automated" to run without our application, I looked around for a "container" that could possibly run these apps as Windows Service.
And, I would like to share with you the following links that throws more light on how to run an external process as a windows service:
1. http://support.microsoft.com/kb/251192
2. http://www.firedaemon.com/download-firedaemon.php
3. http://www.instantfundas.com/2008/08/how-to-run-windows-applications-as.html
Appreciate your time to address our question.
best regards.
TSKNaidu
4-Apr-11 8:45am
View
Thanks for taking time to reflect on the question.
Are you suggesting that it is not advisable to start out-of-process servers (executables) from a windows service? Can you pl be specific why it is not?
Appreciate your time.
TSKNaidu
18-Feb-11 0:40am
View
What if there is neither an excel nor openoffice to save and run the macro? This is our situation.
And, relatively speaking, we are looking for a "generic macro", which could be a .net CF component, that can be used in our app.
Thanks for your time.
TSKNaidu
18-Feb-11 0:36am
View
Thanks for the suggestion. I downloaded a trial version of Smartxls and having trouble to make it work for us. We used the readXML method to read a file in Excel XML format and write it to Excel binary equivalent. It throws up an error "Requested value 'String' was not found".
Thanks for your time.
TSKNaidu
16-Feb-11 22:40pm
View
Hello! SA,
To make the file open in other spreadsheet applications that do not yet support Excel XML format. Manually if we open the Excel XML file in MS Excel and do a File->Save As to the Excel binary XLS format, and re-open in the said apps, it works.
Hence, the question to find if there are any libs available to automate the above manual process.
There is a one component called 'ExcelDataReader' on Codeplex that does the reading part (Xls to Xml). And, I am looking for the writing part (Xml to Xls).
While understanding that Xls is a propreitary format of MS, nevertheless, I was searching for a component that runs on .net CF that addresses our req.
Appreciate your help and Thanks for your time.
TSKNaidu
25-Jan-11 12:03pm
View
1. Class with abstract method 'MoveNode' is: GraphicalObject (it is in a compiled lib titled 'MoveGraphLibrary.dll').
2. Class with overridden method is: RingRsRt.
3. Error occurs in the overriden method (MoveNode) in the above class.
Thanks for your time.
regards.
TSKNaidu
25-Jan-11 11:55am
View
Thanks CDP for throwing some light!
Though the namespaces and method signatures seem to be the same in both .net CF and FF libraries being used (System.Windows.Forms.dll and System.Drawing.dll in our case), obviously the VS compiler does not see them as same.
Is there a workaround where I can make the compiler do a conditional compilation to use only CF version if a method is supported, else, throw error?
Thanks again for taking time to answer.
best regards.
TSKNaidu
25-Jan-11 0:02am
View
Please find below the source that generated error:
MoveGraphLibrary.dll:
public abstract bool MoveNode(int i, int dx, int dy, System.Drawing.Point ptM, System.Windows.Forms.MouseButtons catcher) Member of MoveGraphLibrary.GraphicalObject
MyApp.exe:
public abstract class ElementRsRt : GraphicalObject
{
//implements some of the abstract methods in the derived GraphicalObject class
}
public class RingRsRt : ElementRsRt
{
// public override bool MoveNode (int i, int dx, int dy, Point ptM, MouseButtons catcher)
{
//implements the abstract method MoveNode as defined in the grand parent class (GraphicalObject)
}
}
Error occurs while compiling MyApp.exe using .netCF for WinCE. No error while compiling for WinApp.
Thanks for taking time to answer.
TSKNaidu
24-Jan-11 23:54pm
View
You are right. Some of the methods in FF are not available in CF. But, we are attempting to implement a derived method in the inherited base class.
As a matter of fact, I commented out the whole code to ensure that the implementing method in question is not using any method from CF/FF. But, we still get this error.
Appreciate your time for addressing this question.
best regards.
TSKNaidu
24-Jan-11 23:46pm
View
Please find below the source that generated error:
MoveGraphLibrary.dll:
public abstract bool MoveNode(int i, int dx, int dy, System.Drawing.Point ptM, System.Windows.Forms.MouseButtons catcher)
Member of MoveGraphLibrary.GraphicalObject
MyApp.exe:
public abstract class ElementRsRt : GraphicalObject
{
//implements some of the abstract methods in the derived GraphicalObject class
}
public class RingRsRt : ElementRsRt
{
//
public override bool MoveNode (int i, int dx, int dy, Point ptM, MouseButtons catcher)
{
//implements the abstract method MoveNode as defined in the grand parent class (GraphicalObject)
}
}
Error occurs while compiling MyApp.exe using .netCF for WinCE. No error while compiling for WinApp.
Thanks again for taking time to address my question.
best regards.
Show More