zoukankan      html  css  js  c++  java
  • WebPartManager的一个问题

    今天想写一个WebSite程序,在其中加入了一个WebPartManager控件,想玩一下。

    结果怎么也跑不起来。

    总是说:

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)



    搞得我莫名其妙的。Google了好久才知道了原因, 都是WebPartManager里的Personalization属性搞的鬼。缺省它是被设置成TRUE的。启动时候会去找一个数据库实例。

    我机器上没有这个数据库实例,所以会失败。


    具体的还可以参考 这里。


    看来对Web编程还是不熟啊!! 努力!! 

  • 相关阅读:
    bzoj 1053
    bzoj 1004 组合
    字符串哈希
    bzoj 1015 并查集
    bzoj 1003 最短路+dp
    HDU 4352 数位dp
    bzoj 1879 状压dp
    codeforces 55D 数位dp
    Codeforces 830B
    组合计数 && Stirling数
  • 原文地址:https://www.cnblogs.com/buhaiqing/p/1342234.html
Copyright © 2011-2022 走看看