I learned many thing but forgets many things too. Writing a simple blog as a journal is a good start to keep what I've learned.
I'm using Microsoft Visual Studio with Visual Basic as my language.
Monday, February 19, 2018
Asp.net Type 'Web User Control" is not defined.
Problem with intellisense in Visual Studio 2017 when adding a Web User Control dynamically.
To solve this problem, just try registering your control at the page you are adding it to.
Wednesday, January 3, 2018
Asp.Net Identity SQLite Provider on Empty Web Forms project
Previously, I installed the Asp.Net Identity SQLite on a non-empty Web Form Project. This time, I'll try installing it on an Empty Web Form project so I can minimize the Nuget packages installed and I can learn which Nuget packages it depends on.
Firstly, I create a ASP.NET Empty Web Site targeting .Net Framework 4.7.1
Firstly, I create a ASP.NET Empty Web Site targeting .Net Framework 4.7.1
Then on Nuget Package Manager for Solution, Uninstall all the Nuget Packages. This will make it truely empty Web Form project.
Monday, January 1, 2018
Asp.Net Identity SQLite Provider on a Web Forms project
Mostly, the tutorial or sample I found from googling was for MVC and C#. So I decided to install the Asp.Net.Identity.SQLite by following the guide from MVC then modify it to work for Web Forms then convert it to VB.
I'm using Visual Studio 2017.
Create a new ASP.NET Web Forms Site project, targeting .Net Framework 4.7.1
I'm using Visual Studio 2017.
Create a new ASP.NET Web Forms Site project, targeting .Net Framework 4.7.1
Sunday, December 31, 2017
Unable to load DLL 'SQLite.Interop.dll': The specified module could not be found
Happens when installing nuget package System.Data.SQLite.Core.
Easy solution on my part:
- Copy the 'SQLite.Interop.dll' from the "packages\System.Data.SQLite.Core.1.0.106.0\build\net45\x86\SQLite.Interop.dll"
- Paste it into the 'Bin' folder
I am using Visual Studio 2017, Webform project targeting .net 4.5
Location:
Malaysia
Tuesday, May 24, 2016
Run Program as Administrator programmatically
I need to run a program as Administrator programmatically.
Fortunately googling this was so easy. Found this one:
Run Program As Administrator in vb.net
Open the Project Properties then click on View Windows Setting button. It will open the app.manifest file.
Fortunately googling this was so easy. Found this one:
Run Program As Administrator in vb.net
Open the Project Properties then click on View Windows Setting button. It will open the app.manifest file.
Using Squirrel to replace ClickOnce
Installing Squirrel
While I was searching for a way to make ClickOnce deploy easier after all hardship about certificate and identity errors, I bump into Squirrel.Windows. Thanks to Travis's comment in this question: Deploy a ClickOnce application without signing. Even though no one answer that was Marked ans Answer (yet at the time), the comments really help to give me an idea about some alternatives.
I create a new project that target a .Net Framework 3.5 and start searching for it in the Manage Nuget Packages for Solution.Current latest stable version is 1.4.0. I install it right away.
Create a new Nuget Package for my Visual Studio Application
To create a new Nuget Package, I must install the Nuget Package Explorer. If uses Internet Explorer, it will run immediately to install if click the Download button.
This is when I run it:
1. I just have to create a new package (Ctrl+N).
This is when I run it:
1. I just have to create a new package (Ctrl+N).
Subscribe to:
Posts (Atom)