Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 无法在VS 2012 RC中正确添加服务引用_Visual Studio_Visual Studio 2012_Add References Dialog - Fatal编程技术网

Visual studio 无法在VS 2012 RC中正确添加服务引用

Visual studio 无法在VS 2012 RC中正确添加服务引用,visual-studio,visual-studio-2012,add-references-dialog,Visual Studio,Visual Studio 2012,Add References Dialog,我只需添加服务地址,按GO和ok。之后,生成的Reference.svcmap看起来正确,但Reference.cs为空 //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.17626 /

我只需添加服务地址,按GO和ok。之后,生成的Reference.svcmap看起来正确,但Reference.cs为空

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.17626
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// 
//这段代码是由一个工具生成的。
//运行时版本:4.0.30319.17626
//
//对此文件的更改可能会导致不正确的行为,如果
//重新生成代码。
// 
//------------------------------------------------------------------------------
就这些。无法使用ServiceClient对象
PS:在VS2010中添加相同的服务引用可以正常工作,并且reference.cs已完全生成。
问题是:在生成ClientObject时是否有问题,为什么VS没有给我任何警告消息。还有,如果有人遇到这样的问题,我该如何解决

版本信息:
Microsoft Visual Studio Ultimate 2012 RC
版本11.0.50706.0 QRELRC 2012年7月
Microsoft.NET Framework

版本4.5.50501

我遇到了确切的sam问题。我未选中此页上的第三方dll:s类似:

11.0.50727.1 RTMREL中的相同问题

//运行时版本:4.0.30319.17929

取消选中“配置服务引用”对话框中的“在引用的程序集中重用类型”复选框

为我工作:
检查您是否有任何警告。
我曾经遇到过这个问题,并发现了一个关于锁定dll的警告。

修复警告后,reference.cs再次创建。

这正是我需要的答案。非常感谢你!谢谢你的提示。要查找有关故障的确切信息,您可以转到ErrorList窗口并显示警告。我意识到我的问题是创建的一个对象的属性是特定于框架和4.0的,但我的本地项目是3.5。一旦我删除了重用引用,它就生成了我的代码。对于这个答案,如果可以的话,我会给你更多的ups。非常感谢。