| 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.
|
I cannot find any article on this Knowledge Base that can solve my issues. What should I do?
Viewed 4309 times since Mon, Apr 30, 2012
Will my Crystal Report X (Crystal Report 10) work on your server?
Viewed 2835 times since Tue, May 1, 2012
My .CSHTML site is not working. What did I do wrong here?
Viewed 4278 times since Thu, May 3, 2012
I am unable to renew my Let’s Encrypt SSL
Viewed 2660 times since Thu, Aug 23, 2018
How can I publish my website to your server?
Viewed 7899 times since Mon, Apr 30, 2012
My website session times out earlier than expected. Why?
Viewed 5137 times since Tue, May 1, 2012
Monitoring Tools For Windows
Viewed 1163 times since Wed, Jul 13, 2022
Can I have more than one MS SQL database on my hosting account?
Viewed 3892 times since Tue, May 1, 2012
Do you support Remote MSSQL connection?
Viewed 3968 times since Mon, Apr 30, 2012
Can I have one database user associated to more than 1 MS SQL database?
Viewed 3506 times since Tue, May 1, 2012
|
