1. ASUS X450J @ Windows 10 x64 VS2017
2. Ref: https://github.com/surban/PLplotNet/blob/master/Samples/CSharp/SineWaves/Program.cs
3. Ref: https://docs.microsoft.com/zh-tw/dotnet/machine-learning/tutorials/taxi-fare
Console.WriteLine("Showing chart...");
var p = new Process();
string chartFileNamePath = @".\" + "SineWaves.png";
p.StartInfo = new ProcessStartInfo(chartFileNamePath)
{
UseShellExecute = true
};
p.Start();
4. 5.13.7 error 無法載入 DLL 'plplot
5. Change into 5.13.4
Any CPU
System.BadImageFormatException: '試圖載入格式錯誤的程式。 (發生例外狀況於 HRESULT: 0x8007000B)'
6. x64 OK
2018年10月30日 星期二
2018年10月23日 星期二
Failed to load dae file: the server responded with a status of 404 ()
1. asp.net core failed to load dae file and the server responded with a status of 404 ().
2. Add mime type as follows
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
//app.UseStaticFiles();
var provider = new FileExtensionContentTypeProvider();
// Add new mappings
provider.Mappings[".dae"] = "application/octet-stream"; // "text /xml";
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(
Path.Combine(Directory.GetCurrentDirectory(), "wwwroot")),
RequestPath = "",
ContentTypeProvider = provider
});
}
3. 一旦可以讀取dae檔案,再移除mime type,仍可以載入dae檔案。
2. Add mime type as follows
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
//app.UseStaticFiles();
var provider = new FileExtensionContentTypeProvider();
// Add new mappings
provider.Mappings[".dae"] = "application/octet-stream"; // "text /xml";
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(
Path.Combine(Directory.GetCurrentDirectory(), "wwwroot")),
RequestPath = "",
ContentTypeProvider = provider
});
}
3. 一旦可以讀取dae檔案,再移除mime type,仍可以載入dae檔案。
訂閱:
文章 (Atom)