更新WSDL参考,但ASP.net MVC 4项目中未更新Web配置 [英] Updating WSDL Reference but web config is not updated in ASP.net MVC 4 project

查看:72
本文介绍了更新WSDL参考,但ASP.net MVC 4项目中未更新Web配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的mvc web Appln项目中使用Visual Studio 2013,添加了wsdl,当我在项目中使用添加服务引用添加新的wsdl文件时,不会在web.config文件中创建相应的绑定标记。 />
当我们选择添加网页参考时,我尝试取消选中重复使用类型。



我阅读了很多博客并发布但没有得到任何解决方案

I am using Visual Studio 2013 in my mvc web Appln project,wsdl was added, When i am adding new wsdl file using 'Add Service Reference' in project then respective bindings tags are not created in web.config file .
I tried unchecking 'Reuse Types' the tick when we Select 'Add Web Reference'

I read many blogs and post but didnt got any solution

推荐答案

您可能正在寻找错误的地方。主项目文件夹中有web.config文件以及每个视图文件夹。看看你是在正确的地方设置它。此外,可能有调试和发布的web.config文件,因此请确保您在正确的位置。
You may be looking in the wrong place. There are web.config files in the main project folder as well as each of the views folders. Look to see that you are setting it in the right place. Also, there may be web.config files for both debug and release, so make sure you are in the right place.


这篇关于更新WSDL参考,但ASP.net MVC 4项目中未更新Web配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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