| Home » Categories » Multiple Categories |
I receive this error message: "Unknown file type (binary data)" when trying to deploy my SQL CE database. What did I do wrong? |
|
Article Number: 113 | Rating: 5/5 from 1 votes | Last Updated: Thu, May 3, 2012 at 11:40 PM
|
If you receive this error message, please try adding the following line to your web.config file: <identity impersonate="true" userName="XXXXXXXXX" password="XXXXXX" />
This line should be added inside the tag <system.web> </system.web>. Username and password can be your login credentials for the system.
Therefore, the following is the whole web.config-content with which everything works:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SqlServerCe.4.0" />
<add invariant="System.Data.SqlServerCe.4.0" name="Microsoft® SQL Server® Compact 4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</DbProviderFactories>
</system.data>
<system.web>
<identity impersonate="true" userName="???" password="???" />
</system.web>
</configuration>
Please note that our Control Panel does not really accept the .cshtml-files (webpages) and the .sdf-file (database) and you will always see the error message: "Unknown file type (binary data)". However, please just ignore the error message and by following the above guideline, everything will work as expected.
|
Attachments
There are no attachments for this article.
|
How to Deploy and host .Net Core 2 and Angular 6 app
Viewed 13355 times since Tue, Oct 23, 2018
Can you grant SELECT PRIVILEGE to the system table mysql.proc
Viewed 6390 times since Mon, Jun 18, 2012
Do you support MS SQL WebAdmin access?
Viewed 5744 times since Tue, May 1, 2012
I am unable to renew my Let’s Encrypt SSL
Viewed 2660 times since Thu, Aug 23, 2018
Common reasons why your application pool may unexpectedly recycle
Viewed 8710 times since Tue, May 15, 2012
I cannot browse to my site via the IP Address directly. What is wrong?
Viewed 4732 times since Mon, May 7, 2012
Can i login to my MySQL database via my own mySQL tool?
Viewed 3255 times since Mon, May 7, 2012
Do you support ASP.NET 5?
Viewed 10245 times since Wed, Feb 17, 2016
You informed me that my Crystal Report has been configured, why do I still receive an error message?
Viewed 3167 times since Tue, May 1, 2012
Will my Crystal Report XI (Crystal Report 11) work on your server?
Viewed 2866 times since Tue, May 1, 2012
|
