I have written a .NET application which does heavy use of interop (through
ManagedC++).
It works allright.
Now someone askedme if it works when installed in a shared directory.
So I'm testing, installed the application on a remote computer, in a shared
folder and trying to run it from this remote folder.
I have SecurityException all over the places, which doesn't surprise me.
But how do I fix them?
Also I have a problem with licencing. Currently I write something in the
registry.
But I need some kind of network licensing in such case.
But Windows networking is a kind of mystery to me.. What could I do?
I also know that some people might suggest active directory, but it's an
optional component, is it not?
--
Regards,
Lloyd Dupont
NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com> 10 1451
"Lloyd Dupont" <net.galador@ld> wrote in message
news:Ol**************@tk2msftngp13.phx.gbl... I have written a .NET application which does heavy use of interop (through ManagedC++). It works allright. Now someone askedme if it works when installed in a shared directory. So I'm testing, installed the application on a remote computer, in a shared folder and trying to run it from this remote folder.
I have SecurityException all over the places, which doesn't surprise me. But how do I fix them?
You'll need to grant additional CAS permissions to your application on the
client machines on which it will run. If you're using fx 2.0, then
deploying as a ClickOnce application is generally the simplest solution for
this. Otherwise, you'll need to modify the CAS policy on the client
machines, which can be done via network deployment tools. Your network
administrators may already have something in place for this; if not, http://msdn.microsoft.com/library/de...ecpoladmin.asp
is a good place to start looking into your options.
Before granting additional permissions to your application, you'll also need
to figure out which ones are missing. Permcalc can help with this if you're
targeting fx 2.0. Otherwise, you'll need to decipher the missing permission
information based on the exception details. If you need help with this,
please post the full exception details (as returned from its ToString
method) of a sample exception.
Also I have a problem with licencing. Currently I write something in the registry. But I need some kind of network licensing in such case. But Windows networking is a kind of mystery to me.. What could I do? I also know that some people might suggest active directory, but it's an optional component, is it not?
Exactly what sort of "network licensing" do you need? Are you trying to
limit access to some server resources or simply to limit the number or
identity of clients that can use a purely client-side application? If the
latter, how would you expect the licensing scheme to behave when the
licensing server is unavailable (for example, because the client cannot
connect to the network)?
> You'll need to grant additional CAS permissions to your application on the client machines on which it will run. If you're using fx 2.0, then deploying as a ClickOnce application is generally the simplest solution for this. Otherwise, you'll need to modify the CAS policy on the client machines, which can be done via network deployment tools. Your network administrators may already have something in place for this; if not, http://msdn.microsoft.com/library/de...ecpoladmin.asp is a good place to start looking into your options.
thanks for that.
Exactly what sort of "network licensing" do you need? Are you trying to limit access to some server resources or simply to limit the number or identity of clients that can use a purely client-side application? If the latter, how would you expect the licensing scheme to behave when the licensing server is unavailable (for example, because the client cannot connect to the network)?
By network licensing I mean something like "a licence for 50 instances of
the application at one time in the enterprise"
IF somehow the licence application comes from the same computer on which the
executable is (in a shared folder), there is no issue of licensing server
unavailable.
I'm thinking, perhaps I could write the newtork licence in the App.config
file?
"Lloyd Dupont" <net.galador@ld> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... By network licensing I mean something like "a licence for 50 instances of the application at one time in the enterprise" IF somehow the licence application comes from the same computer on which the executable is (in a shared folder), there is no issue of licensing server unavailable. I'm thinking, perhaps I could write the newtork licence in the App.config file?
How would you enforce this? What would stop a user from simply making a
local copy of the application in this scenario, thereby bypassing any
license counting mechanism?
>> By network licensing I mean something like "a licence for 50 instances of the application at one time in the enterprise" IF somehow the licence application comes from the same computer on which the executable is (in a shared folder), there is no issue of licensing server unavailable. I'm thinking, perhaps I could write the newtork licence in the App.config file?
How would you enforce this? What would stop a user from simply making a local copy of the application in this scenario, thereby bypassing any license counting mechanism?
Very simple, in such case I would revert to current licensing mechanism,
which check the licence key in the registry.
But I would like to provide a way to avoid to have to enter the licence key
on every single computer the software is used.
How would you know to apply the licensing logic switch? Also, in the
scenario where the application is launched from the network location as
planned, how would you count instances unless you're running a licensing
server? Simply having a config file available won't expose the information
that 50 instances are already running, so you won't be able to tell that the
51st instance has been launched. Or were you planning for the application
instances to edit the config file to maintain the running instance count?
"Lloyd Dupont" <net.galador@ld> wrote in message
news:uW**************@tk2msftngp13.phx.gbl... By network licensing I mean something like "a licence for 50 instances of the application at one time in the enterprise" IF somehow the licence application comes from the same computer on which the executable is (in a shared folder), there is no issue of licensing server unavailable. I'm thinking, perhaps I could write the newtork licence in the App.config file?
How would you enforce this? What would stop a user from simply making a local copy of the application in this scenario, thereby bypassing any license counting mechanism?
Very simple, in such case I would revert to current licensing mechanism, which check the licence key in the registry. But I would like to provide a way to avoid to have to enter the licence key on every single computer the software is used.
For counting the number of license runnning I would just use a lawyer so
far...
Any better ideas? I'm looking to answers more than questions in this topic!
Otherwise when to apply network license or not.. mhh... I will have to have
a special installer as the current installer just replace all files
anyway...
--
Regards,
Lloyd Dupont
NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:ez****************@TK2MSFTNGP15.phx.gbl... How would you know to apply the licensing logic switch? Also, in the scenario where the application is launched from the network location as planned, how would you count instances unless you're running a licensing server? Simply having a config file available won't expose the information that 50 instances are already running, so you won't be able to tell that the 51st instance has been launched. Or were you planning for the application instances to edit the config file to maintain the running instance count?
"Lloyd Dupont" <net.galador@ld> wrote in message news:uW**************@tk2msftngp13.phx.gbl... By network licensing I mean something like "a licence for 50 instances of the application at one time in the enterprise" IF somehow the licence application comes from the same computer on which the executable is (in a shared folder), there is no issue of licensing server unavailable. I'm thinking, perhaps I could write the newtork licence in the App.config file?
How would you enforce this? What would stop a user from simply making a local copy of the application in this scenario, thereby bypassing any license counting mechanism? Very simple, in such case I would revert to current licensing mechanism, which check the licence key in the registry. But I would like to provide a way to avoid to have to enter the licence key on every single computer the software is used.
On Wed, 29 Mar 2006 10:52:35 +0900, Lloyd Dupont <net.galador@ld> wrote: I have written a .NET application which does heavy use of interop (through ManagedC++). It works allright. Now someone askedme if it works when installed in a shared directory. So I'm testing, installed the application on a remote computer, in a shared folder and trying to run it from this remote folder.
I have SecurityException all over the places, which doesn't surprise me. But how do I fix them?
For SecurityException thrown by .NET CLR, you can get rid of it by
adjusting the security setting using .NET Framework Configuration
Tools,which can be found in Administrative Tools if you have your .NET
Framework installed. Also I have a problem with licencing. Currently I write something in the registry.
Why not carry out an alternative method to save information other than
registry?
But I need some kind of network licensing in such case. But Windows networking is a kind of mystery to me.. What could I do? I also know that some people might suggest active directory, but it's an optional component, is it not?
Good luck!
--
Tony Zhou
Unfortunately, design guidance for the licensing scheme of a commercial
software product isn't the sort of help you're likely to find for free on a
newsgroup since pretty much anyone who is qualified to provide such guidance
will expect to be paid for their efforts. Have you considered trying to
find someone with appropriate expertise to consult on this project?
"Lloyd Dupont" <net.galador@ld> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl... For counting the number of license runnning I would just use a lawyer so far... Any better ideas? I'm looking to answers more than questions in this topic!
Otherwise when to apply network license or not.. mhh... I will have to have a special installer as the current installer just replace all files anyway...
-- Regards, Lloyd Dupont
NovaMind development team NovaMind Software Mind Mapping Software <www.nova-mind.com> "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message news:ez****************@TK2MSFTNGP15.phx.gbl... How would you know to apply the licensing logic switch? Also, in the scenario where the application is launched from the network location as planned, how would you count instances unless you're running a licensing server? Simply having a config file available won't expose the information that 50 instances are already running, so you won't be able to tell that the 51st instance has been launched. Or were you planning for the application instances to edit the config file to maintain the running instance count?
"Lloyd Dupont" <net.galador@ld> wrote in message news:uW**************@tk2msftngp13.phx.gbl...> By network licensing I mean something like "a licence for 50 instances > of the application at one time in the enterprise" > IF somehow the licence application comes from the same computer on > which the executable is (in a shared folder), there is no issue of > licensing server unavailable. > I'm thinking, perhaps I could write the newtork licence in the > App.config file?
How would you enforce this? What would stop a user from simply making a local copy of the application in this scenario, thereby bypassing any license counting mechanism? Very simple, in such case I would revert to current licensing mechanism, which check the licence key in the registry. But I would like to provide a way to avoid to have to enter the licence key on every single computer the software is used.
> will expect to be paid for their efforts. Have you considered trying to find someone with appropriate expertise to consult on this project?
Not really.
In fact I'm not sure there are sure (efficient, simple and reliable) way of
doing that.
--
Regards,
Lloyd Dupont
NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:uB**************@TK2MSFTNGP03.phx.gbl... Unfortunately, design guidance for the licensing scheme of a commercial software product isn't the sort of help you're likely to find for free on a newsgroup since pretty much anyone who is qualified to provide such guidance will expect to be paid for their efforts. Have you considered trying to find someone with appropriate expertise to consult on this project?
"Lloyd Dupont" <net.galador@ld> wrote in message news:%2****************@TK2MSFTNGP03.phx.gbl... For counting the number of license runnning I would just use a lawyer so far... Any better ideas? I'm looking to answers more than questions in this topic!
Otherwise when to apply network license or not.. mhh... I will have to have a special installer as the current installer just replace all files anyway...
-- Regards, Lloyd Dupont
NovaMind development team NovaMind Software Mind Mapping Software <www.nova-mind.com> "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message news:ez****************@TK2MSFTNGP15.phx.gbl... How would you know to apply the licensing logic switch? Also, in the scenario where the application is launched from the network location as planned, how would you count instances unless you're running a licensing server? Simply having a config file available won't expose the information that 50 instances are already running, so you won't be able to tell that the 51st instance has been launched. Or were you planning for the application instances to edit the config file to maintain the running instance count?
"Lloyd Dupont" <net.galador@ld> wrote in message news:uW**************@tk2msftngp13.phx.gbl... >> By network licensing I mean something like "a licence for 50 >> instances of the application at one time in the enterprise" >> IF somehow the licence application comes from the same computer on >> which the executable is (in a shared folder), there is no issue of >> licensing server unavailable. >> I'm thinking, perhaps I could write the newtork licence in the >> App.config file? > > How would you enforce this? What would stop a user from simply making > a local copy of the application in this scenario, thereby bypassing > any license counting mechanism? Very simple, in such case I would revert to current licensing mechanism, which check the licence key in the registry. But I would like to provide a way to avoid to have to enter the licence key on every single computer the software is used.
Are you a registered ISV partner
( https://partner.microsoft.com/global/40009578)? If so, you should have
access to advisory support from Microsoft
( https://partner.microsoft.com/global/40016379). If they're not able to
help suggest an approach directly, they should probably be able to refer you
to someone with appropriate expertise.
"Lloyd Dupont" <net.galador@ld> wrote in message
news:ud**************@TK2MSFTNGP05.phx.gbl... will expect to be paid for their efforts. Have you considered trying to find someone with appropriate expertise to consult on this project? Not really. In fact I'm not sure there are sure (efficient, simple and reliable) way of doing that.
-- Regards, Lloyd Dupont
NovaMind development team NovaMind Software Mind Mapping Software <www.nova-mind.com> "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message news:uB**************@TK2MSFTNGP03.phx.gbl... Unfortunately, design guidance for the licensing scheme of a commercial software product isn't the sort of help you're likely to find for free on a newsgroup since pretty much anyone who is qualified to provide such guidance will expect to be paid for their efforts. Have you considered trying to find someone with appropriate expertise to consult on this project?
"Lloyd Dupont" <net.galador@ld> wrote in message news:%2****************@TK2MSFTNGP03.phx.gbl... For counting the number of license runnning I would just use a lawyer so far... Any better ideas? I'm looking to answers more than questions in this topic!
Otherwise when to apply network license or not.. mhh... I will have to have a special installer as the current installer just replace all files anyway...
-- Regards, Lloyd Dupont
NovaMind development team NovaMind Software Mind Mapping Software <www.nova-mind.com> "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message news:ez****************@TK2MSFTNGP15.phx.gbl... How would you know to apply the licensing logic switch? Also, in the scenario where the application is launched from the network location as planned, how would you count instances unless you're running a licensing server? Simply having a config file available won't expose the information that 50 instances are already running, so you won't be able to tell that the 51st instance has been launched. Or were you planning for the application instances to edit the config file to maintain the running instance count?
"Lloyd Dupont" <net.galador@ld> wrote in message news:uW**************@tk2msftngp13.phx.gbl... >>> By network licensing I mean something like "a licence for 50 >>> instances of the application at one time in the enterprise" >>> IF somehow the licence application comes from the same computer on >>> which the executable is (in a shared folder), there is no issue of >>> licensing server unavailable. >>> I'm thinking, perhaps I could write the newtork licence in the >>> App.config file? >> >> How would you enforce this? What would stop a user from simply >> making a local copy of the application in this scenario, thereby >> bypassing any license counting mechanism? > Very simple, in such case I would revert to current licensing > mechanism, which check the licence key in the registry. > But I would like to provide a way to avoid to have to enter the > licence key on every single computer the software is used. >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Chris |
last post by:
I try to read a shared directory. This shared directory is on a 2000
server.
When I use DirectoryInfo.Exists, I always have "This directory does
not exist".
If the shared directory is on a...
|
by: Nitin Narang |
last post by:
I have a piece of code which is moved to .NET VC7 recently from VC6 and there
has been an apparent change in behavior using CreateFile/Writefile
functionality.
I am creating a file on a shared...
|
by: Jim |
last post by:
Hello,
I have a broken server that we are going to be moving off to a new server
with a new version of DB2 but here is what I have right now:
RedHat 7.0 (2.2.24smp)
DB2 v6.1.0.40
I am...
|
by: Fred Mellender |
last post by:
I wish to run a C# Windows Forms program on a Windows 98SE machine, from a
directory that is owned by a Windows XP machine.
The directory is shared via directory sharing from the XP machine to...
|
by: Prasanth Raveendran |
last post by:
Through an ASP.Net page I want to browse a shared folder. So i used
directory.exist(\\machinename\sharename) but it returns false even if the
directory exist. please help me
--
Prasanth...
|
by: Javier Martinez |
last post by:
Hi
I have asp application in a machine with a virtual directory referring a
shared directory in another machine
When I try to load any aspx page of my portal I get the following error:
...
|
by: Paul Bromley |
last post by:
How can I create a directory within a shared ntwork directory??
sServerName - is the Server name
"\Docs" - is the shared directory
"\Others" - is the directory to create.
The following...
|
by: KSC |
last post by:
Hello,
Is there a way to programmatically determine if a directory is shared and if
so, what the sharename is?
It seems a simple question, but I have been searching and not found the...
|
by: jzdeng |
last post by:
Hi, All
I use VS 2005 to create a web service. The web service is used to
create a sheared folder. It works fine we I run it from VS 2005. But,
when I move it to inetpub, it does not work...
|
by: llothar |
last post by:
Hello,
i need to manage a heap in shared memory.
Does anybody know about a portable (win32+mac+posix) c implementation
for this.
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |