本文介绍了获取错误“尝试执行未经授权的操作”打开预先存在的.sln文件时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!














I已经分配了一台从Windows 7升级到Windows 10的PC。在尝试打开发送给我的VS .sln文件时,我会收到错误"...导入的项目C:\ Windows.Microsoft.Net \ Framework\v3.5\Microsoft.CompactFramework.VisualBasic.targets 
未找到。确认< Import>中的路径声明是正确的,并且该文件存在于磁盘上  


 我发现这是一台从Windows 7升级到Windows 10的电脑,因为VS抱怨的文件丢失了在C:\ Windows.old下面的相同路径中找到。将丢失的.targets文件从C:\ Windows.old复制到上面的路径,现在是
在尝试打开.sln文件时出现此错误  ..."尝试执行未经授权的操作"。尝试通过命令登录启动VS ... denvenv.exe / log< path-to-file> 但是这只是输出一个包含几个条目的xml文件
,没有错误表明可能出错的地方。任何建议??


这是使用Visual Studio 2008

解决方案

I have been assigned a pc which IT upgraded from Windows 7 to Windows 10. In trying to open VS .sln files sent to me I would get the error "...The imported project C:\Windows'Microsoft.Net\Framework\v3.5\Microsoft.CompactFramework.VisualBasic.targets  was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on the disk" 

 I figured out this was a pc upgraded from Windows 7 to Windows 10 because the files that VS complained were missing were found in the same path above under C:\Windows.old. Copied the missing .targets files from C:\Windows.old to above path and am now getting this error when trying to open the .sln file ... "Attempted to perform an unauthorized operation". Tried starting VS with logging on via the command ... denvenv.exe /log <path-to-file>  but that just puts out an xml file containing several entries with no error indicating what may have gone wrong. Any suggestions??

This is using Visual Studio 2008



解决方案


这篇关于获取错误“尝试执行未经授权的操作”打开预先存在的.sln文件时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 23:55