Click here to Skip to main content
15,887,812 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi,
I successfully protect desktop application with Sentinel HL. But when I want to protect my web app (.net mvc), I get HASPDotNetDllBroken status. My code:
C#
using(Hasp hasp=new Hasp())
{
    HaspStatus status = hasp.Login(vendorCode, localScope);
    return status.ToString();
}


I read on the web, that this is problem with dll files (path, missing...). I added all required dll files to the bin folder (I also added a references to this files in the my MVC project). It can be problem because I run my web app at the localhost (ISS)? And the problem arises when he wants to find the keys and can not find it?

Does anyone have any idea?

Thanks
Posted
Comments
[no name] 2-Jul-15 13:44pm    
Why aren't you asking the manufacturer? Do you suppose that they might know more about their product than random strangers on the internet?
vezo11 2-Jul-15 14:20pm    
I have already contacted manufacturer, but my contact is on vacation (a few more days). Do you think that "strangers" on the internet do not know what could be a problem?
[no name] 2-Jul-15 14:46pm    
Random strangers on the internet are not the support people for every hardware vendor on the face of the planet. The best people to help you are the people that know something about the hardware. If you contact is on vacation then either wait or get another contact.
vezo11 2-Jul-15 16:18pm    
You are right. But maybe these "random strangers" on the internet have any idea for solution.. Maybe these "random strangers" on the inteternet have experience with the problem of the use of usb in the web app, iis,... I need an idea for solve a problem and not a implementation encryption algorithm.
[no name] 2-Jul-15 13:52pm    
http://sentineldiscussion.safenet-inc.com/topic/haspdotnetdllbroken

1 solution

Please see my comment to the question.

You need to understand: HTTP-based Web applications are different: 1) server-side code is not accessible to the client and does not need protection; 2) client-side scripts are delivered to the client side in full and cannot be protected.

The only concern could be trying to protect the code from the people working at your hosting company, but it could really would be difficult to achieve for shared Web service. Apparently, it could be possible to do for a dedicated private host, virtual or not, and of course, if you self-host the Web site. I doubt that this was your concern, but this is the only subject we could further discuss.

[EDIT]

Probably, the discussion on comments comes to the point where we need this "future discussion".

This is the concern of protection of the software from stealing by hosting company people. In this case, these are the people supporting server on company Intranet. In this case, protection is much harder. One possible solution could be: using the compiled version of the site. Please start here: https://msdn.microsoft.com/en-us/library/399f057w%28v=vs.85%29.aspx[^].

When the site is compiled, it can include assemblies protected using some available copy-protection products, for example, dongle-based. Of course, using the dongle resembling keeping the customers in handcuffs. Besides, any protection can be broken; at the same time, protection using purely legal means (proper license, signing of the service contract with appropriate legal terms) could work for most or all customers. I would thing first of all at this: is your software so valuable that somebody would steal it?

—SA
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900