C# - How To Protect Net Winforms Assembly From Customers Of A Customer

Sep 17, 2010

This question appears to have died, so I've decided to offer a bounty.What I'm most interested in knowing is if my scenario in the ETA1 below is viable and is used. If it isn't, then a good explanation of why not would be a good answer. Another good answer would be an alternative (but not including the internalsvisibleto attribute).

The best answer would be, yes, it's viable, everyone does it and customers love it!ETA2: I think I've thought of a good solution. I provide the customer with a distributable edition that is as functional as their edition but is unlicensed and has the classes and members hidden, using attributes.
I can do this with compiler directives, on every single important member, but I wondered if there was some global way to hide all members of a class?

A simplified scenario I have a class that extends a control in someway and I want to sell my class under two licenses;

(1) Standard - The customer gets x number of controls that use my class but can't instantiate the class (its internal).

(2) Developer - The same as Standard except they can create their own controls that use my class.

My problem is that when the developer customer comes to sell their controls, they can't help but expose my class to all their customers.

The only way around it, in my scrambled mind, would be for the developer to somehow integrate my assembly into theirs, and in that way I can keep the constructor internal. Or, use the internals visible to attribute.

ETA1: I'm thinking aloud here, but, I could have a list of permissable calling assembly names which the customer could add to. When they ship their product, their customers' assemblies would not be in the list and therefore they wouldn't be able to instantiate certain classes. (The list could obviously be hashed).

View 4 Replies


ADVERTISEMENT

Search Xml Using Linq - Get All The Node Values Of <customers></customers>

Apr 22, 2010

[Code]...

how to do this. kindly show me some sample code for this

View 11 Replies

Password Protect A Single Form In A Winforms Application?

Nov 21, 2011

I've a winforms application that is using SQLite database. There is no encryption on the database (data has to be shared with other user). It is a stand alone application with a stand alone local database.

The difficulty I'm encountering is when people go to bring all the data together.The databases are attached, data imported, but records are differentiated by a database GUID.At any rate I am desiring to have a database selection screen that is protected by a password to prevent users mistakenly switching databases (and some level of protection against malicious use).

Thinking it's probably not a particularly good idea to store the password in an unecrypted database.Security is not a large issue as this is only distributed to users that need the software.

What would be the best method to have the user type a password when they attempt to access the database selection screen? ShowDialog? Pop open a new child form with a password TextBox, then on validation (via button?) close the password form and open the protected form?I see a fair bit about protecting a whole application, but not so much about a specific form.

View 1 Replies

LINQ To SQL Query - Select Customer From Dropdownlist And Then Gridview - Load All Items Of All Orders Of That Customer

Oct 4, 2011

I have the following problem: I select a customer from a dropdownlist and then the gridview should load all items of all orders of that customer. I have the following query:

Dim allorders = From ord In db.Orders

Where ord.CustomerID = Convert.ToInt32(CustomerDropDownList.SelectedValue)

[CODE]..............

I also tried to modify the query as follows:

Dim orderitems = From oi In db.OrderItems

