UWInfo Blog
發表新文章
[Join] | [忘記密碼] | [Login]
搜尋

搜尋意見
文章分類-Reiko
[所有文章分類]
  • ASP.NET (7)
  • ASP.NET2.0 (1)
  • ASP.NET4.0 (6)
  • JavaScript (5)
  • jQuery (3)
  • FireFox (1)
  • UW系統設定 (1)
  • SQL (11)
  • SQL 2008 (12)
  • mirror (4)
  • SVN (0)
  • IE (2)
  • IIS (5)
  • IIS6 (1)
  • 閒聊 (0)
  • W3C (0)
  • 作業系統 (1)
  • C# (3)
  • CSS (0)
  • FileServer (0)
  • HTML 5 (0)
  • CKEditor (1)
  • UW.dll (0)
  • Visual Studio (3)
  • Browser (1)
  • SEO (0)
  • Google Apps (1)
  • 網站輔助系統 (0)
  • DNS (5)
  • SMTP (0)
  • 網管 (0)
  • 社群API (0)
  • SSL (3)
  • App_Inventor (0)
  • URLRewrite (1)
  • 開發工具 (1)
  • JSON (1)
  • Excel2007 (0)
  • 試題 (0)
  • LINQ (1)
  • bootstrap (0)
  • Vue (0)
  • IIS7 (0)
  • foodpanda (0)
  • 編碼 (0)
  • 資安 (0)
  • Sourcetree (0)
  • MAUI (0)
  • CMD (0)
  • my sql (0)
所有文章分類
[Reiko的分類]
  • ASP.NET (48)
  • ASP.NET2.0 (15)
  • ASP.NET4.0 (34)
  • JavaScript (49)
  • jQuery (26)
  • FireFox (4)
  • UW系統設定 (3)
  • SQL (39)
  • SQL 2008 (25)
  • mirror (4)
  • SVN (4)
  • IE (9)
  • IIS (20)
  • IIS6 (1)
  • 閒聊 (7)
  • W3C (6)
  • 作業系統 (9)
  • C# (23)
  • CSS (12)
  • FileServer (1)
  • HTML 5 (11)
  • CKEditor (3)
  • UW.dll (13)
  • Visual Studio (16)
  • Browser (8)
  • SEO (1)
  • Google Apps (3)
  • 網站輔助系統 (4)
  • DNS (5)
  • SMTP (4)
  • 網管 (11)
  • 社群API (3)
  • SSL (4)
  • App_Inventor (1)
  • URLRewrite (2)
  • 開發工具 (6)
  • JSON (1)
  • Excel2007 (1)
  • 試題 (3)
  • LINQ (1)
  • bootstrap (0)
  • Vue (3)
  • IIS7 (3)
  • foodpanda (2)
  • 編碼 (2)
  • 資安 (3)
  • Sourcetree (1)
  • MAUI (1)
  • CMD (1)
  • my sql (1)
