31 articles ASP.NET

Telerik Reporting: Safe handle has been closed

Problem Saat membuka halaman yang berisi report yang menggunakan Telerik Reporting, muncul error “Safe handle has been closed”. Analisis* Saat masuk ReportsController.cs, construct ReportsBaseController.cs, fungsi GetUserIdentity mengambil property dari System.Web.HttpContext.Current.User.Identity. Sedangkan Identity.Name sudah disposed, sehingga tidak bisa diakses. *) Analisis ini tidak eksklusif sesuai dengan problem yang ditemukan. Menurut saya, problem serupa mungkin saja terjadi…

IIS Free SSL Certificate Using Let’s Encrypt Authority X3

Berikut langkah-langkah untuk mendapatkan SSL Certificate Let’s Encrypt Authority X3: Buka Internet Information Service (IIS) Manager Pilih website (pada contoh ini yang dipilih adalah Default Web Site) lalu klik Bindings Pilih Add Isi Host name, check Require Server Name Indication, pilih SSL certificate pada contoh ini default certificate nya adalah WMSVC-SHA2 (ada kemungkian berbeda setiap…

Enabling Windows Authentication

Setting web app Buka IIS, pilih web app yang akan diubah menjadi windows authentication Pada bagian “IIS”, pilih “Authentication” Ubah “Windows Authentication” menjadi “Enabled” Jika tidak ada pilihan Windows Authentication, install dulu melalui: Turn Windows feature on or off (untuk Windows Server, melalui Server Manager) Buka Internet Information Services > World Wide Web Services >…

Configuration WSDL Pertamina

Untuk bisa menggunakan wsdl pertamina yang menggunakan authentication kita harus menambahkan beberapa baris code baik di c# dan di web.confignya untuk code c# untuk web.config pada setting web.config nya kita bisa mengatur security mode, client credential type beserta proxy credential typetetapi harus diperhatikan bahwa settingan pada sisi client bergantung pada code service yg dibuatuntuk lebih…

Embed Sql Server Reporting Services (SSRS) Inside ReportViewer

SSRS dapat berupa native dan integrated sharepoint. Kita dapat meng-embed SSRS di dalam ASP webform menggunakan tools ReportViewer. Cara meng-embed berbeda untuk SSRS native dan integrated sharepoint. Native Insert ReportViewer, isi “ReportViewer Tasks” Cara mendapatkan Report Server Url: 1. Buka “SQL Server xxxx Reporting Services Configuration Manager” 2. Buka tab “Web Service Url” 3. Url…

Synchronous vs Asynchronous Methods in ASP.NET

Synchronous Method Stopwatch application: Result: 3.506 s Google chrome benchmark: Result: 3.42 s Asynchronous Method Stopwatch application: Result: 1.143 s Google chrome benchmark: Result: 1.40 s References Tutorial can be read here Sample project can be found here Conclusion So far, a lot of attention has been paid on how to use async, but there…

Using API Slack in ASP.Net MVC

Untuk menggunakan Method-method yang ada di API Slack, maka perlu integrasi dan authorization antara API Slack dan MVC Application, untuk mengintegerasikannya diperlukan sebuah penghubung antara keduanya, penghubung di sini berupa Slack Apps. Berikut langkah-langkah untuk membuat Slack Apps klik link slack apps  untuk membuat aplikasi slack. Isi bagian Basic Information Isi bagia Oauth & Permissions isi field Redirect URL dengan Url web aplikasi kita, yang nantinya berfungsi…