找不到提供者名称,我该怎么办?

编程入门 行业动态 更新时间:2024-10-25 12:22:19
本文介绍了找不到提供者名称,我该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我写了3层程序,比如这个链接 geekswithblogs/edison/archive/2009/04/05/a-simple-3-tier-layers-application-in-asp.aspx [ ^ ] 但是当我运行这个时,GenericData.cs下面的行发生错误,并说dbProviderName caacon为null!我该怎么办?帮帮我PLZ,这是一个紧急情况:-(

I write 3 tier program like this link geekswithblogs/edison/archive/2009/04/05/a-simple-3-tier-layers-application-in-asp.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

更多推荐

找不到提供者名称,我该怎么办?

本文发布于:2023-10-18 12:16:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1504204.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   提供者   我该   名称

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!