Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Encrypt console application

 
Post new topic   Reply to topic    Infralution Support Forum Index -> .NET Encryptor Support
View previous topic :: View next topic  
Author Message
i2s



Joined: 23 Mar 2011
Posts: 10
Location: Greece

PostPosted: Wed Nov 06, 2013 11:30 am    Post subject: Encrypt console application Reply with quote

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
View user's profile Send private message MSN Messenger
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Nov 06, 2013 11:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
i2s



Joined: 23 Mar 2011
Posts: 10
Location: Greece

PostPosted: Thu Nov 07, 2013 8:35 am    Post subject: Thanks Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> .NET Encryptor Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group