發表文章

目前顯示的是有「dotnet」標籤的文章

SignalR 入門案例-1

  參考官方的文件 https://blogs.msdn.microsoft.com/msdntaiwan/2013/09/09/signalr-web-web/ 。已經有些過時。暫時還沒有其它入門案例,先由這裡開始 使用工具VS2005 開啟新的Web專案(Net 4以上) 使用NuGet取得  Microsoft.AspNet.SignalR.Sample 試執行,果然有些歷史了 要調整的地方有二方面 SignalR初始啟動設置 新增class,用於加入初始啟動 using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.Owin; using Owin; [assembly: OwinStartup(typeof(demo_csharp_singleR.SingleRStart), "Configuration")] namespace demo_csharp_singleR {     public class SingleRStart     {         public void Configuration(IAppBuilder app)         {             Microsoft.AspNet.SignalR.StockTicker.Startup.ConfigureSignalR(app);         }     } }   前台js引用 StockTicker.html <!...

MS.MVC 和 Newtonsoft.Json (json.net) 的版本不相容問題

MS.MVC 和 Newtonsoft.Json (json.net) 的版本不相容問題 Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' 狀況 MS.MVC4 裡有引用到Newtonsoft.Json version=4.5.0.0 Newtonsoft.Json 最新版已到9 or upper 使用.Net Framework 4,對應的版本只到8。目前開發用到8.0.3 使用.Net Framework 4.5.1,對應的版本到9 (未使用Nuget) 直接copy path取得Newtonsoft.Json。 所以未看到在web.config裡自動加入 assemblyBinding\dependentAssembly 片段指示   修正方式   1.最快且方便的方法      在Package Manger Console裡重新取用Newtonsoft.Json Update-Package –reinstall Newtonsoft.Json      會自動對應可用版本,用這個方式可以直接省去比對的時間   2.或基本指示調整 web.config 裡加入元件版本引用指示 <configuration> <runtime>     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">         <dependentAssembly>             <assemblyIdentity name="Newtonsoft.Json"      ...

SignalR 入門案例-1

參考官方的文件 https://blogs.msdn.microsoft.com/msdntaiwan/2013/09/09/signalr-web-web/ 。已經有些過時。暫時還沒有其它入門案例,先由這裡開始 使用工具VS2005 開啟新的Web專案(Net 4以上) 使用NuGet取得  Microsoft.AspNet.SignalR.Sample 試執行,果然有些歷史了 要調整的地方有二方面 SignalR初始啟動設置 新增class,用於加入初始啟動 using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.Owin; using Owin; [assembly: OwinStartup(typeof(demo_csharp_singleR.SingleRStart), "Configuration")] namespace demo_csharp_singleR {      public class SingleRStart     {          public void Configuration(IAppBuilder app)         {              Microsoft.AspNet.SignalR. StockTicker.Startup.ConfigureSignalR(app);          }      } } 前台js引用 StockTicker.html...

SAP BAPI整合

與SAP整合依官方提供的方案,.Net 平台可以使用 SAP .Net Connector 。 2013年已經出到 Ver.3。 官方參考資源  https://websmp207.sap-ag.de/public/connectors 參考資源: Using the SAP.NET Connector to Connect your .NET Applications to SAP 和 Ver.2相比,架構差異很大。先研讀Concept會較得心應手