无法从网络共享运行Excel SmartDoc [英] Cannot Run Excel SmartDoc from Network Share

查看:98
本文介绍了无法从网络共享运行Excel SmartDoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法从网络共享运行Excel SmartDoc


我最近将多个Excel SmartDoc升级到Visual Studio 2010和Office 2010.  
使用VS Installer安装在我的本地硬盘驱动器上时,它们可以正常运行。 
我需要能够将它们保存到网络共享,并使用我本地硬盘上的代码从那里运行它们。 

Cannot Run Excel SmartDoc from Network Share

I have recently upgraded several Excel SmartDocs to Visual Studio 2010 and Office 2010.  They run without problems when installed on my local hard drive using VS Installer.  I need to be able to save them to a network share and run them from there using the code that is on my local hard drive. 

我已将网络共享添加到信任中心的受信任位置。 
这允许打开文档,但不允许自定义代码执行。 
我还将网络共享添加到IE9中的可信站点。

I have added the network share to my Trusted Locations in the Trust Center.  This allows the document to be opened, but it is not allowing the custom code to execute.  I have also added the network share to my Trusted Sites in IE9.

我需要完全信任网络共享上的Excel SmartDocs。 
已弃用.Net Framework 3.5及更早版本的方法。

I need to grant full trust to the Excel SmartDocs on the network share.  Methods that worked with .Net Framework 3.5 and earlier have been deprecated.

有人知道如何使用VS2010和.Net Framework 4.0吗?

Does anyone know how to do this with VS2010 and .Net Framework 4.0?

我收到此错误。

自定义没有权限创建应用程序域所必需的。

Customization does not have the permissions required to create an application domain.

**************异常文本**************

************** Exception Text **************

  Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException:自定义没有创建应用程序域所需的权限。 ---> System.Security.SecurityException:此应用程序中的自定义功能
将无法工作,因为管理员已将文件列为不受信任。请与管理员联系以获取进一步的帮助。

 Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException: Customization does not have the permissions required to create an application domain. ---> System.Security.SecurityException: Customized functionality in this application will not work because the administrator has listed file as untrusted. Contact your administrator for further assistance.

    在Microsoft.VisualStudio.Tools.Office.Runtime.RuntimeUtilities.VerifySolutionUri(Uri uri)

    at Microsoft.VisualStudio.Tools.Office.Runtime.RuntimeUtilities.VerifySolutionUri(Uri uri)

    在Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.GetAssemblyDataFromManifests(String solutionLocation,String manifestLocator,String documentName,Boolean showUIDuringDeployment,CustomizationType customizationType,
OfficeVersion officeVersion,IHostServiceProvider interopServiceProvider)

    at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.GetAssemblyDataFromManifests(String solutionLocation, String manifestLocator, String documentName, Boolean showUIDuringDeployment, CustomizationType customizationType, OfficeVersion officeVersion, IHostServiceProvider interopServiceProvider)

    at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation,String manifestName,String documentName,Boolean showUIDuringDeployment,IntPtr hostServiceProvider,
Boolean useFastPath,IntPtr& executor)

    at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, Boolean useFastPath, IntPtr& executor)

    ---内部异常堆栈跟踪结束---

    --- End of inner exception stack trace ---

***** *********已加载的程序集**************

************** Loaded Assemblies **************

  mscorlib

 mscorlib

     汇编版本:4.0.0.0

     Assembly Version: 4.0.0.0

     Win32版本:4.0.30319.269(RTMGDR.030319-2600)

     Win32 Version: 4.0.30319.269 (RTMGDR.030319-2600)

     CodeBase:file:/// C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

     CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

  - ---------------------------------------

 ----------------------------------------

  Microsoft.VisualStudio.Tools.Office.Runtime

 Microsoft.VisualStudio.Tools.Office.Runtime

     汇编版本:10.0.0.0

     Assembly Version: 10.0.0.0

     Win32版本:10.0.40303.0

     Win32 Version: 10.0.40303.0

     CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office。 Runtime.dll

     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.dll

  --------------------------- -------------

 ----------------------------------------

  System.Core

 System.Core

     汇编版本:4.0.0.0

     Assembly Version: 4.0.0.0

     Win32版本:4.0.30319.225建立者:RTMGDR

     Win32 Version: 4.0.30319.225 built by: RTMGDR

     CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

<跨度>&NBSP; --------------------------------------- -

 ----------------------------------------

  系统

      汇编版本:4.0.0.0

     Assembly Version: 4.0.0.0

     Win32版本:4.0.30319.269内容:RTMGDR

     Win32 Version: 4.0.30319.269 built by: RTMGDR

     CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

&NBSP; ----------------------------------------

 ----------------------------------------

  Microsoft.VisualStudio.Tools.Applications.Hosting

 Microsoft.VisualStudio.Tools.Applications.Hosting

     汇编版本:10.0.0.0

     Assembly Version: 10.0.0.0

     Win32版本:10.0.40303.0

     Win32 Version: 10.0.40303.0

     CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications。 Hosting.dll

     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.dll

  --------------------------- -------------

 ----------------------------------------

  Microsoft.VisualStudio.Tools.Applications.ServerDocument

 Microsoft.VisualStudio.Tools.Applications.ServerDocument

<跨度>&NBSP;&NBSP;&NBSP;&NBSP; 汇编版本:10.0.0.0

     Assembly Version: 10.0.0.0

     Win32版本:10.0.40303.0

     Win32 Version: 10.0.40303.0

     CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications。 ServerDocument.dll

     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll

  --------------------------- -------------

 ----------------------------------------

  Microsoft.VisualStudio.Tools.Applications.Runtime

 Microsoft.VisualStudio.Tools.Applications.Runtime

<跨度>&NBSP;&NBSP;&NBSP;&NBSP; 汇编版本:10.0.0.0

     Assembly Version: 10.0.0.0

     Win32版本:10.0.40303.0

     Win32 Version: 10.0.40303.0

     CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications。 Runtime.dll

     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll

  --------------------------- -------------

 ----------------------------------------

Mary Ann Chandler

Mary Ann Chandler

推荐答案


Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException:自定义没有创建应用程序域所需的权限。 ---> System.Security.SecurityException:此
应用程序中的自定义功能将不起作用,因为管理员已将文件列为不受信任。

Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException: Customization does not have the permissions required to create an application domain. ---> System.Security.SecurityException: Customized functionality in this application will not work because the administrator has listed file as untrusted.

请联系您的管理员获取进一步的帮助。

Contact your administrator for further assistance.


这篇关于无法从网络共享运行Excel SmartDoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