Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > SecurityException in Web Service using ADOMD.NET

Reply
Thread Tools

SecurityException in Web Service using ADOMD.NET

 
 
Vani Murarka
Guest
Posts: n/a
 
      12-03-2004
I have a web service that uses ADOMD.NET. This web service runs fine on
most servers, but gives a Security Exception when running on a server
which also has Sharepoint (WSS) installed. The Security Exception I get
is given below.

I found that if I give the trust level=Full in the web.config in
wwwroot, the web service works on the server with sharepoint. But that
is something that is surely not desireable. The trust level that is not
normally set on the server is WSS_Medium. On going to the config file
for WSS_Medium (wss_mediumtrust.config), I could not really figure out
what entries to make for Microsoft.AnalysisServices.AdomdClient.

There is an entry for SqlClient -"SqlClientPermission"
Description="System.Data.SqlClient.SqlClientPermis sion ..."

Do I have to make any entry in this file (if so, what entry) or some
configuration somewhere else?

I have also specified the web service path to be excluded in the
Sharepoint Central Administration.

Please let me know the way out of this. I posted this query on the OLAP
forums, but with no luck. Maybe people here may be able to help as this
might be a configuration with sharepoint issue.

Thanks

Vani Murarka

------- (the web service is called iGBWebService) ----------
System.Security.SecurityException: Security error.
at IGB.DataAccess.DataAccessComponent.OpenAdomdConnec tion()
at IGB.DataAccess.DataAccessComponent..ctor() in
e:\ilumenwebservice\igbwebservice\dataaccess\dataa ccesscomponent.cs:line
43
at IGB.MetricsRetriever.AggregatedMetricsRetriever..c tor() in
E:\iLumenWebService\iGBWebService\MetricsRetriever \AggregatedMetricsRetr
iever.cs:line
33
at IGB.iGbWebService..ctor() in
E:\iLumenWebService\iGBWebService\iGBWebService.as mx.cs:line 41

The granted set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission
class="System.Security.Permissions.EnvironmentPerm ission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Read="TEMP;TMP;USERNAME;OS;COMPUTERNAME"/>
<IPermission class="System.Security.Permissions.FileIOPermissio n,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Read="E:\iLumenWebService\iGBWebService"
Write="E:\iLumenWebService\iGBWebService"
Append="E:\iLumenWebService\iGBWebService"
PathDiscovery="E:\iLumenWebService\iGBWebService"/>
<IPermission
class="System.Security.Permissions.IsolatedStorage FilePermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Allowed="AssemblyIsolationByUser"
UserQuota="9223372036854775807"/>
<IPermission class="System.Security.Permissions.SecurityPermiss ion,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Flags="Assertion, Execution, ControlThread,
ControlPrincipal, RemotingConfiguration"/>
<IPermission class="System.Web.AspNetHostingPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Level="Medium"/>
<IPermission class="System.Net.DnsPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission class="System.Drawing.Printing.PrintingPermission,
System.Drawing, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
version="1"
Level="DefaultPrinting"/>
<IPermission
class="Microsoft.SharePoint.Security.SharePointPer mission,
Microsoft.SharePoint.Security, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c"
version="1"
ObjectModel="True"/>
<IPermission class="System.Data.SqlClient.SqlClientPermission,
System.Data, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission class="Microsoft.SharePoint.Security.WebPartPermis sion,
Microsoft.SharePoint.Security, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c"
version="1"
Connections="True"/>
<IPermission class="System.Net.WebPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<ConnectAccess>
<URI uri=""/>
</ConnectAccess>
</IPermission>
<IPermission
class="System.Security.Permissions.UrlIdentityPerm ission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"

Url="file://E:/iLumenWebService/iGBWebService/bin/iGBWebService.DLL"/>
<IPermission
class="System.Security.Permissions.ZoneIdentityPer mission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Zone="MyComputer"/>
</PermissionSet>


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting "SecurityException" while using JAXB generated Java classesfrom different project Amit Jain Java 19 08-15-2009 08:23 AM
SecurityException when calling DLL while using a UNC share Steve ASP .Net 0 05-09-2007 03:41 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
ERROR : System.Security.SecurityException Ali ASP .Net 0 10-29-2003 02:13 PM
Security: securityexception with web parts (SPSv2) Michael Ekegren ASP .Net Security 0 07-02-2003 12:33 PM



Advertisments