Showing posts with label solved. Show all posts
Showing posts with label solved. Show all posts

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


Sunday, May 22, 2016

Success: Compiling LESS into CSS with Visual Studio 2015 via Web Compiler.

From the last time, I got disappointed for not successful in trying to produce a CSS file from a LESS using Web Compiler.

Reference: Attempt Compiling LESS into CSS with Visual Studio 2015 via Web Compiler.

I also tried the Bundle Transformer: LESS. but misunderstood that its a translator, not a compiler.

But this morning, after turning on my laptop, I open my last project. I try to re-compile my LESS file, of course using the Web Compiler. So strange because it works. It even generates the minified css.

Whats happening? I remember that I had restarted the Visual Studio many times. Do I have to restart my laptop? Is that it? I should think about that sooner. Wasted my precious hours on nothing. Arrgh.

By the way, I'm happy that it works. The usage is so easy.


ps: today I learned a very valuable lesson - restart my PC fist if any problem occur.

Tuesday, May 17, 2016

OLEDB error. "Operation must use an updatable query."

At one time I published a web project that used OLEDB to connect to Ms Access and update some data I got an error "Operation must use an updatable query."

Some googling reached me on this site: “Operation must use an updateable query” error in MS Access

The chosen as answer doesn't really solve my problem. but the second answer really solve it.

The Answer:

There is no error in the code, but the error is thrown due to the following:
 - Please check whether you have given Read-write permission to MS-Access database file.
 - The Database file where it is stored (say in Folder1) is read-only..? 
suppose you are stored the database (MS-Access file) in read only folder, while running your application the connection is not force-fully opened. Hence change the file permission / its containing folder permission like in C:\Program files all most all c drive files been set read-only so changing this permission solves this Problem.
So I change the permission on my folder (App_Data) that stored my Ms Access database to full control.
Problem solved.

Monday, May 16, 2016

Problem with "Application identity is not set". (solved?)

Today I got a problem when I test my application. I commonly build my application then run it from the "debug" or "release" folder in my VirtualBox.

After some googling, I learn that the cause of the problem comes from this code:

lblVersion.text = Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString
Reference: How to show program version in your form?

Sunday, May 15, 2016

Include the project2.exe.config info in a reference executable in .NET?

I have a problem in a referenced project where the project2.exe.config file for a referenced project in not included in the project. Every time I must copy the project2.exe.config file into my project manually to make it works.

Tried googling and found this:

I have one executable project, let's say A, which is launching another executable project Bin the run. In order to have a B.exe in A's current working folder, I add B as A's reference so that after the compilation a B.exe will be copied into A's folder. However, I noticed the configuration that I make for B is not copied or generated in A's folder (there is no B.exe.config file in A's folder, only B.exe), and hence the stuff such as tracing for B is not configured correctly.
I can of course copy the B.exe.config manually to A's folder, but I bet there is some automatic way to do that. Could anybody help me?

Reference: How to include the App.config info in a reference executable in .NET?