I built a website with Razor Syntax and upload it to the shared hosting at Godaddy , I uploaded the assemblies of webpages and razor , and when i tried to explore it with SQL compact edition 4.0 i recived this error msg from catch ..
Access to the database file is not allowed. [ 1884,File name = D:\Hosting\6862932\html\info\App_Data\Hello World.sdf,SeCreateFile ]
I contacted them , they told me that i have to upload the assemblies of Razor syntax , i did and .cshtml pages worked well !! ,.. the problem is to use SQL compact edition there !! .. I tried to upload the assemblies of and couldn't find it solve !!
I tried this solution , and gave the folder the write / read permission , but same error !!
Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the
assembly reference. (Exception from HRESULT: 0x80131040)
Thanx alot for advice , I found the solution is to make Deploment for ASP.Net Razor Syntax and SQL Compact Edition at the Visual Studio , then to make the folder APP_Data with read / write permissions .. everything are ok now ^_^
I'm having the exact same problem with GoDaddy. I get the error: Access to the database file is not allowed. [ 1884,File name = D:\Hosting\8077792\html\App_Data\SqlCeAspnetdb.sdf,SeCreateFile ]
I added read/write permissions to my app_data folder, but still get the same error.
Can you describe your solution? Thanks in advance.
First be sure to upload the dll's of the web pages rayzor syntax at the bin folder of the website .
open the hosting folders throught the FTP File Manager at the browser , then select the App_Data folder which contains the SQL CE file , change the permission for write and read permissions , then try to re-open the web page .
Mohamad Jawa...
Member
70 Points
30 Posts
Access to the database file is not allowed !!
Jul 09, 2011 12:10 PM|LINK
Hi friends ..
I built a website with Razor Syntax and upload it to the shared hosting at Godaddy , I uploaded the assemblies of webpages and razor , and when i tried to explore it with SQL compact edition 4.0 i recived this error msg from catch ..
Access to the database file is not allowed. [ 1884,File name = D:\Hosting\6862932\html\info\App_Data\Hello World.sdf,SeCreateFile ]
what i have to do ?!
ignatandrei
All-Star
137649 Points
22143 Posts
Moderator
MVP
Re: Access to the database file is not allowed !!
Jul 09, 2011 02:18 PM|LINK
ignatandrei
All-Star
137649 Points
22143 Posts
Moderator
MVP
Re: Access to the database file is not allowed !!
Jul 09, 2011 02:18 PM|LINK
Mohamad Jawa...
Member
70 Points
30 Posts
Re: Access to the database file is not allowed !!
Jul 09, 2011 02:33 PM|LINK
I contacted them , they told me that i have to upload the assemblies of Razor syntax , i did and .cshtml pages worked well !! ,.. the problem is to use SQL compact edition there !! .. I tried to upload the assemblies of and couldn't find it solve !!
chohmann
Star
9385 Points
1644 Posts
Re: Access to the database file is not allowed !!
Jul 10, 2011 05:40 AM|LINK
http://www.learnonlinewithme.com/2011/05/getting-access-to-database-file-is-not.html
Mohamad Jawa...
Member
70 Points
30 Posts
Re: Access to the database file is not allowed !!
Jul 10, 2011 10:00 AM|LINK
I tried this solution , and gave the folder the write / read permission , but same error !!
Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Topspy
Contributor
3913 Points
836 Posts
Re: Access to the database file is not allowed !!
Jul 11, 2011 12:35 AM|LINK
Have you tried to grant Asp.net user full permissions?
Asp.net Hosting | Windows Hosting | SQL Server Hosting
Mohamad Jawa...
Member
70 Points
30 Posts
Re: Access to the database file is not allowed !!
Jul 11, 2011 06:28 AM|LINK
Thanx alot for advice , I found the solution is to make Deploment for ASP.Net Razor Syntax and SQL Compact Edition at the Visual Studio , then to make the folder APP_Data with read / write permissions .. everything are ok now ^_^
Thanx alot for help
RPagels
Member
4 Points
2 Posts
Re: Access to the database file is not allowed !!
Aug 10, 2011 06:27 PM|LINK
Hi Mohamad,
I'm having the exact same problem with GoDaddy. I get the error: Access to the database file is not allowed. [ 1884,File name = D:\Hosting\8077792\html\App_Data\SqlCeAspnetdb.sdf,SeCreateFile ]
I added read/write permissions to my app_data folder, but still get the same error.
Can you describe your solution? Thanks in advance.
Randy
Mohamad Jawa...
Member
70 Points
30 Posts
Re: Access to the database file is not allowed !!
Aug 10, 2011 07:14 PM|LINK
Mr. RPagels ..
First be sure to upload the dll's of the web pages rayzor syntax at the bin folder of the website .
open the hosting folders throught the FTP File Manager at the browser , then select the App_Data folder which contains the SQL CE file , change the permission for write and read permissions , then try to re-open the web page .