Where oi.OrderNumber = (From From ord In db.Orders

[CODE]...........

But this does not work. I just started using LINQ.

View 5 Replies

Using Microsoft Acres Database - Table Named Customer Info To Store Customer Details When Registering

Oct 5, 2011

A registeration sys using a Microsoft acres database I have a table named customer info to store customer details when registering and I need coding that will add the following to my table customer I'd , firstname, lastname , phonenumber and user also has to make selection between radio buttons male or female.

View 2 Replies

Autocomplete Customer Surnames Direct From The Customer Datatable?

Jan 5, 2010

I am trying to autocomplete customer surnames direct from the Customer Datatable, using the code below which I got from another thread, but nothing is happening.

[Code]...

View 6 Replies

Published Setup Requires Assembly CrystalReports 10.2.3600.0 In Global Assembly Cache

Dec 28, 2005

When running setup to install published program, the following message occurs: System Update Required: Unable to install or run the applicaiton. The application requires that asssembly CrystalDecisions.CrystalReports.Engine Version 10.2.3600.0 be install in the Global Assembly Cache (GAC) first. This version is listed in the references of the program and in my mind, be included in build. How do I get by this error?

View 23 Replies

Published Setup Requires Assembly CrystalReports 10.2.3600.0 In Global Assembly Cache?

Apr 18, 2012

When running setup to install published program, the following message occurs: System Update Required: Unable to install or run the applicaiton. The application requires that asssembly CrystalDecisions.CrystalReports.Engine Version 10.2.3600.0 be install in the Global Assembly Cache (GAC) first. This version is listed in the references of the program and in my mind, be included in build. How do I get by this error?

View 2 Replies

VS 2008 Unable To Emit Assembly: Referenced Assembly AxInterop.MSFlexGridLib Does Not Have A Strong Name

Dec 4, 2009

I have recently upgraded an VB6 project to vs2008. I was almost finished when the following error occured. Unable to emit assembly: Referenced assembly AxInterop.MSFlexGridLib does not have a strong name Prior to this error appering, I tested my app several times and it was fine. Only after publishing it did the error appear. I have tried all solutions I could find, but nothing helps. I have read [URL]

View 1 Replies

Unable To Load Assembly Ensure That The File Is A Valid .net Framwork Assembly?

Jun 17, 2009

I receive this error as "Assembly Load Error" whenever adding a form or other object that has to be inherited.

"Unable to load assembly. Ensure that the file is a valid .net Framwork assembly"

View 1 Replies

C# - Loading An Assembly Using Assembly.LoadFrom() As The Assemblies Are Located In A Different Path?

Apr 2, 2012

I am loading an Assembly using Assembly.LoadFrom() as the assemblies are located in a different path from Application Base directory.

Dim oAssembly As Assembly = _
Assembly.LoadFrom("C:\MyFolder\" + ddlXlate.SelectedItem.ToString() + ".dll")

And I consume a Type from that assembly without any problem:

oXML = CType(oAssembly.CreateInstance(sBaseType + ".XlateContainer"), _
XlateBase.XlateContainer)

However, the problem occurs when I try to use a Type from this assembly from within another method like the one below:

oComboBox.DataSource = _
[Enum].GetValues(Type.GetType(sType + "+ItemEnum," + sAssemblyName))

sAssemblyName is the one I loaded using LoadFrom() actually. After it said it cannot find the assembly, I used AssemblyResolve event which solved my problem :Subscribing AssemblyResolve event :

AddHandler AppDomain.CurrentDomain.AssemblyResolve, _
AddressOf MyResolveEventHandler

Event Handler Method:

Private Shared Function MyResolveEventHandler(ByVal sender As Object, _
ByVal args As ResolveEventArgs) As Assembly
Return Assembly.LoadFrom("C:\PSIOBJ\" + args.Name + ".dll")
End Function

And I thought maybe the error occurs because it cannot find a dependent assembly defined in assembly manifest file I loaded using LoadFrom() already but when I checked the args.Name, I saw it was trying to load same assembly and after that it worked without any problem. So basically a type in the loaded assembly cannot be found before the event adding change.

My old code was using AppDomain.CurrentDomain.Load() and Assembly.Load() methods and they were working fine without the AssemblyResolve event. I was able to reach types in dynamically loaded Assembly from every where within the same AppDomain.

LoadFrom() can find dependencies automatically within the same requested assembly path and that couldn't be problem as everything this dll needs was there. So at first it looked like a AppDomain problem to me as it looks like it seems it can reach assemblies from Load context instead of LoadFrom context and I am now using LoadFrom context.But now it seems I should pass oAssembly instance evertwhere to use any type from the loaded assembly?Doesn't it load the assembly where I can reach it everywhere (same AppDomain) using simple Type.GetType(...) method?

View 2 Replies

"Unable To Emit Assembly: Referenced Assembly?

Jun 1, 2011

I'm wanting to include a system tray icon in my WPF project, and found this resource:[URL]..which looks like it will work beautifully, but it's written for C# and I'm using VB.net for this project. I downloaded his project and built the notifyicon as a DLL, then added as a reference to my project.

It throws up an error: Unable to emit assembly: Referenced assembly 'Hardcodet.Wpf.TaskbarNotification' does not have a strong name So I'm trying to figure out the best way to proceed. Do I need to strong name it, or is there a better way to do this?

View 2 Replies

The Located Assembly's Manifest Does Not Match The Assembly Reference

Oct 9, 2008

I've got an exception when I deployed my application: "the located assembly's manifest does not match the assembly reference" What I remember is changing the project name from the previous source code, does it affect that much?

View 1 Replies

.net - For Each Loop - Process Some Data For Each 500 Customers?

Aug 25, 2009

How do I use for loop in vb.net something like

dim start as integer
Dim customers as New List(Of Customers)
Customers=dataAcess.GetCustomers()[code].....

I want to process some data for each 500 customers..

View 8 Replies

Add A Query On A Form Called Customers?

Nov 8, 2010

I want to add a query on a form called Customers.So, I want to type the begining of the Customer's name, and when i push the button, on the datagridview appear all the Customers with a name like that.

View 2 Replies

Access Database Which Includes Customers Table ?

Nov 7, 2010

I have an access database which includes Customers table and one of its columns is the Birth date. In project in visual studio, using visual basic 2010, I have a form with a calendar. In this form I want to show who has birthday today. How can I compare all the customer�s birth date with the day we have today? And have as result a label with all birthdays?

View 1 Replies

Add Customers And Calculate And Add The Car Qoutes To A Text File?

Jan 14, 2011

i have a big problem i have no idea what i am doing and need to create a program that can add customers and calculate and add the car qoutes to a text file. the information also needs to be retrieved, basically i want someone to finish the qoutes form for me complete with code its like connect the dots but with code :P can you fill in the "dots", create and edit btw for some reason it was called !! ERROR !! because it was a bad second version of the first version that got deleted so i used this one anyway XD[URL]..

View 5 Replies

Displaying Subtotal Of Customers In Crystal Report?

Jun 12, 2009

I am using crystal report for displaying reports. I want to display group by customers in report that i am displaying using group by funtion but i also want subtotal of that group by customers. I want to display received amt date, received amt and balance amout between given two dates. That i am getting. output is like first customer name and below that list of there received and balance amt with received amt date. But before displaying second customers list i want to display subtotal of received and balance amt. and in last in page footer i am displaying grand total of received and balance amt.

All data are displayed instead of subtotal of all customers. how to display subtotal of all customers received and balance amt?

View 3 Replies

Use Data To Compute A Customers Electric Bill?

Mar 27, 2011

In this program I am suppose to use data to compute a customers electric bill. My code works correctly for the most part except for two things. I cant get the loop correct I want it to ask the customer to enter readings but once it does it outputs the same information from the original time so I am wondering what I have to do to have it recalculate when new values are entered by the customer. My other issues is it is suppose to continue to ask the customer for additional readings till the value entered by the customer is -99999, when I run my program and enter -99999 it does not stop.

[Code]...

View 5 Replies

VS 2008 - Printing Invoices For Customers With Charges

Apr 27, 2009

I'm developing a small app to for a vehicle rental company. They require the app to print invoices for customers (fuel usage and etc) with charges. I was thinking of outputting row by row to a html (file) table and populating qty,amount,final amount etc programmatically. And letting the user view and print that html file.

View 3 Replies

C# - Retrieve Info In DLL Assembly About Calling Assembly?

Jun 25, 2012

I have created several DLL (.NET) libraries that are used in several projects. In these DLL libraries I want to know/retrieve which assembly (EXE) calls/uses the library, so if possible I want to know info like assembly name (EXE), strong name, version number, etc.

NB: Examples may be in C# or VB. I use both languages.

View 2 Replies

Deployment :: Referencing Assembly From Another COM Enabled Assembly?

Apr 7, 2009

I have written a .net assembly which plugs into to a third party COM application. The .net assembly is COM visible to the third party application. However this .net assembly references other regular assemblies. If I put these assemblies in the GAC the COM visibile assembly sees them without a problem. However for various reasons I do not want to put them into the GAC but I cannot get my COM visible assembly to see the other assemblies when they are in other locations. I have tried putting them in the same directory as the COM visible assembly. I have tried putting them in the same directory as the third party app's exe but neither of these work.

View 5 Replies

Application Crashes For Some (but Not All) Customers When Clicking A Listbox After Printing?

Feb 3, 2011

We have a rather large VB.NET accounting application that crashes occasionally for some customers. I have now been able to reproduce this particular almost 100% in my test nvironment using certain data. The crash happens when clicking a list box after printing a report. The form involved has a list box listing available reports. You select one or more reports from the list box and click the print button. After printing, if you click the list box again, the program crashes, with an exception that does not seem like one VB.NET should even be able to produce.The exception message is: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."The call stack is:

1. System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
2. System.Windows.Forms.NativeWindow.DefWndProc(Message& m) [IL offset: 0x3e]

[code]....

View 12 Replies

Create An Application That Calculates And Displays A Customers Bill?

Apr 21, 2010

Using VB2008 I need to create an application that calculates and displays a customers bill.Business customers must have one connection.

Heres the data

Residential customers:
Processing fee: $4.50
Basic service fee: $30
Premium channels: $5 per channel

[code]....

View 8 Replies

Created A Program Which Stores And Creates Customers And Orders

Mar 2, 2010

I've been coding in VB.net for a while now, but still have never used the printing features. I've created a program which stores and creates customers and orders etc. I now require to print invoices related to these quotes.Is the following possible within VB.net when printing a document. Images i.e. Logo of company (which i've made already)Table of items orderedTotalshorizontal lines to split-up the design of the invoice/document.

View 2 Replies

Creating That Displays Pump Information Based On Customers In A Database?

Feb 26, 2010

I have an application I am creating that displays pump information based on customers in a database. I am using VB2008 .NET3.5.I have a combobox that has a selection for a unit of measure. What I want to happen is when that is changes the labels that have a unit of measure change to reflect the change. There are 15 labels total that need to be changed and all there names are the only ones in the project that start with a X if that helps at all.

I would like to avoid creating a bunch of labels and changing the visible property and just change the text value of each one. I have just started learning VB.NET

View 11 Replies

VS 2008 - Error Shown On Customers Machines Is Related To Framework Version?

Jan 12, 2011

I made a program a month ago and i gave it to the customers.recently they report some bugs and i fixed them. when i send the new version installer to them, they have some problems running it.i used vs 2008 to write it, but i removed vs 2008 and installed vs 2010 last week. when i opened my project to start fixing program bugs it asked for convert wizard so i did it.i made changes and build it. i use installshield and i add framework 3.5 Sp1 as prerequisites.
note : i was using inno setup first time. so i changed the installer too.so i tried installing the program on my machine.i just noticed that i have only .net framework 4 installed my own system. so i have no idea how the program runs without any problems on my own system. i have even tried installing it on another machine who had framework 3.5. it it work on that too.the error shown on customers machines is related to framework version. everytime i send them a new version they have some problem installing/running it.

View 11 Replies

Could Not Load File Or Assembly"project Name" Or One Of Its Dependencies.the Module Was Expected To Contain An Assembly Manifest

May 31, 2009

When ever I finish simple programs no matter what it is and i click to debug it it comes up"Error while trying to run project:could not load file or assembly"project name" or one of its dependencies.the module was expected to contain an assembly manifest"

View 4 Replies

.net - Compilling Assembly From The Other Just Compilled Assembly?

Apr 21, 2011

sorry for my English, I don't speek well... I need to compile assembly in memory, that can compile another one. There is a form with one button. Here is a code of the form

Imports System
Imports System.Threading
Imports System.CodeDom
Imports System.CodeDom.Compiler
Imports System.Collections

[Code]...

View 1 Replies

C# - Check If An Assembly Is A Framework Assembly?

Jan 14, 2010

Since, it's possible for anyone to name an assembly starting with 'System', checking for 'System' is not a satisfactory solution.

Alternatively, if that's not possible, how about checking the modules in an assembly?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved