.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Version of security class in rssrvpolicy.config

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :Sql Server

When I add a custom assembly to SSRS, I got the following error,

Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

I checked rssrvpolicy.config and Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\security.config,

The one from security.config is,



SecurityClass Name="SqlClientPermission"

View Complete Post

More Related Resource Links

Error: Cannot determine security.config file path for SQL2008R2 development version on Vista home pr


The installation gets past the check for the windows installer and .net 3.5 but fails here finding the security.config path.  I've turned off the anti-virus, uninstalled and reinstalled .net 2.0 and 3.5.  I'm running as an administrator.  Nothing else that I've found addresses this specific error. The install start properly on an XP machine but not Vista.

What can I try next?

11/25/2010 06:58:25.951 Local setup.exe not found, so continuing to run setup.exe from media.
11/25/2010 06:58:25.970 Attempt to initialize SQL setup code group
11/25/2010 06:58:25.994 Attempting to determine security.config file path
11/25/2010 06:58:26.076 Error: Cannot determine security.config file path
11/25/2010 06:58:26.109 Error: InitializeSqlSetupCodeGroupCore(32bit) failed
11/25/2010 06:58:26.135 Error: InitializeSqlSetupCodeGroup failed: 0x80004005
11/25/2010 06:58:26.159 Setup closed with exit code: 0x80004005

Need help with web.config security - Can't figure out where the security group is located in the ap



   We have sepeartate folder called Managers in one of our web apps. And there was a security build around that folder in a web config file as below

<?xml version="1.0"?>
        <allow roles="AllManagers"/>
        <deny users="*"/>

I couldn't figure out where this group located in the application. Usually all our groups are defined in Active directory but except this group. I am not sure if this is defined on the web server or some where in the app itself. Because in the process of figuring out I have changed it to <allow users="*"/> just to make sure if this is the group we are looking for and YES It is and I have access to it. So I need to find out where this is located and add myself as one of the users to this group.

Can any one help me with this mystery.

Thanks in advance,


supportedRuntime version in config for .Net Framework 3.5

We have an application built on .Net Framework 2.0 using VS2005. Now we would like to support .Net Framework 3.5 using VS.Net 2005 without upgrading to VS 2008( I read online at many places that this can be done without upgrading to VS2008).Out app.exe.config file looks like this currently:<?xml version="1.0" encoding="utf-8" ?> <configuration> <startup>  <supportedRuntime version="v2.0.50727"/> </startup></configuration>Should we need to modify this to support .Net Framework 3.5? If Yes what should it look like.FYI - We are having .Net Framework SP1I am bit confused with .Net Framework version and Runtime Version. Please clarify.

64-bit SortedDictionary class over 3x slower than 32-bit version?

I'm seeing a 3x-10x performance slowdown using the SortedDictionary class in 64-bit CLR.  I posted a longer thread earlier but just deleted it, since I now understand the problem in more detail and have a much shorter repro case (included below) so wanted to start fresh.   The code below runs at least 3x slower on an 8-way x86 server than all the 32-bit PCs I tried including a beefy 4-way Xeon server and a low-end workstation.  I can create variations on this code which run even slower, but figured simpler is better for now.   CLR experts-- is this expected?  Could there be something else causing the problem besides 64 vs. 32 bit, e.g. 8-way vs. 4-way?  Note that I haven't seen similar variations with other CLR classes, only SortedDictionary.  The problem doesn't occur with smaller-sized dictionaries, only larger ones.  (My test uses 20K items)   using System; using System.Collections.Generic; class Program {   static void Main(string[] args)   {     Console.WriteLine("Starting perf test of SortedDictionary");     Random rand = new Random();     DateTime start = DateTime.Now;     int nTotalDictionaries = 500, dictSize = 20000, nTotalItems = 0;     for (int j = 0; j < nTotalDictionaries; j++)     {       SortedDictionary<int, bool> dict = new SortedDictionary<int, bool>();       for (int i = 0, nLen = dictSize; i < nLen; i++, nTotalItems++)       

"Mixed mode assembly is built against version 'v2.0.50727'.... " issue and use custom config file

Hi, My Winform applilcation has used Microsoft.SqlServer.Management.Common namespace(assembly :Microsoft.Sqlserver.smo.dll/Microsoft.Sqlserver.ConnectionInfo.dll) and developed in .NET 4.0. Problem:Application is throw an exception when it tries to use above assembly reference methods. Full error text is shown below, "Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. " Error is resolved when we include "app.config" file with below code, <?xml version="1.0"?> <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration> But, I need to keep configuration file as "renamed.config" and not to include app.config file as of the project requirement.I have set configuration file as "renamed.config" file using below code, //AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", "d:\\reanmed.config" ); I have also included <Startup> element in this "renamed.config" configuration file and removed the app.config file.But it raise me below error, it always expect app.config file with <Startup> element to resolve this iss

