从控制台测试SharePoint遇到的两个问题
2012-07-09 16:05
288 查看
1、明明已经引用了SharePoint的相关dll,但扔报找不到SPSite等类。其原因是控制台程序在VS2010下默认使用的.Net Framework是4.0,而SharePoint是使用的3.5的框架,所以需要将控制台使用的框架也改成3.5。
2、SPSite site = new SPSite("http://win-2n2ujh16hsg/");报“The Web application at could not found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.”错误,在确认地址没错的前提下,检查控制台的Build输出的是否为X64,如果不是的话就会报这个错误,原因是SharePoint2010必需是在64位下运行。
2、SPSite site = new SPSite("http://win-2n2ujh16hsg/");报“The Web application at could not found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.”错误,在确认地址没错的前提下,检查控制台的Build输出的是否为X64,如果不是的话就会报这个错误,原因是SharePoint2010必需是在64位下运行。
相关文章推荐
- 今天下午测试全分布hadoop时遇到的两个小问题
- 配置SharePoint 2016开发环境的时候遇到的两个问题
- day5:遇到的两个问题
- Ubuntu16.04+anaconda2+caffe+ssd+opencv3.1.0在编译caffe过程中的问题及解决方法 主要遇到三个问题,前两个是caffe在cmake过程中的问题,后一
- 极光推送demo测试流程,测试过程中可能遇到的问题和解决方法
- 升级Android支持库版本遇到的两个问题
- 我在安装TFS 2008的时候遇到的问题以及解决方法一sharepoint 安装 命令建立应用程序和站点集
- 我在安装TFS 2008的时候遇到的问题以及解决方法一sharepoint 安装 打开站点 出现服务器不可用问题
- linux下给php安装pdo_mysql和zlib以及测试模式的选择(禅道安装过程中遇到的问题)
- SQLServer2000遇到的两个问题及其解决办法
- mediawiki使用中遇到的两个问题
- 安装ltib时遇到的两个问题及解决方法
- SharePoint 2007 Edit in Datasheet时遇到"The selected cells are read-only."问题
- 在eclipse中发布webservice遇到的两个问题:1.servers资源没有打开 2.配置文件找不到
- 使用jmeter测试web应用遇到的几个问题及解决
- [Android]使用 Eclipse 给 APK 签名时遇到的两个问题及解决办法
- JQuery实战中遇到的两个小问题$(document).ready() 、bind函数的参数传递问题
- 今天遇到两个问题:Can't connect to MySQL server 与 Access denied for user !
- 【Android】使用 Eclipse 给 APK 签名时遇到的两个问题及解决办法
- intellij idea maven springMVC和SpringBoot遇到的两个小问题