473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

CAS syntax in manifest for creating Sharepoint WSP

JP
Hello everybody,

I am sorry, for posting out of topic question.

I have an assembly which needs full trust. In the Manifest.xml of my
sharepoint solution I have something like this:
<CodeAccessSecurity>
<PolicyItem>
<PermissionSet class="NamedPermissionSet" version="1"
Name="myName">
<IPermission class="AspNetHostingPermission" version="1"
Level="Minimal" />
...
</PermissionSet>
<Assemblies>
<Assembly Name="my.assembly" Version="1.0.0.0"
PublicKeyBlob="..." />
</Assemblies>
</PolicyItem>
</CodeAccessSecurity>
How do I have to change this snipped to give the assembly full trust?

Any pointers will be highly appreciated.

Thanks
Jai Prakash
Jul 25 '08 #1
1 1704
Don't beat yourself over the head, have mscorcfg.msc do it for you. For .NET
2x & 3.x, it's packaged with the SDK, otherwise you can find it in control
panel. Simply set the assembly to full trust from there. If you want to see
the syntax, after setting it using the tool, open the security.config file.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $15.00
Need a free copy of VSTS 2008 w/ MSDN Premium?
http://msmvps.com/blogs/alvin/Default.aspx
-------------------------------------------------------
"JP" <pr****@gmail.comwrote in message
news:d6**********************************@j7g2000p rm.googlegroups.com...
Hello everybody,

I am sorry, for posting out of topic question.

I have an assembly which needs full trust. In the Manifest.xml of my
sharepoint solution I have something like this:
<CodeAccessSecurity>
<PolicyItem>
<PermissionSet class="NamedPermissionSet" version="1"
Name="myName">
<IPermission class="AspNetHostingPermission" version="1"
Level="Minimal" />
...
</PermissionSet>
<Assemblies>
<Assembly Name="my.assembly" Version="1.0.0.0"
PublicKeyBlob="..." />
</Assemblies>
</PolicyItem>
</CodeAccessSecurity>
How do I have to change this snipped to give the assembly full trust?

Any pointers will be highly appreciated.

Thanks
Jai Prakash
Jul 27 '08 #2

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

Similar topics

2
by: Murat Tasan | last post by:
hi, i'm having a very odd problem... here is my system: debian linux java: j2sdk 1.4.1_02 everything is running fine, except for one little problem... i have a custom manifest file called...
0
by: Ken Wigle | last post by:
All, I am trying to add some .net applications I wrote to a virtual directory underneath the sharepoint services web site. I am having some problems and wondering if a) this is possible and/or...
8
by: William LaMartin | last post by:
I just received my Visual Studio upgrade to 2005 and tried to create a new web site via File | New Web Site with location http. Unfortunately I received the following error: "Visual Web...
0
by: William LaMartin | last post by:
It was suggested that I post this query here rather than in the Microsoft.public.dotnet.languages.vb group. I just received my Visual Studio upgrade to 2005 Pro and tried to create a new web...
15
by: (PeteCresswell) | last post by:
Got a sample of MS's "Advisor Guide To Microsoft Access" in the mail today - accompanied by a sample "Advisor Guide To Microsoft SharePoint". I skimmed both, but the SharePoint explanation is too...
2
by: =?Utf-8?B?QWxhc3RhaXIgQmVsbA==?= | last post by:
I am having trouble creating a web site on a server running sharepoint services. I am creating an ASP.Net website using Visual Studio 2005. The server I am trying to create it on is a Windows 2003...
1
by: =?Utf-8?B?TmV0aGVzaA==?= | last post by:
Where I can find to download "Manifest Generation and Editing Tool (Mage.exe) " or "Manifest Generation and Editing Tool, Graphical Client (MageUI.exe) ". Is there any other tool which will help...
8
by: GaryDean | last post by:
I was advised by a Microsoft speaker at a local .Net conference that "SharePoint" had a lot to offer for asp.net developers. I've spent a few hours hunting down links on Sharepoint Services in...
2
by: wildman | last post by:
I'm having to create a manifest.xml file so I can deploy a webpart into a Sharepoint server. I need to plug in a PublickeyToken for the assembly.. where do I get this? <SafeControl...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.