找不到提供者名称,我该怎么办? [英] provider name is not found,what should I do?

查看:78
本文介绍了找不到提供者名称,我该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了3层程序,比如这个链接 http://geekswithblogs.net/edison/archive/2009/04/05/a-simple-3-tier-layers-application-in-asp.net.aspx [< a href =http://geekswithblogs.net/edison/archive/2009/04/05/a-simple-3-tier-layers-application-in-asp.net.aspx\"target =_ blanktitle =新窗口> ^ ]

但是当我运行这个时,GenericData.cs下面的行发生错误,并说dbProviderName caacon为null!我该怎么办?帮帮我PLZ,这是一个紧急情况:-(

I write 3 tier program like this link http://geekswithblogs.net/edison/archive/2009/04/05/a-simple-3-tier-layers-application-in-asp.net.aspx[^]
but when I run this an error occured at below line on GenericData.cs and says dbProviderName caacon be null! what should I do?help me plz,it''s an emergency :-(

DbProviderFactory factory = DbProviderFactories.GetFactory(dbProviderName);



已添加代码块[/ Edit]


Code block added[/Edit]

推荐答案

从网站上获取代码时它无法正常工作,你认为你应该在哪里解决任何问题?编写代码的网站内部知道它,或者一个完全不相关的网站可能知道它和你的一样多,并且必须看看?



先问问他们。

如果他们不帮你(这不太可能),那么请问这里,但不只是发布他们代码的链接 - 我们不知道你使用了多少,所以你实际程序中的一个无情片段会更有用......
When you take code from a website and it doesn''t work, where do you think you should address any questions? The site that wrote the code and knows it inside out, or a totally unrelated site that probably knowns as much about it as your do, and would have to look?

Ask them first.
If they don''t help you (which is unlikely) then ask here, but not just by posting a link to their code - we do not know how much of it you used, so a relentless fragment from your actual program would be of more use...


<connectionStrings>
    <add name="conn" connectionString="Data Source=DEVELOPER-PC; Initial Catalog=Development; Integrated security=true" providerName="System.Data.SqlClient"/>
</connectionStrings>







试试看..它应该可以工作..



问候

anurag




try it..it should work..

regards
anurag


这篇关于找不到提供者名称,我该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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