Security Update for Microsoft .NET Framework, Version 1.1 Service Pack 1 (KB928366)

I have been trying to install   Security Update for Microsoft .NET Framework, Version 1.1 Service Pack 1 (KB928366)   since it was released but downloads ok but it will not install. Everytime installation of this update fails!   Help...

Basics of Attribute class and codeaccess security

    I am using code access security for my methods which are in a class library and hosted in ASP.Net process. The attribute class checks for some values in Session and sets the principalpermission appropriately. The method works fine allowing only valid threads to pass thru and exceute the method. But the problem is this happes only once and for every subsequent aspx calls does not hit the attribute class. (I guess CLR optimizes it). My problem is if the session has a different value then the attibute should behave appropriately. Now, it takes new value from Session only when I recycle my asp process and happens only once for the request. IS there a way to circumvent this? Any suggestions?

System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKe



I am currently working on SQL server reporting. I have created custom assemblies. I am loading the custom assebly in the rdl file.

I am getting following exception


An error occurred while executing OnInit: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (rsErrorInOnInit)



Please let me know if anyone knows the reason.

Thanks in Advance.

hard code app.config settings in class



I wonder how to hard code the configuration below in a class. I have a case where I cannot use app.config (due to creation of dll).  The code below is probably not enough..any help is appreciated. Thanks in advance.

hard coded in class

ContractDescription contract = new ContractDescription("Common.MyInterfaces.IConnector");

Binding binding = new NetTcpBinding();

binding.Name = "net.tcp.binding";

EndpointAddress endPointAddress = new EndpointAddress("net.tcp://localhost:9001/Connector");

ServiceEndpoint serviceEndpoint = new ServiceEndpoint(contract, binding, endPointAddress);






        <binding name="net.tcp.binding"></binding>





        <behavior name

Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version


I am using Itext sharp to create a pdf. I am adding an image and I keep getting this error

Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

it is this bit of code that is causing this


string imagepath = "C:\\BMSApplicationFiles\\PDFImages\\bullfrogWeb.gif";

//add the Image to the DOC
  Image bullfrogImage = Image.GetInstance(imagepath);
  bullfrogImage.SetAbsolutePosition(10, doc.PageSize.Height - 36);

If i comment this out, the PDF builds and no errors are thrown (there is just no image)

I don't understand cause I am am trying to do is read a file.

The directory does have full permission granted to IISUser

Any ideas why I am still geting this permissions error?

Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

SharePoint Tutorial - Security

Security in SharePoint is comprised of users, groups and roles.

Users, Groups and Roles

A user account comes from the authentication system. For example, if Active Directory is used to authenticate then the user accounts will come from it.

There are two types of groups SharePoint uses: domain groups and SharePoint groups.

Class Diagrams

Class diagrams show the static structure of the systems. Classes define the properties of the objects which belong to them. These include:

Attributes - (second container) the data properties of the classes including type, default value and constraints.

Creating a Simple Class in C#

The second article in the C# Object-Oriented Programming tutorial describes how classes are created in C# and how behaviour, in the form of publicly visible and private, hidden methods can be added. This demonstrates some of the uses of encapsulation

ASP.NET 4.0: WebForm Routing (quick n dirty version)

One of the things we're adding in ASP.NET 4.0 is built-in support for using Routing together with WebForms. Now, I'm totally aware that this is possible to do already and that a number of people have posted ways of doing this with the Web Routing feature which shipped with ASP.NET 3.5 SP1. We're just adding some features to make it easier to do

Static Class for Beginners

In general, the members of a class can be accessed by instance of that class when they are in public, but there comes a situation to access or call members of a class without an instance and this can be achieved by declaring them as static

abstract away the source of the connection string using a class with a static property.

ASP.NET provides a configuration system we can use to keep our applications flexible at runtime. In this article we will examine some tips and best practices for using the configuration system for the best results.

The element of a web.config file is a place to store connection strings, server names, file paths, and other miscellaneous settings needed by an application to perform work. The items inside appSettings are items that need to be configurable depending upon the environment, for instance, any database connection strings will change as you move your application from a testing and staging server into production.

Let's abstract away the source of the connection string using a class with a static property.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend