Designing A Permissions Based Security Model?

Jul 11, 2011

I work on a vb.net winforms app where we currently are using simple roles for security. We enable/disable specific controls based on if the current user has the required role. We are to the point where this is no longer granular enough.Our application is based on different physical locations we call sites. A user might have permission to do something (for example, edit a site's configuration) at one site but not another. Therefore, we now need to lookup permissions based on current user AND current site. Also, a certain user's permissions may be very specific to themselves ie. no other user's permissions are exactly the same as another user's. Therefore we need a security model that's more permissions based rather than role based.

What's the best way to design a new permissions model that can meet these requirements? I want to make sure that it's easy to implement the checking in the code (I don't want a million if statements sprinkled in our SetUIPermissions methods) and we don't want to have to update every user (400+ and counting) each time we add a new permission. Because of this last requirement I think we need to keep the idea of roles but possibly add/remove exceptions for particular permissions for specific users

View 1 Replies


ADVERTISEMENT

System.Security.SecurityException: System.Security.Permissions.SecurityPermission?

Jul 27, 2010

I am getting the following error message when I try to call this program from a shared drive on our network;

System.Security.SecurityException: System.Security.Permissions.SecurityPermission
at EMAILVB.EmialVB.EmailVB_Load(Object sender, EventArgs e)

[code]....

View 5 Replies

Model For Application Security And Possibly Internet Access?

Mar 5, 2012

We are in the process of upgrading to WIN7 support and finding issues with the existing impersonant security model we previously used. So i am looking for suggestions before we hit the code.Application ABC.exe is running on a PC with restricted permissions

View 15 Replies

System.security.permissions.securitypermission?

Nov 9, 2009

i am getting the error "System.security.permissions.securitypermission" when running the VB application in another machine. i have put the .exe file in the common path and i ran it my machine and it is working fine, but when i tried to run it in the different machine i am getting the error. Can anyone help me out in fixing this error.

View 1 Replies

VS 2005 Insufficient Security Permissions To Set The System Time?

Jul 8, 2010

I'm working with a vb.net 2005 project that i converted from vb 6.0 last year. It's working fine in windows xp, but on vista and windows 7 i get an error saying 'Insufficient security permissions to set the system time.' Can you think of any way to replicate this error on windows xp? I'm trying to get a windows 7 box setup at work but I was wondering if there was anything I could try with xp in the meantime.

View 9 Replies

VS Was Unable To Determine Code Access Security (CAS) Permissions

May 2, 2009

This program is a small ADOX database with a single data entry Form. Originally written in VB 2005, it was copied into the VB 2008 Project folder. Opening the file in the IDE, it went through the Conversion process, nevertheless, because of the following error detailed below, the program will not accept any changes.

Error List: Warning 1 Unable to find manifest signing certificate in the certificate store. AppointmentsMissed (<the project's name) Under Security in the project's Properties Window these suggestions are made: Visual Studio was unable to determine the Code Access Security (CAS) permissions that are applicable to your project. The most likely cause is that your project references a strongly-named assembly that defines custom permissions, but that is not properly installed in the global assembly cache (GAC).

To correct this, try the following: 1. Ensure that any custom permissions defining assemblies referenced by your project have been properly installed to the GAC. If any of these assemblies have been rebuilt or have had their version numbers modified, you must install the new assemblies in the GAC. 2. Restart Visual Studio.

View 3 Replies

Elevate Security Permissions For Statically Referenced Unmanaged Code?

Apr 25, 2011

In my managed VB.NET code, I am able to write a file out to my desktop. Although, the statically referenced unmanaged code is unable to. I have hunted all over MSDN to find out how I can elevate the security permissions for this library method, but am unableto find anything.I declare the method as...Declare Sub WriteFile Lib "DataLog.dll" (ByVal fileName As String)Although, it throws an exception due to being forbidden from writing to the desktop. Is there an attribute

View 7 Replies

C# - Using Evidence, Security Policy And Permissions To Prevent Assembly From Loading On Web Server?

Mar 11, 2010

Assume a .NET class library code that, for example, writes to the Windows registry. Then this code has problem to run over internet, because default Internet policy does not give access to write to the registry.By adding a RequestMinimum statement in the assembly we can specify that the code requires permission to write to write to the registry. This will not alter the fact that the code does not have the permission, but will stop the assembly from loading; the runtime will throw a System.Security.Policy.PolicyException and identify the permission that is required.Do you now any other examples of using evidence, security policy and permissions (the key elements of code-access security) to prevent an assembly from loading on a web server?

View 1 Replies

Using Custom Assemblies In SSRS Warning Request For The Permission Of Type 'System.Security.Permissions.SecurityPermission

Sep 8, 2010

I wrote a custom assembly for SSRS that returns a jpeg for the background image in a textbox on the report.I followed all instructions on msdn in regards to security but i still receive the same error.

Below is my config information

<pre lang="x-xml"><PermissionSetclass="NamedPermissionSet"
version="1"
name="Barcode">

[code].....

View 6 Replies

Designing A Windows Based Computer Program That Will Allow A User To Enter Some Number (n)?

Dec 10, 2010

I need designing a Windows based computer program that will allow a user to enter some number (n) and a choice of a count up or count down for that many numbers. So for example, the user enters 5 as their number and selects the count down option, the message box displayed would contain the message: "Here are your numbers: 5,4,3,2,1,0"

View 7 Replies

Columns Appear In Alphabetical Order In Data Source Based On EF4 Model?

Jul 13, 2010

I use Visual Studio 2010 and SQL Server 2008 R2. I have created an Entity Model in a class library which I have referenced in a VB Winforms project. I created a data source in the project based on the entity model in the dll. However, all columns in the data source are listed in alphabetical order instead of the native order from the SQL Server database. I cannot locate the cause of this as much as I try.

This might not seem a huge problem, but it is costing me valuable time in rearranging controls dragged to forms and reindexing their tabstop indexes.

View 6 Replies

Applying Security On A Windows Form-Based?

Jul 8, 2010

I'm creating a windows application form in vs 2005 for a client.. It's a data-tracking application. I have a few questions.The client wants a logon screen to be added into the application (at least any way or method that'll ensure that security was applied). My question in regards to this topic would be; Is it necessary to create a logon screen (or even a user authorization) for a windows form? I realize that in a webform project, security should always be considered and should be applied in all areas. Although with a windows form, I thought you can authorize who can gain access to the application by defining which workstations to install the final production release of the application (when its time to deploy the file). Is this correct?

My next question is, what is the best method to exporting data from EXCEL to SQL tables? I have many Excel files that I'd like to take portions of data from each file and insert them to there proper table.

The last question is about deploying a windows form application. As you can tell, I don't have much experience when it comes to developing Windows Form projects. Anyways back to the topic, When deploying a project, does it provide a .EXE file (installation package) to install the application on the workstation? Or is it a .EXE file of the application, where you can run it and no need to install anything?

View 3 Replies

C# - ASP.NET Directory Access With Role Based Security?

Apr 27, 2011

I have an ASP.Net portal like application with multiple roles. I have placed the subpages of that role in its own directory adding a web config with an authorization allowing only that role. I have css and javascript in the root directory that can not get access inside the protected role folders. How can I allow these folders css/js to have access to all roles. Sorry if this is easy question I have searched but I am rather new to ASP.NET

View 1 Replies

Winforms - Controls Based Security In A Windows Forms Application Using .NET?

Sep 5, 2011

I need to implement, Controls Based Security in a Windows Forms Application using VB.NET. I tried google but did not get anything much to work with.

I would like if someone, could suggest some books or tutorials.

View 1 Replies

Creation Of Program To Create Security Code Based On Current Date?

Apr 3, 2012

I need some help in the creation of a program to generate a security code based on the current date. I need to create something that first multiplies the MMDDYY (ie X=MM * DD * YY) then also adds the MMDDYY then finds the remainder and then multiplies but a specified number. I would like to create a small program that sits in the system tray with this code displayed. The code will always need to be 6 characters, so I might need to pad it with zeros. It has been years since I took basic VB, and I am really rusty.

View 1 Replies

Disable Menu Items Based On Allowed Security Roles Specified For An Item?

Nov 23, 2009

How to enable / disable menu items based on allowed security roles specified for an item.

View 6 Replies

Designing A Better Tag System

Dec 31, 2009

I´m having a problem designing a recipes program with tag(url...) support/I dont know exactly hows the best way to build the tag system, the idea I had is this, Ill try to explain it though english its not my first language, sorry about that.[code]The idea is that since I cant save memory references, at the start of the program I rebuild the references of refRecipe iterating through stTag, searching for recipes which contains its tag name. Also, when creating a new recipe, I must search if the tags exist in stTag to just set refRecipe or create a new tag.I think this systems have a lot of disadvantages because of tag name duplicity. Though its fast to show tags and related recipes, its not when creating and editing recipe tags because of all the iterations, but its the better way I found to do it.

View 5 Replies

Designing A Recursive Function?

Jan 17, 2011

I have the following data in this a table

ID ParentID Active Node
1 0 1 <RCExtRequest>?</RCExtRequest>

[Code]....

If changing the table layout would make this any easier then I could so that.

View 2 Replies

Designing An Aspx / Vb Page?

Jan 2, 2012

I need help in designing an aspx / vb page (.NET 1.1):The result is a table with 3 rows A,B and C it should look like this:

A
B
C

A, B and C have fixed height of 5 lines / 20 lines / 5 lines B content are gathered from dataset and can be more than 20 lines and then it should be splat and hole new table is created under the the first one like this:

A
B part 1
C
A
B part 2

[code]....

View 1 Replies

Designing VB Database Application?

Sep 8, 2009

I have VB 2008 and SQL 2008. I need tutorials to teach me how to create and connect, update, delete alter etc a Front End VB app to a SQL2008 DB.

View 6 Replies

Mobile Designing For VB 2010?

Sep 10, 2010

im a newbie to visual basic 2010 but i plan on learning everything in a 2 week period(i have a book on learning and im a very good at being self taught) i was just wondering if visuabasic 2010 would be a good language for building a mobile device from scratch and or developing for a mobile device(homebrew mobile device),

View 5 Replies

Designing A Program Which Enables Us To Write?

Dec 1, 2009

I am designing a program which enables us to write our language in any computer program My language is basically written completely opposit from english ( bilingual the program has to press the left arrow key everytime a letter/number/symbol is entered! i am having success with this code

For i = 32 To 32
result = 0
result = GetAsyncKeyState(i)
If result = -32767 Then
SendKeys.Send("{left}")
Timer1.Enabled = True

[Code]...

View 5 Replies

Designing A Vacation Tracking Form For Job?

Apr 27, 2010

I am working on designing a vacation tracking form for my job. I have written the code but I have two runtime errors. I am not quite sure why since I have taken examples out of my old visual Basic 2008 book to help write this code. I am using a database to keep all of the information on file.

[Code]...

View 3 Replies

Designing An Auto-login System

May 26, 2009

I have this code to log me into dreamincode.net:

[Code]...

How can I adapt this code so the user can input the password, and the username and the site for which it is entered. so the user can do this with any numer of websites, and any number of different usernames/passwords)

View 5 Replies

Designing Form And Trying To Get Different Values For Different Controls

Feb 15, 2012

I'm designing a form and trying to get different opacity values for different controls. How should i do it??eg. clear visible text floating over 50% opaque form.

View 6 Replies

IDE :: Designing XSDs With XML Schema Designer?

Jun 3, 2010

I see that the old xsd editor has been removed from VS 2010 (the yellow one), however I am having some serious problems with using the new Xml Schema Designer that make me reevaluate my sanity. Namely I cannt find any command or any shortcut to create xs: nodes in xsd via designer.

I am an experienced architect and am well versed in writing xsd's "by hand" but I would like to use the designer to do it since. The weirdest thing is that even when I create schema elements by hand in xml editor it does not show up in designer but rather shows up only in Xml Schema explorer, which too does not have any "add" commands. Not to mention that all entries in properties are read-only, preventing any modification?!?

When I drag and drop a manually created element to designer surface I can then see it but still cannot modify it (plus I dont understand what moving it to designer surface does at all, the element should already be in the schema?). This is by far the weridest designer I've ever seen, unless I am missing something glaringly obvious which unlocks editing?

View 5 Replies

Avoid Repeating Actions When Designing WinForms?

Apr 24, 2011

For every form I create, I do the following [code]...

What are my options for avoiding such repetitive actions?

Is there a "best-practice" for such a scenario?

Note: the reason I'm doing changes 1-3 is that the application's GUI is in Hebrew, and the application isn't required to support further localization or internationalization.

View 2 Replies

C# - Start Designing For Task Parallel Library?

Jan 28, 2010

I have been following the development of the .NET Task Parallel Library (TPL) with great interest since Microsoft first announced it. There is no doubt in my mind that we will eventually take advantage of TPL. What I am questioning is whether it makes sense to start taking advantage of TPL when Visual Studio 2010 and .NET 4.0 are released, or whether it makes sense to wait a while longer. Why Start Now?


[Code]....

View 5 Replies

Designing A Database Connection Class In VS 2005?

Oct 27, 2010

I am working on designing a SQL Server database connection class in VB.net 2005. The idea behind doing this will be so a developer can can call the class, pass it a stored procedure name along with the parameters, and get return values back (if any).

View 1 Replies

Designing And Coding A Program To Calculate Commission And Pay?

Jan 29, 2010

I am designing and coding a program to calculate commission and pay and I have chosen to use menu items to do the calculations. I have written most of the code but I am seeing a few syntax errors that I do not understand.here is the code...

[Code]...

View 5 Replies







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