http://hi.baidu.com/chmk/blog/item/e185c694736cf31fd31b700e.html自己看吧,badidu其实也能用

解决方案 »

  1.   

    System.Configuration .ConfigurationSettings.AppSettings["connectionString"] 这里是从web.config文件里的 
    <AppsStings> 
    <add key="connectionString" value="你的连接字符串" /> 
    </AppSetings> 
    里取连接字符串的可能你的连接字符串有问题!http://topic.csdn.net/t/20050205/09/3776559.html#
      

  2.   

    重新安装.net framework试试?
      

  3.   

    没说具体,你执行的是.exe
     你有没配置文件?
      服务打开了没?
     连接字符串对了没?
      

  4.   

    这是WEB.CONFIG里的
    <location allowOverride="true" inheritInChildApplications="true">
               <appSettings>
                   <add key="ConnectionString" value="server=localhost;database=load;uid=sa;pwd=1234;" />
                   <add key="CrystalImageCleaner-AutoStart" value="true" />
                   <add key="CrystalImageCleaner-Sleep" value="60000" />
                   <add key="CrystalImageCleaner-Age" value="120000" />
               </appSettings>
           </location>
      

  5.   

    我重新安装了.NET,一样的错误
      

  6.   

    web.config中有个configuration节点下的connectionStrings节点下添加
    <add name="DbFile" providerName="sqlserver" connectionString="你的连接字符串"/>
      

  7.   

    给数据库设置ASP.Net的访问权限
      

  8.   

    aspnet_wp.exe  是 1.1 的;2.0  是用w3wp; 请在网站--属性--asp.net 选择 2.0