|
hi guys,
need help with this one.. im building a license monitoring application. and part of the system is the module in which the program kills/blocks a certain application from running based on the returned info from the database (license information). so if the company has 5 licenses for a specific app, then 5 should be the max number of concurrent usage, though it can be installed on more than 5 pcs.
so my question is, is it possible for my app to be embedded in the OS, so that i can control the applications being ran based on my license server.. or is there any other way to do it..
i need comments/suggestions/any wild ideas guys.. thnx in advance...
|
|
|
|
|
I think Sony has a nice little rootkit that does this.....
But seriously, if the application is a .NET app, you could make a license provider dll that would talk to the database and determine if it could launch or not. If the main app is a Win32 one, ou could write a small wrapper exe to do the checking that then runs the normal app. One thing to think about when ou are building this type of system is the need for an admin to be able to add a license quickly. Sometimes purchasing a license or a block of licenses could be a slightly slower process. If you had a good way to allow another copy to run (and keep track of that) then users will not feel trapped by their own purchasing dept.
Steve Maier, MCSD MCAD
|
|
|
|
|
thanks for the reply Steve..
yes my application is a c# .net application. what i have now are codes for viewing all the running processes and killing a running process. im new in network programming, i also havnt explored much of the .net class library that's why im having difficulties in trying to implement this.
can i ask you some questions? what is that license provider dll? and what about that wrapper exe? can i put that in my client pcs and embed it in the OS? so that when the client PCs boot, it already has that client application agent running, thus enabling the communication between my server and its clients. And from the server, i can get info about that specific client.tnx
|
|
|
|
|
Sounds like a VERY convoluted solution to a licensing issue.
Why couldn't you just create a license server on a machine and have the client software just ask for and checkout a license? When the client is done, the license is checked back in to the database. The licenses would have to be checked out on a leased basis so you don't end up with permanently checked licenses. The clients would have to renew their lease every so often in order to keep working.
Forget trying to "kill process" and all that crap. It's an unsupportable solution...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I agree with Dave that it sounds too complicated. .NET applications can have a licence provider defined for them. There are a few licensing systems out there that are just for .NET. I was looking at a free one called OpenLicense[^]. The .NET classes allow ou to define our own licensing scheme and if ou wanted it to check a server, it could.
Steve Maier, MCSD MCAD
|
|
|
|
|
I am working on a windows app. I need to create a database during installation but more importantly, I need to know how my application would work on a computer that does not have SQL Server installed . Since it is a stand alone app I am assuming that 99% end-users will not have SQL Server on their computers. Can I create a database if just the SQL Driver is available on client PC? or any other better suggestions?
A code example will really be helpful. Thanks.
|
|
|
|
|
I have worked at places that do this in a couple different ways. You could copy the database files over to the machine and then attach a new database in SQL Server using a sql command. Or you could just generate the sql for the entire database and have that run on installation. In either case you will have to make sure that SQL Server is installed on the target machine. You can put the MSDE installer inside your installer and even SP3 for it too. SQL Srver is not like Access, you need to have the server running on the machine to get at it. For one product of mine, I switched to SQLite because that is accessed just as a file. I get most of the same features that I need and not much overhead.
Steve Maier, MCSD MCAD
|
|
|
|
|
hi friends
My PC(win 2000 pro) has the .Net Framework 1.1 , but not the SDK
and i can not find the GACUTIL.exe
How i can register in the GAC my asemblies ??????
|
|
|
|
|
For most assemblies, you can just drag and drop them into the %windir%\assembly directory through the Explorer shell.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Thanks friend
...
that assembly will be a Serviced Component (com+) .... is it ok??????
|
|
|
|
|
Yes and no. It will register the assembly portion, but you still need to register the COM portion. Try looking around your computer for .NET Services Installation Tool (Regsvcs.exe)[^]
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Is there an easy way to find the bounding rectangle of a TreeNode in a TreeView?
<br />
TreeView treeView;<br />
TreeNode treeNode;<br />
<br />
Rect rect = treeView.GetRectOfNode(someNode);<br />
<br />
Point point = PointInRect(rect);<br />
TreeNode sameNode = treeView.GetNodeAt(point);<br />
<br />
Assert.True(ReferenceEquals(treeNode, sameNode));<br />
Thanks, Amir
|
|
|
|
|
Of course, this is also nice, and perhaps better. If there is no bounding rectangle (because the node is not visible) {-1,-1} is a reasonable reply.
<br />
TreeView treeView;<br />
TreeNode treeNode;<br />
<br />
Rect rect = treeNode.BoundingRect; <br />
<br />
Point point = PointInRect(rect);<br />
TreeNode sameNode = treeView.GetNodeAt(point);<br />
<br />
Assert.True(ReferenceEquals(treeNode, sameNode));<br />
|
|
|
|
|
|
|
I am developing an application using C#, .NET framework 2.0. This is combination of two web services and one desktop executable. Web services are running on Windows Authentication.
I need to send user credentials from UI application (desktop application) to Web service two. Web service two is not directly accessible to UI, it is only accessible through web service 1.
How can I send user credentials to web service 2 through web service 1.
Right now, web service two is not getting authentication, it throws error, 401 – Unauthorized access.
Appreciate your help.
Thanks and regards,
Ashish Basran
|
|
|
|
|
Hi!
I have problems importing Outlook Contacts to a specific folder. This is what my code looks like:
<br />
Outlook.Application objOutlook = new Outlook.ApplicationClass();<br />
NameSpace outlookNS = objOutlook.GetNamespace("MAPI");<br />
MAPIFolder contactFolder = outlookNS.GetDefaultFolder(OlDefaultFolders.olPublicFoldersAllPublicFolders);<br />
<br />
<br />
Outlook.ContactItem objContact =<br />
(Outlook.ContactItem)objOutlook.CreateItem(Outlook.OlItemType.olContactItem); <br />
<br />
objContact.CompanyName = contact.CompanyName;<br />
objContact.SaveAs("testmapp", OlDefaultFolders.olPublicFoldersAllPublicFolders);<br />
What I want to do is to impor contacts to a contactlist under "public folders -> all public folders -> testmapp" in Microsoft Outlook. When i'm running this I get an "invalid arguments"-exception at the last row.
Any ideas how to do this differently?
|
|
|
|
|
Hi.
I have a problem with the danish characters æøå, when i exstract them from my database and put them into a gridview (with the database as datasource) then the characters is fine.
but if i take the result from the gridview and put it into another gridview with a textbox in its footer, then it's all weird.
this is the code that makes trouble:
TextBox txtFood = GridView1.FooterRow.FindControl("txtFood") as TextBox;
txtFood.Text = GridView2.SelectedRow.Cells[0].Text;
if i print GridView2.SelectedRow.Cells[0].Text as this:
Response.Write(GridView2.SelectedRow.Cells[0].Text);
it returns the correct characters (æøå)
so does the textbox if i print it out like this:
TextBox txtFood = GridView1.FooterRow.FindControl("txtFood") as TextBox;
txtFood.Text = GridView2.SelectedRow.Cells[0].Text;
Respomse.Write(txtFood.Text);
So how can it be weird characters like æ ? is it the ASCII code or something? how do i view the æøå correct in the textbox on my webpage ?
|
|
|
|
|
it is all about that textbox viewState data. your controls doesnot take proper encodings to store viewstate data , agressively inspect properties of them and use a html textbox control
Mikail Çetinkaya . The C# DEveloper
|
|
|
|
|
so how do i change the controls so that it can store the viewstate data correctly ?
I code ASP.net and C# in a website, i dont know how to send the data from a gridview to a normal html textbox control.
|
|
|
|
|
try onload manually declaring encoding like Response.encoding="XXXXX"
Mikail Çetinkaya . The C# DEveloper
|
|
|
|
|
Please help me.......
I'm currently at university and I need to develop a product to connect a mobile phone device to a PC and view the contents of the phone to the PC, e.g. The user will be able to view the contacts and edit, delete or even add new contacts to the phone via the PC. I really don't know where I should start looking on how to develop this system and I was wondering if anyone will be able to help me, to point me into the right direction or any good code examples from books or web sites on how to communicate to a phone to synchronise the data and proceed with the above objectives? The phone I have now is a Nokia 6100, if that gives anyone more infomation?
Hope to here from someone soon?
|
|
|
|
|
this type of question is answered in this forum pls. search on forum and cp
Mikail Çetinkaya . The C# DEveloper
|
|
|
|
|
you can try accessing the Nokia Developer Forums. Maybe you could find some answers there.
|
|
|
|
|
Hi,
I need to open a file that is also opened in another application. when i try to open and read the file it says the file is being used by other program.
in this case is there a way to open a file?
How can i check if the file is accessible or not?
regards,
rnv
|
|
|
|