在visual studio 2012 asp.net mvc api中添加新控制器时出错 [英] Error when adding a new controller in visual studio 2012 asp.net mvc api

查看:134
本文介绍了在visual studio 2012 asp.net mvc api中添加新控制器时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



当我尝试在我的项目中添加一个空控制器时我收到此错误

< img src =''http://img826.imageshack .us / img826 / 9931 / errorgt.jpg''border =''0''/>
上传了 ImageShack.us



如何解决这个问题?

看起来有什么问题?



谢谢,

Sas Gabriel

Hello,

when i try to add an empty controller in my project i get this error
<img src=''http://img826.imageshack.us/img826/9931/errorgt.jpg'' border=''0''/>
Uploaded with ImageShack.us

what to do to fix it?
what seems to be the problem?

Thanks,
Sas Gabriel

推荐答案

发现了问题。



i玩了一些如何从linq到sql创建数据库,似乎在web.config中创建了一个连接字符串,但我删除了数据库类,字符串仍然存在,并且我刚刚删除了字符串,现在它可以正常工作
found the problem.

i played a little with how to create database from linq to sql and it seems that a connection string was created in web.config but i deleted the database classes and the string remained, and i just deleted the string and now it works


这篇关于在visual studio 2012 asp.net mvc api中添加新控制器时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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