最新回應
  • dotnet ef dbcontext scaffold
    ...more
  • 線上客服 - MSN
    本人信箱被盜用以致資料外洩,是否可以請貴平台予以協助刪除該信箱之使用謝謝囉...more
  • 插入文字到游標或選取處
    aaaaa...more
  • dotnet ef dbcontext scaffold
    更新到最新版的 dotnet-ef tooldotnet tool update --global ...more
  • dotnet ef dbcontext scaffold
    還需要這個:Microsoft.EntityFrameworkCore.Design...more
  • dotnet ef dbcontext scaffold
    指定版本:dotnet add package Microsoft.EntityFrameworkC...more
  • SQL 2008 Mirror Setting
    有設定見證伺服器但在Principal掛掉卻不會自動轉到Mirror資料庫在DBC加上: Failo...more
  • SQL 2008 Mirror Setting
    最近更換機房後201重啟很久,造成有設定Mirror的資料庫一直處於復原中狀態,網站無法正常運作(可...more
  • Send Mail By gmail SMTP
    出現錯誤訊息:System.Net.Mail.SmtpException: SMTP 伺服器需要安全...more
  • [SQL]將多筆資料合併為一筆顯示(FOR XML PATH)
    實測發現長度只能到 2034 個字元所以太長的話會被截斷...more
標籤
  • [U2]
  • .
  • 0,
  • 874
  • -4293 UNIO
  • 單一使用者
  • 28
  • http 錯èª
  • 0
  • visual
  • 88.4rajb
  • 0 UNION AL
  • line
  • 移
  • [t]
  • c
  • en
  • ti
  • 66 order b
  • 5159
  • ie6
  • 250
  • 1
  • image,
  • admin ORDE
  • if
  • HTML5
  • CAST
  • ef
  • a
  • ie
  • 403 - Forb
  • AD
  • net2121121
  • MIBs
  • 浮水印
  • 15421
  • 44
  • zindex
  • sql2008
  • loopback
  • SecurityPr
  • cell
  • fdoug懶惰程式碼
  • sp_
  • asp
  • CK,
  • -5809
  • 912
  • DB
頁數 1 / 8 下一頁
HTTP 錯誤 403.503 - Forbidden
 
正常情形下,不應該出現需瀏覽目錄的錯誤訊息
如遇此錯誤,檢查IIS的IP位址及網域限制設定是否跑掉。
 
  
 
More...
Reiko, 2023/5/3 下午 01:54:53
dotnet ef dbcontext scaffold
錯誤訊息:
dotnet : 因為找不到指定的命令或檔案,所以無法執行。
位於 線路:1 字元:1
+ dotnet ef dbcontext scaffold "Host=xxxxxxxxxxxxx;CommandTimeout=500 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (因為找不到指定的命令或檔案,所以無法執行。:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
可能的原因包括:
  * 內建 dotnet 命令拼寫錯誤。
  * 您預計要執行 .NET 程式,但不存在 dotnet-ef。
  * 您預計要執行全域工具,但在 PATH 上找不到此名稱且開頭為 dotnet 的可執行檔。
 
解決方法:
重新安裝套件,安裝指令:dotnet tool install --global dotnet-ef


 

參考:
dotnet ef 找不到指定的命令
 
More...
Reiko, 2023/2/13 下午 04:36:03
VS 2022 套件管理器主控台 亂碼
Console主控台的輸出,只要是非英文,都會是亂碼呈現



情況:
 
解決方法:
輸入:[Console]::OutputEncoding = [System.Text.Encoding]::UTF8



 
 
參考:
一次解決CONSOLE主控台輸出中文亂碼的編碼問題
【茶包射手日記】PowerShell 串接 EXE 輸出中文變亂碼
More...
Reiko, 2023/2/13 下午 04:25:51
sessionStorage 跨分頁無法讀取
問題:
在開出新分頁後,無法讀取 sessionStorage 的資料


可能原因:
Chrome 某個版本,Stop cloning sessionStorage for windows opened with noopener
a标签_blank默认 rel="noopener" ,所以a标签需要加入rel=“opener” 而才能像window.open("同源页面")这种方式新开的页面会复制之前的sessionStorage


解決方法:
開新分頁前,加入 rel=“opener”參數即可。
例:
<a href="http://..." target="_blank" rel="opener">Link</a>

$(".hlkPrint").click(function () {
    $("form").setPostDataToStorage();

    $("form").attr("rel", "opener");
    $("form").attr("target", "_blank");
    $("form").attr("action", "xxxxx.aspx");
    $("form").submit();
});





參考:
面试官:你确定多窗口之间sessionStorage不能共享状态吗???
More...
Reiko, 2022/12/1 下午 05:57:23
HTTP 錯誤 413.1 - Request Entity Too Large
 


httpRuntime 加 maxRequestLength 沒作用, 請到 system.webServer 設定 maxAllowedContentLength
<system.webServer>
...
<security>
<requestFiltering>
    <!--1073741824 ==> 1GB-->
    <requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
...
</system.webServer>

 
More...
Reiko, 2021/3/25 下午 02:36:36
無法產生 ActiveX 控制項 '8856f961-340a-11d0-a96b-00c04fd705a2',因為目前的執行緒不是在單一執行緒 Apartment
C# PrintScreen to file

出現錯誤: 無法產生 ActiveX 控制項 '8856f961-340a-11d0-a96b-00c04fd705a2',因為目前的執行緒不是在單一執行緒 Apartment。
 
解決方法: 
@Page 加上 AspCompat="true" 即可。
強迫網頁由 STA 執行緒集區服務
More...
Reiko, 2020/9/4 上午 11:54:39
SQL Server 建立跨主機連線 DB LINK
從A主機DB直接讀取B主機的DB,使用圖形介面一直無法設定成功,改用SQL語法一下就搞定了。

操作界面: 



T-SQL:
 USE [master]
GO
EXEC master.dbo.sp_addlinkedserver
     @server = N'連線名稱',
     @srvproduct=N'SQLNCLI',
     @provider=N'SQLOLEDB',
     @datasrc=N'192.168.8.198\SQL2008'
GO

USE [master]
GO
EXEC master.dbo.sp_addlinkedsrvlogin
    @rmtsrvname = N'連線名稱',
    @locallogin = NULL ,
    @useself = N'False',
    @rmtuser = N'資料庫登入帳號',
    @rmtpassword = N'資料庫連線密碼'
GO


 
More...
Reiko, 2019/10/30 下午 03:45:41
SecurityProtocolType 未包含 Tls12 的定義
C# 專案出現'SecurityProtocolType' 未包含 'Tls11' 的定義錯誤
 
變更專案建置的.Net Framework版本為4.5以上即可。
 
 
More...
Reiko, 2019/9/27 上午 09:44:05
User-Agent
作業系統版本:Platform 



參考網址:
https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/compatibility/ms537503(v=vs.85)
More...
Reiko, 2018/10/4 上午 09:40:34
LINQ 用變數方式讀取欄位

        public void TEST(SEPM.SEPMDataContext oDC)
        {
            //一般 LINQ 寫法, 欄位只能寫死, 如:
            var Q = query.OrderBy(r => r.statusId).ToList();

            //若 OrderBy 的欄位不是固定的

            //方法一:條列
            var orderBy = "XXX";
            if (orderBy == "ownerId")
            {
                Q = Q.OrderBy(r => r.ownerId).ToList();
            }
            else if (orderBy == "endDate")
            {
                Q = Q.OrderBy(r => r.endDate).ToList();
            }

            //方法二:
            Q = Q.OrderBy(r => GetPropertyValue(r, orderBy)).ToList();
        }

        private object GetPropertyValue(object obj, string property)
        {
            System.Reflection.PropertyInfo propertyInfo = obj.GetType().GetProperty(property);
            return propertyInfo.GetValue(obj, null);
        }



參考:http://coderemind.blogspot.tw/2013/10/linq.html
More...
Reiko, 2018/4/20 上午 09:14:26
|< 12345678 >|
頁數 1 / 8 下一頁
~ Uwinfo ~