473,799 Members | 3,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Code Access Security - System.Security .SecurityExcept ion: Request failed.

I have written a Web User Control that runs inside of Sharepoint, but when I
want to use a custom convertor class to convert an XML attribute I get the
following error:

System.Security .SecurityExcept ion: Request failed.

Basically I start with a DataSet that I then want to transform into HTML via
an XSL stylesheet.

I do not appear to be able to use the XsltArgumentLis t Extension Object.
From what I have found this object requires FULL TRUST.


If I comment out the args.AddExtensi onObject("urn:t rimble-date",

Convertor); the code works fine.

This code basically installs an extension object which in my case converts
date/times to a format that I want to use in my XSL

To make this worse this needs to run as part of a sharepoint application.

I have tried adjusting the security on the DLL that this code is part of and
it does not help.

Does anyone have any thoughts?

try

{

XmlDataDocument datadoc = new XmlDataDocument (ds);

XslTransform myXslTrans = new XslTransform() ;

myXslTrans.Load (XSLFileSpec);

// Add an object to convert DateTime format.

HelpdeskDateCon vertor Convertor = new HelpdeskDateCon vertor();

XsltArgumentLis t args = new XsltArgumentLis t();

args.AddExtensi onObject("urn:t rimble-date", Convertor);

myXslTrans.Tran sform(datadoc,n ull, stWrite,null);

}

catch(Exception ex)

{

stWrite.Write(e x.ToString());

}

Chris

Nov 21 '05 #1
0 1870

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3154
by: MFRASER | last post by:
I am getting a System.Security.SecurityException when I try and laod a dataset from an xml file any ideas on what would cause this? System.Security.SecurityException' occurred in mscorlib.dll Additional information: Request for the permission of type System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
1
1796
by: Dave | last post by:
I have a ASP.net application that work fine with IIS 5.0. I'm trying to put it on IIS 6.0. And getting the following error. ASP is enable It is in a virtual directory - I also follow the direction in Microsoft Knowledge Base Article - 320268
0
2159
by: Filippo Bettinaglio | last post by:
Security problem running unmanaged code (.ocx control) in a windows from control hosted in IE6 Hi, I have design a windows from control which contain a .OCX in one of its forms. Component developed in C#2005 -------- .NET2
0
1433
by: Lambuz | last post by:
Hi all, I've got this problem. I've to implemente a solution like the example in http://support.microsoft.com/default.aspx?scid=kb;EN-US;313891, but I can't configure correctly the example. Every time I click on the textBox a System.Security.SecurityException is raised.
3
1480
by: Lambuz | last post by:
Hi all, I've got this problem. I've to implemente a solution like the example in http://support.microsoft.com/default.aspx?scid=kb;EN-US;313891, but I can't configure correctly the example. Every time I click on the textBox a System.Security.SecurityException is raised.
3
5699
by: =?Utf-8?B?dG9ieQ==?= | last post by:
Our company deploys our .NET 2.0 apps to a network drive for them to be run. We are having issues with security in getting these to run. Below is a sample output for a job that is trying to call a DLL and failing. Since the .NET 2.0 Config control panel applet is no longer included with the framework, we ran the following command line to allow full trust on Local Intranet apps: c:\windows\microsoft.net\framework\v2.0.50727\caspol.exe...
1
315
by: trs | last post by:
Hi, If anyone could please throw some light on how I can solve this error. Have tried giving permission to the folder. Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
4
5815
by: =?Utf-8?B?QXZhRGV2?= | last post by:
ASP.Net 2. We are migrating to Windows 2008 64 bit Server with IIS 7 from Windows 2003 32 Bit with IIS 6. A few library classes we wrote uses impersonation in code like explained in this article: http://support.microsoft.com/?id=306158#4 This doesn't work in Windows 2008 Server, we receive the following exception:
2
2949
by: =?Utf-8?B?c2tpdHpzb2ZyZW5pY2s=?= | last post by:
This is my first time posting an issue with .net, I hope this is the place. Basically, have websites that are throwing security exceptions that I am trying to resolve in IIS7 on win 2k8 64bit. The data is on a UNC share. Could this be related to the data being on a UNC share? Can you please help me out? Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the...
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10268
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9079
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7571
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.