473,756 Members | 3,663 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WSE3.0 doesn't work with trust level="Medium" need help!

Stu
I x-posted this in the enhancements group as well, looking for some
help:

Need help with a CAS issue with WSE3.

Enable an asp.net2 webapp to use WSE3.
Create a new webservice in the app via Add New Item WebService

Alter code for webservice so the service inherits from SoapService,
instead of the defaults, like so: (this forces your service to use
WSE3)

using System;
using System.Web;
using System.Collecti ons;
using System.Web.Serv ices;
using System.Web.Serv ices.Protocols;
using Microsoft.Web.S ervices3;
using Microsoft.Web.S ervices3.Design ;
using Microsoft.Web.S ervices3.Messag ing;

/// <summary>
/// Summary description for TestService
/// </summary>
[WebService(Name space = "http://tempuri.org/")]
[WebServiceBindi ng(ConformsTo = WsiProfiles.Bas icProfile1_1)]
public class TestService : SoapService {

public TestService () {

//Uncomment the following line if using designed components
//InitializeCompo nent();
}

[WebMethod]
public string HelloWorld() {
return "Hello World";
}

}

Now attempt to call that HelloWorld method from the browser. works
fine, right?

Now edit the trust level for your IIS server to medium here:
c:\windows\..<l astest .net framework>\CONF IG\web.config

change ~line 23 to this:
<trust level="Medium" originUrl="" />

restart your IIS server via iisreset /restart

invoke your HelloWorld method again... you should get this error:
System.Security .SecurityExcept ion: That assembly does not allow
partially trusted callers.
at
System.Security .CodeAccessSecu rityEngine.Thro wSecurityExcept ion(Assembly
asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHa ndle
rmh, SecurityAction action, Object demand, IPermission permThatFailed)
at TestService..ct or()

anyone have a clue to solve for this???

I added a StrongNameMembe rshipCondition into the web_mediumtrust .config
for WSE3 DLL, but this does not fix the situation!

any help would be appreciated!

Sep 6 '06 #1
0 1218

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

Similar topics

32
3398
by: Will Hartung | last post by:
Can someone clarify that multiple classes in the "class" attribute are ok and "legal" and not some fluke? So, I can do: ..pink {color: pink} ..bold {font-weight: bold} ..medium {font-size: 12pt} <p class="bold pink medium">bold pink medium sized text</p>
10
2060
by: Alf P. Steinbach | last post by:
The fifth part of my attempted Correct C++ tutorial is now available, although for now only in Word format (use free Open Office if no Word), and also, it's not yet been reviewed at all -- comments welcome! "How to use libraries" <url: http://home.no.net/dubjai/win32cpptut/w32cpptut_01_05.doc> General URL: <url: http://home.no.net/dubjai/win32cpptut/html/>
4
2665
by: Mark B | last post by:
It seems the Access 97 FontName property supports multiple font names, e.g. "Franklin Gothic Medium, Tahoma". I assume that means that if the first font is not available on the target PC, the second font will be displayed. Correct? Also what happens if the font is specified as Franklin Gothic Medium only and that font is not available on the target PC? Will Access default to some other font? If so, which one?
388
21878
by: maniac | last post by:
Hey guys, I'm new here, just a simple question. I'm learning to Program in C, and I was recommended a book called, "Mastering C Pointers", just asking if any of you have read it, and if it's worth the $25USD. I'm just looking for a book on Pointers, because from what I've read it's one of the toughest topics to understand. thanks in advanced.
2
3511
by: Harrie Verveer | last post by:
Hi, I'm building quiet a large webapplication (CMS) in ASP.NET. On localhost the application runs fine. For publishing we use 2 hosting providers at the moment (let's call those 'A' and 'B'). Hosting provider A doesn't give any problems and the application runs just fine. On hosting provider B there are some problems, and I just can't figure it out =(. My users login using FormsAuthentication. After clicking through the application...
1
1885
by: Achim Domma (SyynX Solutions GmbH) | last post by:
Hi, is there a possibility to set the font size to a percent value of the "top level" font size? For example: The font size of the body might be 100% and I have a div which should have a font size of 80% of this value, independent of other tags around this div:
22
130381
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the document and closes it with the following code: <body onload="window.print(); window.close();"> This works correctly (or at least the way I expect it to work under MS Internet Explorer, but it cuases Netscape to "crash"
28
2519
by: darren via AccessMonster.com | last post by:
Hi I've seen details on bypassing macro security with a bat file but has any one incorporated this with Tony Toews FE Updater? If so, I'd appreciate some guidance. As both open the database I'm not sure how/if this will work. Thanks
0
9872
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
9711
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7244
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
6534
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
5141
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5303
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
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.