Logo 
Search:

MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

Excel Services 2010 web part error

  Date: Oct 13    Category: MOSS    Views: 2571

I am trying to add an excel web access web part and I keep getting the following
error:
Unable to add selected web part(s)
Excel Web Access: An error has occurred.
Has anyone else run into this?
I can add other web parts on this page with no problem.
I have Excel services configured properly (I think)
Here is what I found in the log file:
BEGIN LOG FILE
06/10/2011 11:10:40.94 w3wp.exe (0x0220) 0x1398 SharePoint Foundation
Web Parts 8l4f Monitorable Error importing WebPart.
Assembly Microsoft.Office.Excel.WebUI, Version=14.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c, TypeName.
Microsoft.Office.Excel.WebUI.ExcelWebRenderer
4acdb27a-b350-46c1-bb4d-8a25e91ea909
06/10/2011 11:10:40.94 w3wp.exe (0x0220) 0x1398 SharePoint Foundation
Web Parts 89ku High Failed to add webpart
http%253A%252F%252Fsharetran2010%252Eairtran%252Ecom%252F%255Fcatalogs%252Fwp%25\
2FMicrosoft%252EOffice%252EExcel%252EWebUI%252Edwp;Excel%2520Web%2520Access.
Exception System.InvalidOperationException: There is an error in XML document
(1, 106). ---> System.TypeInitializationException: The type initializer for
'Microsoft.Office.Excel.Server.Host.ExcelServerHost' threw an exception. --->
System.MethodAccessException:
Microsoft.Office.Excel.Server.MossHost.MossHost..ctor() --->
System.Security.SecurityException: Request failed. at
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm,
PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh,
SecurityAction action, Object demand, IPermission permThatFailed) at
System.Security.C... 4acdb27a-b350-46c1-bb4d-8a25e91ea909
06/10/2011 11:10:40.94* w3wp.exe (0x0220) 0x1398 SharePoint Foundation
Web Parts 89ku High
...odeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet
refused, PermissionSet demands, RuntimeMethodHandle rmh, Object
assemblyOrString, SecurityAction action, Boolean throwException) at
System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet,
PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) at
System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset,
RuntimeMethodHandle rmh) at
System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags,
PermissionSet grantSet) at
System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32
permission, PermissionSet targetGrant, CompressedStack securityContext) at
System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32
permission, Perm... 4acdb27a-b350-46c1-bb4d-8a25e91ea909
06/10/2011 11:10:40.94* w3wp.exe (0x0220) 0x1398 SharePoint Foundation
Web Parts 89ku High ...issionSet targetGrant) The
action that failed was: Demand The type of the first permission that failed
was: System.Security.PermissionSet The demand was for: <PermissionSet
class="System.Security.PermissionSet" version="1" Unrestricted="true"/> The
granted set of the failing assembly was: <PermissionSet
class="System.Security.PermissionSet" version="1"> <IPermission
class="System.Security.Permissions.SecurityPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1"
Flags="Execution"/> <IPermission class="System.Web.AspNetHostingPermission,
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1" Level="Minimal"/> </PermissionSet> --- End of inner
exception stack trace --- at System.Runtim...
4acdb27a-b350-46c1-bb4d-8a25e91ea909
06/10/2011 11:10:40.94* w3wp.exe (0x0220) 0x1398 SharePoint Foundation
Web Parts 89ku High
...eTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean
noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean&
bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean
publicOnly, Boolean fillCache) at
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean
skipVisibilityChecks, Boolean fillCache) at
System.Activator.CreateInstance(Type type, Boolean nonPublic) at
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder,
Object[] args, CultureInfo culture, Object[] activationAttributes) at
Microsoft.Office.Excel.Server.Host.ExcelServerHost.CreateHost(String
assemblyName, String className) at
Microsoft.Office.Excel.Server.Host.ExcelServerHost.CreateHost() at
Microsoft.Office.Excel.Server.Host... 4acdb27a-b350-46c1-bb4d-8a25e91ea909
06/10/2011 11:10:40.94* w3wp.exe (0x0220) 0x1398 SharePoint Foundation
Web Parts 89ku High ....ExcelServerHost..cctor()
--- End of inner exception stack trace --- at
Microsoft.Office.Excel.WebUI.ExcelWebRenderer..ctor() at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExcelWebRend\
erer.Read13_ExcelWebRenderer(Boolean isNullable, Boolean checkType) at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExcelWebRend\
erer.Read14_WebPart() --- End of inner exception stack trace --- at
System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String
encodingStyle, XmlDeserializationEvents events) at
System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader) at
Microsoft.SharePoint.WebPartPages.WebPart.ParseXml(XmlReader reader, Type type,
String[] links, SPWeb spWeb) at Microsoft.SharePoin...
4acdb27a-b350-46c1-bb4d-8a25e91ea909
06/10/2011 11:10:40.94* w3wp.exe (0x0220) 0x1398 SharePoint Foundation
Web Parts 89ku High
...t.WebPartPages.WebPart.Parse(String s, Type type, String[] links, SPWeb
spWeb) at
Microsoft.SharePoint.WebPartPages.WebPartImporter.CreateWebPart(Boolean
clearConnections) at
Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager
manager, XmlReader reader, Boolean clearConnections, Uri webPartPageUri, SPWeb
spWeb) at
Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager
manager, XmlReader reader, Boolean clearConnections, SPWeb spWeb) at
Microsoft.SharePoint.WebPartPages.WebPartQuickAdd.System.Web.UI.IPostBackEventHa\
ndler.RaisePostBackEvent(String eventArgument)
4acdb27a-b350-46c1-bb4d-8a25e91ea909

Share: 

 

1 Answer Found

 
Answer #1    Answered On: Oct 13    

In case anyone is interested, I found the solution (with some help).
The trust level in the web.config was set to WSS_Minimal instead of WSS_Medium.
Changing that made all the difference.

 
Didn't find what you were looking for? Find more on Excel Services 2010 web part error Or get search suggestion and latest updates.




Tagged: