Skip to main content

Why do I receive the error “SQL Server Compact 4.0 SP1 mandatory prerequisite was not correctly installed” when trying to install Lasernet? - Knowledgebase / Lasernet / Lasernet FAQs - Formpipe Support Portal

Why do I receive the error “SQL Server Compact 4.0 SP1 mandatory prerequisite was not correctly installed” when trying to install Lasernet?

Authors list

Sometimes, when installing Lasernet v7 and above, the required component SQL Server Compact 4.0 SP1 x64 fails to install. This is due to one of the .NET configuration files becoming corrupt.

Microsoft provides a copy of the default machine.config file in order to resolve the issue by following these steps:

1. Navigate to C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG.

2. Rename ‘machine.config’ to ‘machine.config.bak’

3. Create a copy of ‘machine.config.default’ with the name ‘machine.config’.


x64-bit Machines

If the affected machine is x64-bit then follow these steps:

1. Navigate to C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG.

2. Rename ‘machine.config’ to ‘machine.config.bak’.

3. Create a copy of ‘machine.config.default’ with the name ‘machine.config’.


If you had previously edited this file to prevent .NET from looking up Certificate Revocation Lists, then this will need to be reapplied.
Helpful Unhelpful

1 of 2 people found this page helpful

Share