<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    簡(jiǎn)易代碼之家

      BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
      157 Posts :: 2 Stories :: 57 Comments :: 0 Trackbacks

    #

    問(wèn)題現(xiàn)象:
    1.未能加載文件或程序集“Interop.ADOX, Version=2.8.0.0, Culture=neutral, PublicKeyToken=bf2649b9bb8e6a82”或它的某一個(gè)依賴項(xiàng)。系統(tǒng)找不到指定的文件。
    2.ADOX... 沒(méi)有注冊(cè)類。
    解決辦法:

    將應(yīng)用程序生成為Any CPU就可以了
    反之,如果系統(tǒng)是64位的Win7,就應(yīng)該將新項(xiàng)目的生成目標(biāo)平臺(tái)改為x86

    綜上:
    64位的Win7 解決方案的生成目標(biāo)平臺(tái)設(shè)置為x86
    32位操作系統(tǒng) 解決方案的生成目標(biāo)平臺(tái)設(shè)置為AnyCPU

    另外一個(gè)網(wǎng)友的問(wèn)題解決方法:

    我遇到過(guò)這個(gè)問(wèn)題有兩次,不過(guò)環(huán)境不同。

    第一次:Windows 2008 Server R2 64位;

    第二次:Windows 7 64位;

    原因分析:操作系統(tǒng)是64位的,但發(fā)布的程序引用了一些32位的ddl,所以出現(xiàn)了兼容性的問(wèn)題。

    解決方案:IIS——應(yīng)用程序池——高級(jí)設(shè)置——啟用32位應(yīng)用程序 :true。

    參考:http://www.jb51.net/article/31711.htm

    posted @ 2015-01-04 18:07 Jakin.zhou 閱讀(308) | 評(píng)論 (0)編輯 收藏

    最近使用VS,在引用COM組件的時(shí)候,出現(xiàn)了無(wú)法嵌入互操作類型“……”,請(qǐng)改用適用的接口的錯(cuò)誤提示。查閱資料,找到解決方案,記錄如下:

    選中項(xiàng)目中引入的dll,鼠標(biāo)右鍵,選擇屬性,把“嵌入互操作類型”設(shè)置為False。

    posted @ 2014-12-29 16:51 Jakin.zhou 閱讀(242) | 評(píng)論 (0)編輯 收藏

    為WebPart添加右側(cè)的屬性面板,方便將來(lái)對(duì)于WebPart的配置,我們只需要在CustomWebPart.cs文件里面,聲明一下變量即可:
    private string url = string.Empty;
            [WebBrowsable(
    true)]
            [WebDisplayName(
    "瀏覽頁(yè)地址")]
            [WebDescription(
    "配置雜草信息的瀏覽頁(yè)地址")]
            [Category(
    "雜項(xiàng)設(shè)置")]
            [Personalizable(
    true)]
            
    public string thisurl
            {
                
    get
                {
                    
    return url;
                }
                
    set
                {
                    url 
    = value;
                }
            }
            

    參考:http://www.cnblogs.com/jianyus/p/3458374.html
     
    posted @ 2014-12-26 11:28 Jakin.zhou 閱讀(216) | 評(píng)論 (0)編輯 收藏

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head>  
        
    <title>Test生成二維碼,支持中文</title>  
       
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
        
    <script src="jquery.qrcode.min.js" type="text/javascript"></script>  
        
    <script type="text/javascript">  
            
    function utf16to8(str) {  
                
    var out, i, len, c;  
                out 
    = "";  
                len 
    = str.length;  
                
    for (i = 0; i < len; i++) {  
                    c 
    = str.charCodeAt(i);  
                    
    if ((c >= 0x0001&& (c <= 0x007F)) {  
                        out 
    += str.charAt(i);  
                    } 
    else if (c > 0x07FF) {  
                        out 
    += String.fromCharCode(0xE0 | ((c >> 12& 0x0F));  
                        out 
    += String.fromCharCode(0x80 | ((c >> 6& 0x3F));  
                        out 
    += String.fromCharCode(0x80 | ((c >> 0& 0x3F));  
                    } 
    else {  
                        out 
    += String.fromCharCode(0xC0 | ((c >> 6& 0x1F));  
                        out 
    += String.fromCharCode(0x80 | ((c >> 0& 0x3F));  
                    }  
                }  
                
    return out;  
            }  
            $(
    function () {  
                jQuery('#output').qrcode(utf16to8(
    "速凍滑子菇,承德森源綠色食品有限公司,網(wǎng)址:http://xxxxxxx/SitePages/ProductViewNew.aspx?PID=7a988c8f-c148-4a90-a6a8-e713b82a183f"));  
            })      
        
    </script>  
    </head>  
    <body>  
    <div id="output"></div>  
    </body>  
    </html>
    /Files/jakin/JS文件.rar

    注意:此方法僅支持IE9及以上版本。
    posted @ 2014-11-26 15:45 Jakin.zhou 閱讀(516) | 評(píng)論 (0)編輯 收藏

    update S_ENTERPRISE set DAY_PROCESS=replace(DAY_PROCESS,'',''where DAY_PROCESS like '%噸%'
    posted @ 2014-11-05 13:22 Jakin.zhou 閱讀(856) | 評(píng)論 (0)編輯 收藏

    1.修改管理中心的Web.config文件,位置:
    C:\inetpub\wwwroot\wss\VirtualDirectories\42903

    2.修改應(yīng)用程序的Web.config文件,位置:
    C:\inetpub\wwwroot\wss\VirtualDirectories\80

    3.修改STS (Secure Token Service)的Web.config文件,位置:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\WebServices\SecurityToken

    posted @ 2014-11-05 09:24 Jakin.zhou 閱讀(144) | 評(píng)論 (0)編輯 收藏

    .style01
            {
                height:27px;
                vertical
    -align:middle;
                line
    -height:27px;
                font
    -family:微軟雅黑;     
                font
    -size:13pt;
            }  
    posted @ 2014-10-27 22:57 Jakin.zhou 閱讀(544) | 評(píng)論 (0)編輯 收藏

    CS寫(xiě)法:
     1 private bool _IsExpertCheck;
     2         [WebBrowsable(true)]
     3         [Personalizable(true)]
     4         [WebDisplayName("是否按專家顯示文件,默認(rèn)為否")]
     5         [WebDescription("是否按專家顯示文件,默認(rèn)為否")]
     6         public bool IsExpertCheck
     7         {
     8             get { return _IsExpertCheck; }
     9             set { _IsExpertCheck = value; }
    10         }
    11 
    12         protected override void CreateChildControls()
    13         {
    14             Control control = Page.LoadControl(_ascxPath);
    15             if (control != null)
    16             {
    17                 ((D_ZoneLimitViewUserControl)control).WebPart = this;
    18             }
    19             Controls.Add(control);
    20         }

    后臺(tái)寫(xiě)法:
    1 public D_ZoneLimitView WebPart { getset; }

    posted @ 2014-10-10 14:41 Jakin.zhou 閱讀(136) | 評(píng)論 (0)編輯 收藏

    // 合并多行列值
            public void GroupRows(GridView GridView1, int cellNum)
            
    {
                
    int i = 0, rowSpanNum = 1;
                
    while (i < GridView1.Rows.Count - 1)
                
    {
                    GridViewRow gvr 
    = GridView1.Rows[i];
                    
    for (++i; i < GridView1.Rows.Count; i++)
                    
    {
                        GridViewRow gvrNext 
    = GridView1.Rows[i];
                        
    if (gvr.Cells[cellNum].Text == gvrNext.Cells[cellNum].Text)
                        
    {
                            gvrNext.Cells[cellNum].Visible 
    = false;
                            rowSpanNum
    ++;
                        }

                        
    else
                        
    {
                            gvr.Cells[cellNum].RowSpan 
    = rowSpanNum;
                            rowSpanNum 
    = 1;
                            
    break;
                        }

                        
    if (i == GridView1.Rows.Count - 1)
                        
    {
                            gvr.Cells[cellNum].RowSpan 
    = rowSpanNum;
                        }

                    }

                }

            }
    posted @ 2014-10-09 15:10 Jakin.zhou 閱讀(143) | 評(píng)論 (0)編輯 收藏

    protected void UpLoadDocument()
            
    {
                
    string filename = FileUpload1.PostedFile.FileName.Substring(FileUpload1.PostedFile.FileName.LastIndexOf("/")+1);
                Response.Write(
    "filename:"+filename+"<br/>");
                Stream filedataStream 
    = FileUpload1.PostedFile.InputStream;
                
    int dataLen = FileUpload1.PostedFile.ContentLength;
                Response.Write(
    "dataLen:" + dataLen + "<br/>");
                
    string fileType = FileUpload1.PostedFile.ContentType;
                Response.Write(
    "fileType:" + fileType + "<br/>");
                
    byte[] fileData = new byte[dataLen];
                filedataStream.Read(fileData, 
    0, dataLen);

                SPSite sps 
    = SPControl.GetContextSite(Context);
                sps.AllowUnsafeUpdates 
    = true;
                SPWeb spw 
    = sps.OpenWeb();
                spw.AllowUnsafeUpdates 
    = true;
                SPList list 
    = spw.Lists["TestDocs"];

                SPFolder folder 
    = list.RootFolder;
                
    bool ex = false;
                Response.Write(
    "folder.Exists:" + folder.Exists + "<br/>");
                
    //獲取不帶路徑的純文件名
                filename = FileUpload1.FileName;
                
    if (folder.Exists)
                
    {
                    
    try
                    
    {
                        ex 
    = folder.Files[filename].Exists;
                        Response.Write(
    "已有同名文件。");
                        
    return;
                    }

                    
    catch
                    
    {
                        folder.Files.Add(filename, fileData, 
    true);
                    }

                }

            }
    posted @ 2014-10-08 15:21 Jakin.zhou 閱讀(121) | 評(píng)論 (0)編輯 收藏

    僅列出標(biāo)題
    共16頁(yè): 上一頁(yè) 1 2 3 4 5 6 7 8 9 下一頁(yè) Last 
    主站蜘蛛池模板: 日韩精品无码一区二区三区免费| 免费中文字幕视频| 亚洲日本国产精华液| 亚洲国产精品特色大片观看完整版 | 两性色午夜视频免费网| 国产亚洲精品美女久久久久| 亚洲爆乳精品无码一区二区| 亚洲色偷偷偷综合网| 国产精一品亚洲二区在线播放| 日日噜噜噜噜夜夜爽亚洲精品| 亚洲色中文字幕无码AV| 国外成人免费高清激情视频| 在线观看人成视频免费无遮挡| 美女无遮挡拍拍拍免费视频| a级成人毛片免费视频高清| 久久久久久久99精品免费| 无套内谢孕妇毛片免费看看| 未满十八私人高清免费影院| 久久综合久久综合亚洲| 亚洲精品无码专区在线播放| 亚洲大尺度无码无码专线一区| 看亚洲a级一级毛片| 人人鲁免费播放视频人人香蕉| 中文字幕免费在线看线人动作大片| 国产精品偷伦视频观看免费| 十八禁的黄污污免费网站| g0g0人体全免费高清大胆视频| 中文字幕一区二区免费| 亚洲视频在线观看免费| 4hu四虎最新免费地址| 香蕉免费一级视频在线观看| 小草在线看片免费人成视久网| 中文字幕av无码无卡免费| 久久国产精品萌白酱免费| 成人免费视频69| 国产乱色精品成人免费视频| 中文字幕亚洲一区二区va在线| 亚洲av无码不卡一区二区三区| 亚洲偷自精品三十六区| 亚洲精品视频在线观看免费| 亚洲熟妇无码AV|