Chr*_*ton 9 silverlight build visual-studio-2010 silverlight-4.0
在对我的RIA域服务进行一些细微更改(尝试在Silverlight网站应用程序中托管)后,尝试构建我的VS 2010 Silverlight项目时,此错误已经开始.似乎没有理由出现此错误,我无法理解错误的访问被拒绝部分.
我尝试过的事情:
1)完全清理解决方案中的所有项目并重新构建2)从框架文件夹中删除所有临时ASP.Net文件3)从类库中删除项目属性中的链接RIA服务,该类库是失败的,干净的,重新构建然后重新添加链接的RIA服务
任何关于从哪里出发的建议都将非常感激:
错误21"CreateRiaClientFilesTask"任务意外失败.System.Web.HttpException(0x80004005):无法加载文件或程序集"Business,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null"或其依赖项之一.访问被拒绝.---> System.Configuration.ConfigurationErrorsException:无法加载文件或程序集'Business,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null'或其依赖项之一.访问被拒绝.---> System.IO.FileLoadException:无法加载文件或程序集'Business,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null'或其依赖项之一.访问被拒绝.---> System.IO.FileLoadException:无法加载文件或程序集"Business"或其依赖项之一.访问被拒绝.
---内部异常堆栈跟踪的结束---在System.Reflection的System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark&stackMark,Boolean throwOnFileNotFound,Boolean forIntrospection,Boolean suppressSecurityChecks). System.Reflection.RuntimeAssembly.InternalLoadAssemblyName的RuntimeAssembly.nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark&stackMark,Boolean throwOnFileNotFound,Boolean forIntrospection,Boolean suppressSecurityChecks)(AssemblyName assemblyRef,Evidence assemblySecurity,StackCrawlMark&stackMark,Boolean forIntrospection,Boolean在System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,Evidence assemblySecurity,StackCrawlMark&stackMark,Boolean forIntrospection)的System.Reflection.Assembly.Load(String assemblyString)at System.Web.Configuration.Compilati的suppressSecurityChecks)onSection.LoadAssemblyHelper(String assemblyName,Boolean starDirective)---内部异常堆栈跟踪结束---在System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory上的System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName,Boolean starDirective)中)位于System.Web.Compilation上的System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)中的System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig),位于System.Web.Compilation.BuildManager的System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()处. System.Web.Compilation的System.Web.Compilation.ClientBuildManager.EnsureHostCreated()中的System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager,IApplicationHost appHost,IConfigMapPathFactory configMapPathFactory,HostingEnvironmentParameters hostingParameters,PolicyLevel policyLevel,Exception appDomainCreationException)中的CallPreStartInitMethods() .Cli Microsoft的Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.GenerateClientProxies()的Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.CreateSharedTypeService(ClientBuildManager clientBuildManager,IEnumerable`1 serverAssemblies,ILogger logger)中的entBuildManager.CreateObject(Type type,Boolean failIfExists) Microsoft.Build的Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()中的Microsoft.ServiceModel.DomainServices.Tools.RiaClientFilesTask.Execute()处于.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.ExecuteInternal() .BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost,TaskLoggingContext taskLoggingContext,TaskHost taskHost,ItemBucket bucket,TaskExecutionMode howToExecuteTask,Boolean&taskResult)Insurer.Analytics.Common
vin*_*nny 12
刚出现同样的问题 - 事实证明,某些内容更改了"Temporary ASP.NET Files"文件夹的权限.它很容易测试.单击解决方案资源管理器中的ASP.Net配置以获取.web项目.它可能会抛出拒绝访问错误并指向temp asp.net files文件夹.如果是这样,在.web项目中打开web.config并将tempDirectory指令添加到编译中,如下所示:
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" tempDirectory="C:\<SomeDirectoryYouFullyControl>\Temporary ASP.Net Files" />
</system.web>
Run Code Online (Sandbox Code Playgroud)
重建您的.web项目并更新您的silverlight项目中的服务参考.
归档时间: |
|
查看次数: |
6246 次 |
最近记录: |