一台SQL SERVER 2016 (WINDOWS 2016) VM環境
在某天突然以IP方式無法連線DB,造成網站顯示
測試了一下,在那台SQL SERVER 主機以SSMS 無法用IP連線,但用主機名稱可以連線。
怪哉???
網卡只開了IPV4,而且在外部用一台WIN10 機器也是以SSMS用IP或主機名稱連線又都是正常的。
更是怪哉???
最後將主機的網卡停用再啟用後 ,竟然就不藥而癒了。
2020年3月2日 星期一
hidden administrative network share
hidden administrative network share這中文叫啥?? 我也不知,就是打了\\computername\c$
在某天就突然沒法用了.
顯示的訊息如下
無法存取 \\computername\c$。您可能沒有使用這個網路資源的權限。請連絡這個伺服器的系統管理員,了解您是否有存取權限。
連結到系統的某個裝置失去作用。
找到這篇文章 https://cormang.com/2018/01/06/enable-c-admin-share-windows-10-server-2016/
執行以下指令,然後重開機。
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
我的人生就是不斷的在找尋無法原創~哈哈。
2020年2月18日 星期二
windows 2016 安裝freeSSHd無法啟動
在windows 2016 作業系統安裝 freeSSHd 1.3.1版,開啟"C:\Program Files (x86)\freeSSHd\FreeSSHDService.exe"後顯示以下訊息。
You don't have administrator rights! freeSSHd will close!
參考這篇文章http://osskb.blogspot.com/2013/10/how-to-resolve-you-dont-have.html
在留言中看到提供的解決方法。
1.不要使用Administrator 安裝。一般作業系統都會建立第二個具Administators群組權限的帳號,使用這個帳號安裝。
2.安裝過程中會詢問是否建立FreeSSHDService的服務,故完成安裝後到控制台\所有控制台項目\系統管理工具\服務,將此服務的登入者資訊改為步驟1所建立的使用者。
3.最後在右下方icon 將目前已開啟的sftp server unload,然後再重開一次。不然建立使用者或更改設定時好像怪怪,明明建好的user再進入查看時都不見了。
最後,下載winscp工具進行連線測試。
免費的server功能陽春,無法依使用者建立個別目錄,但不用錢,加減用。
You don't have administrator rights! freeSSHd will close!
參考這篇文章http://osskb.blogspot.com/2013/10/how-to-resolve-you-dont-have.html
在留言中看到提供的解決方法。
1.不要使用Administrator 安裝。一般作業系統都會建立第二個具Administators群組權限的帳號,使用這個帳號安裝。
2.安裝過程中會詢問是否建立FreeSSHDService的服務,故完成安裝後到控制台\所有控制台項目\系統管理工具\服務,將此服務的登入者資訊改為步驟1所建立的使用者。
3.最後在右下方icon 將目前已開啟的sftp server unload,然後再重開一次。不然建立使用者或更改設定時好像怪怪,明明建好的user再進入查看時都不見了。
最後,下載winscp工具進行連線測試。
免費的server功能陽春,無法依使用者建立個別目錄,但不用錢,加減用。
2020年1月15日 星期三
windows 2016裝機摘要
今天安裝了一台windows 2016 + SQL Server 2016外加.net core的網站。
net core以前都是同事安裝,今天我連同主機+DB一次安裝,覺得過程好繁鎖,所以記錄一下
SQL Server 2016因為要使用Analysis Services功能,所以安裝了企業版,主要原因是為了以後可切3個以上的Partition,因為標準版只有支援3個Partition,這年頭應該沒什麼人在用CUBE這東西了吧,但用他來做政府單位的統計報表,我覺得很方便。
裝完主機+DB後,開始設定網站。先設定OLAP,主要是要使用http olap來連接CUBE,可以參考https://docs.microsoft.com/en-us/analysis-services/instances/configure-http-access-to-analysis-services-on-iis-8-0,這個功能SQL 2000以來就有支援,好處是不用綁windows帳號就可以連接Analysis Server,缺點則是在安全性上要做好控管。
再來設定.net core,主要是要安裝.net core runtime 和Hosting Bundle Installer
進入https://dotnet.microsoft.com/download/dotnet-core/
選擇所需的版本後,下載 Hosting Bundle。
安裝完執行iisreset 重啟網站。
大功告成。
net core以前都是同事安裝,今天我連同主機+DB一次安裝,覺得過程好繁鎖,所以記錄一下
SQL Server 2016因為要使用Analysis Services功能,所以安裝了企業版,主要原因是為了以後可切3個以上的Partition,因為標準版只有支援3個Partition,這年頭應該沒什麼人在用CUBE這東西了吧,但用他來做政府單位的統計報表,我覺得很方便。
裝完主機+DB後,開始設定網站。先設定OLAP,主要是要使用http olap來連接CUBE,可以參考https://docs.microsoft.com/en-us/analysis-services/instances/configure-http-access-to-analysis-services-on-iis-8-0,這個功能SQL 2000以來就有支援,好處是不用綁windows帳號就可以連接Analysis Server,缺點則是在安全性上要做好控管。
再來設定.net core,主要是要安裝.net core runtime 和Hosting Bundle Installer
進入https://dotnet.microsoft.com/download/dotnet-core/
選擇所需的版本後,下載 Hosting Bundle。
安裝完執行iisreset 重啟網站。
大功告成。
2019年7月27日 星期六
自動更新Let's Encrypt SSL
2018年中華電信有個很便宜的泛用型英文網域名稱(.tw)方案,我也申請了一個,用IIS 10.0架了一個自已測試用的網站。
之後也到Let's Encrypt SSL 去申請了SSL的憑證,但每三個月就要重新更新一次,每次都是手動更新,覺得有點麻煩。
這次又到期了,在更新的過程中,大概是太久沒使用我的網域了,結果不讓我手動下載更新憑證的檔案,要我等3個小時再試。
我等了一天後,剛好又看到一篇自動更新憑證的教學(http://my01info.blogspot.com/2017/09/iislets-encrypt-ssl.html),文章中使用的版本還是letsencrypt.exe的說明,但我下載的已是V2.0.8,已經改為wacs.exe,但參數使用說明一樣,很好理解。
先到https://github.com/PKISharp/win-acme/releases 下載最後的版本
解壓縮後直接點選執行wacs.exe,出現以下的選單畫面

就選N先建立一個憑證,再選1 繫結IIS 網站即可。
最後完成後,可以選R: Renew scheduled,會自動在WINDOWS的排程中幫你建立一個每天檢查是否將到期並自動更新憑證的排程。
覺得好方便啊。
之後也到Let's Encrypt SSL 去申請了SSL的憑證,但每三個月就要重新更新一次,每次都是手動更新,覺得有點麻煩。
這次又到期了,在更新的過程中,大概是太久沒使用我的網域了,結果不讓我手動下載更新憑證的檔案,要我等3個小時再試。
我等了一天後,剛好又看到一篇自動更新憑證的教學(http://my01info.blogspot.com/2017/09/iislets-encrypt-ssl.html),文章中使用的版本還是letsencrypt.exe的說明,但我下載的已是V2.0.8,已經改為wacs.exe,但參數使用說明一樣,很好理解。
先到https://github.com/PKISharp/win-acme/releases 下載最後的版本
解壓縮後直接點選執行wacs.exe,出現以下的選單畫面
就選N先建立一個憑證,再選1 繫結IIS 網站即可。
最後完成後,可以選R: Renew scheduled,會自動在WINDOWS的排程中幫你建立一個每天檢查是否將到期並自動更新憑證的排程。
覺得好方便啊。
2019年3月17日 星期日
SSMS 2017 17.9.1 high memory然後就崩潰了
上週更新的V17.9.1 SSMS,隨便開啟一個script進行修改後,隔沒多久發現SSMS出現沒有回應的狀況,SSMS最後都會自動關閉再開啟。
原以為是新版本的問題,於是改安裝SSMS 2019 V18 Preview 7的版本,仍然會有相同的問題,也是開一個script撰寫沒多久後,工作管理員顯示HIGH MEMORY,其中SSMS佔用許多。
這個問題困擾了我好幾天,查看事件檢事器,也只有顯示 System.OutOfMemoryException。
Application: Ssms.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OutOfMemoryException
at System.Windows.LayoutEventList.CopyToArray()
at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object)
at System.Windows.Media.MediaContext+InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
在另一台電腦上版本還是SSMS V17.7,看來也沒啥問題,真讓人也崩潰了好幾天。
今天終於查到一篇回應,看起來和我的狀況類似。
https://superuser.com/questions/1195570/sql-server-management-studio-cpu-and-ram-usage-keeps-increasing-for-no-reason?answertab=votes#tab-top
立馬在Tool > Option > Enviornment >AutoRecover 把Save AutoRecover information every ...給關掉。
終於把這惱人的問題解決掉。
並沒有.....得要關掉intelligence才能解決,但沒了這個,感覺斷手斷腳,呵呵。
原以為是新版本的問題,於是改安裝SSMS 2019 V18 Preview 7的版本,仍然會有相同的問題,也是開一個script撰寫沒多久後,工作管理員顯示HIGH MEMORY,其中SSMS佔用許多。
這個問題困擾了我好幾天,查看事件檢事器,也只有顯示 System.OutOfMemoryException。
Application: Ssms.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OutOfMemoryException
at System.Windows.LayoutEventList.CopyToArray()
at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object)
at System.Windows.Media.MediaContext+InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
在另一台電腦上版本還是SSMS V17.7,看來也沒啥問題,真讓人也崩潰了好幾天。
今天終於查到一篇回應,看起來和我的狀況類似。
https://superuser.com/questions/1195570/sql-server-management-studio-cpu-and-ram-usage-keeps-increasing-for-no-reason?answertab=votes#tab-top
立馬在Tool > Option > Enviornment >AutoRecover 把Save AutoRecover information every ...給關掉。
並沒有.....得要關掉intelligence才能解決,但沒了這個,感覺斷手斷腳,呵呵。
2018年12月25日 星期二
windows 10下載目錄開啟慢..解決
由IBM ThinkPad T40開始使用電池問題用了一段時間就會快速沒電。好幾台T系統都是如此,不管有沒有使用原廠的電池工具來管理。
後來改用X250後也快2年了,說也奇怪,電池怎麼用都能充電放電維持在一個高檔上,沒有一個小時就把電耗光的問題。
搞不清楚差別在哪?
上面是題外話...................
最近發現在windows 10上,開啟下載目錄時,總會轉好久才出現目錄結構。原本以為是X250中的ADATA M.2 2242 卡造成的。因為有時M.2卡會秀逗抓不到。
今天買了一條Transcentd SSD Enclosure Kit CM80S,把M.2拆下來改裝在轉接卡上。原本以為可以解決下載目錄開啟後顯示檔案結構很慢的問題。但發現一點改變都沒有。
看到這篇文章提到,解決了我的困擾,開啟目錄的速度變得很正常。
在下載目錄>>滑鼠右鍵選內容>自訂頁籤,在最佳化此資料夾下,將圖片改為一般項目。
https://www.impochun.com/blog/2018/06/21/win10-slove-download-floder-slow-open/
又看到另外一篇,也順便解決我之前一直想要做的。就是將最近開過的檔案,不要顯示在最近使用過的檔案中,對我來說,這真的很礙眼,哈哈。
在檔案總管的工具列中,進入檢視>>選項下,在一般頁籤中,有個隱私權,把二個快速存取的功能項移除,然後再點選清除鍵。
喔喔... 討人厭的最近開過的檔案不見了.....
https://blog.miniasp.com/post/2016/12/29/Windows-10-Explorer-Slow-problem-and-solution.aspx
後來改用X250後也快2年了,說也奇怪,電池怎麼用都能充電放電維持在一個高檔上,沒有一個小時就把電耗光的問題。
搞不清楚差別在哪?
上面是題外話...................
最近發現在windows 10上,開啟下載目錄時,總會轉好久才出現目錄結構。原本以為是X250中的ADATA M.2 2242 卡造成的。因為有時M.2卡會秀逗抓不到。
今天買了一條Transcentd SSD Enclosure Kit CM80S,把M.2拆下來改裝在轉接卡上。原本以為可以解決下載目錄開啟後顯示檔案結構很慢的問題。但發現一點改變都沒有。
看到這篇文章提到,解決了我的困擾,開啟目錄的速度變得很正常。
在下載目錄>>滑鼠右鍵選內容>自訂頁籤,在最佳化此資料夾下,將圖片改為一般項目。
https://www.impochun.com/blog/2018/06/21/win10-slove-download-floder-slow-open/
又看到另外一篇,也順便解決我之前一直想要做的。就是將最近開過的檔案,不要顯示在最近使用過的檔案中,對我來說,這真的很礙眼,哈哈。
在檔案總管的工具列中,進入檢視>>選項下,在一般頁籤中,有個隱私權,把二個快速存取的功能項移除,然後再點選清除鍵。
喔喔... 討人厭的最近開過的檔案不見了.....
https://blog.miniasp.com/post/2016/12/29/Windows-10-Explorer-Slow-problem-and-solution.aspx
訂閱:
文章 (Atom)
VS CODE離線安裝套件方式-續
去年 vscode離線安裝 powershell nupkg 今年在一台無外網的 windwos 2025上安裝時遇到了powershell版本一直讀取到了5.1的版本,鬼打牆了一下午,在VM還原重測測了好幾回,應該是可行了。 將下載到的免安裝powershell 解壓縮到...
-
一個老舊的aspx web form專案,調了一些功能建置成功,但進行部署時顯示以下錯誤。 在應用程式層級之外使用註冊為 allowDefinition='MachineToApplication' 的區段發生錯誤。錯誤的原因可能是虛擬目錄尚未在 IIS 中設定為...
-
freeFTPd是套免費的SFTP SERVER支援22 port SFTP及21port FTP,一般找到免費的都不支援SFTP只有技援FTPS。 之前一直有個困擾在幾台主機安裝後,有幾台重開機後,SFTP SERVER必須手動去啟動,一直以來老是搞不懂為什麼,今天看到一篇文...
-
Row.Cells[2].Text == "abc" ? "ok" : "not ok" ; 或加入Microsoft. VisualBasic 參考使用 vb namespace using Microsoft...