View previous topic :: View next topic |
Author |
Message |
i2s
Joined: 23 Mar 2011 Posts: 10 Location: Greece
|
Posted: Wed Nov 06, 2013 11:30 am Post subject: Encrypt console application |
|
|
I am trying to encrypt a console application starting a server:
Code: |
static void Main(string[] args) {
...
using (HttpSelfHostServer server = new HttpSelfHostServer(config))
{
server.OpenAsync().Wait();
opened = true;
Console.WriteLine(String.Format("Server listening on port {0}...", Port));
Console.WriteLine("Press Enter to quit.");
Console.ReadLine();
}
...
|
When I click on bootstrap exe nothing happens.
If I add a form in my application everything works fine.
For your info, this is an ASP.NET MVC webapi server.
So can I use .net encryptor with console applications?
--
Aris |
|
Back to top |
|
 |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Nov 06, 2013 11:19 pm Post subject: |
|
|
Yes .NET Encryptor will work for Console applications - however you have to change the Bootstrap application to a Console application also (Project Properties > Application > Output type). _________________ Infralution Support |
|
Back to top |
|
 |
i2s
Joined: 23 Mar 2011 Posts: 10 Location: Greece
|
Posted: Thu Nov 07, 2013 8:35 am Post subject: Thanks |
|
|
I already did that. Actually it was an exception that I could not see.
Anyway, knowing it works on console applications built my confidence to find the problem.
Thanks |
|
Back to top |
|
 |
|