Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server CE / January 2008

Tip: Looking for answers? Try searching our database.

sqlce 3.5 won't run on asp.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 13 Dec 2007 18:53 GMT
My app is working on my local system with the vs2008 development server. It's an asp.net app and I added the line:
           AppDomain.CurrentDomain.SetData("SQLServerCompactEditionUnderWebHosting", true);

So it works fine on my system. But I can't get it to work on shared hosting. I have uploaded all the sqlce 3.5 dlls to the bin directory. I am stuck at the error:

Access to the database file is not allowed. [ File name =  ]

There actually is a file name in the connection string, and I set the permissions wide open on App_Data and the file to test this.

(I know sqlce 3.5 is not recommended for asp.net, but it is not the main site database but is used for a setup database utility to be installed for a windows app.)
Jason Short - 08 Jan 2008 23:13 GMT
> So it works fine on my system. But I can't get it to work on shared
> hosting. I have uploaded all the sqlce 3.5 dlls to the bin directory. I am
> stuck at the error:
> (I know sqlce 3.5 is not recommended for asp.net, but it is not the main
> site database but is used for a setup database utility to be installed for
> a windows app.)

You can't set that on a shared host.  The shared hosting provider would have
to do it for you, and they won't.  It is against the TOS for SQL CE.

"not recommended" is putting it lightly.  By default it will not run.  If
you have to specifically override the default behavior, and even then MS
says to do it at your own risk.  A shared hosting provider is not going to
let you do that.

Use another file based database engine for .net.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.