SQL Server CE v4 Bin Deployment
I'm trying to create a VERY simple test web application to get SQL CE4 and bin deployment nailed. It is proving difficult. I've read and I beieve followed all the various pieces of advice and guidelines Google could throw my way. Still no joy :-(
So I've got one ASP.Net web application (the default created by the VS2010 template) with a SQL CE4 database added to the App_Data folder. It has one table with two fields (identity and string). A data grid has been dropped on the About page and
connected to the database using a SQLDataSource. This shows the data ok. I run the webpage using the VS2010 IIS on my development PC and it works ok.
I follow the instructions for a bin deploy and copy the website to my test server (Windows Server 2008 R2 running IIS7). Access to the database is denied. My test server has a number of different websites deployed to it using various technologies; Silverlight,
ASP.Net, MVC3 (bin deployed) and they all work fine. I have set up this website just as I would any other.
I'm tired after a day of reading and banging my head on the table and going out for a beer! Perhaps I'll have a moment of clarity at the bar...
In the meantime, can anybody quickly build and deploy a similarly simple test web app just to confirm it's me in error and not the world please?
My development ecodustbin is Windows 7 Pro (64 bit) / VS2010 / Expression Studio all patched up to date including the Windows 7 SP1 which I applied first thing this morning (not a quick job). As I said the test server is just Windows Server Standard 2008
R2 with IIS7 (and also SQL Server 2008 R2).
I did try deploying to my external shared hosting platform just in case it was my test server configuration at fault, and the test application failed to work from there either.
Hopefully and probably this is just me not ticking a box or selecting something from a dropdown somewhere in VS2010 and when I sit down again tomorrow the answer will hit me like a wet fish. Here's hoping.
In the meantime, any comprehensive, clear, idiot-friendly instructions based on an actual working example would be great!
Cheers,
Glyn.
Hi Erik,
A new day, a new test app. As above, one ASP.Net web application by VS2010 template, one simple CE4 Db with one table with two fields (identity, string). One datagrid on the About page connected using SQLDataSource.
SQL CE dlls copied as instructed by your link above. Web.config changed as instructed in that link, but with System.Data.SqlServerCe version entry changed to 4.0.0.0 instead of v4.0.0.1.
Works fine on development machine, but when copied to server it results in this error message:
==============================================================
Access to the database file is not allowed. [ 1884,File name = D:\inetpub\CE4_03\App_Data\MyDb.sdf,SeCreateFile ]
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlServerCe.SqlCeException: Access to the database file is not allowed. [ 1884,File name = D:\inetpub\CE4_03\App_Data\MyDb.sdf,SeCreateFile ]
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlCeException (0x80004005): Access to the database file is not allowed. [ 1884,File name = D:\inetpub\CE4_03\App_Data\MyDb.sdf,SeCreateFile ]]
System.Data.SqlServerCe.SqlCeConnection.ProcessResults(Int32 hr) +24
System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent) +1612
System.Data.SqlServerCe.SqlCeConnection.Open() +52
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +123
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +319
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +92
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1618
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75
System.Web.UI.Control.EnsureChildControls() +102
System.Web.UI.Control.PreRenderRecursiveInternal() +42
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
===============================================================
So I'm back where I was yesterday! :-(
Any ideas? Have you tried reproducing the above very simple test application using all the current tools? I notice a lot of the articles are from last summer when people were testing using the CTP. I wonder whether something subtle has changed in the meantime?
Or maybe I'm just not doing something in VS2010 which is so obvious nobody mentions it?
Thanks for your thoughts,
Glyn.
Similar Messages
-
SQL Server 2012 Analysis Services Deployment Wizard broken after SP1
I have installed SQL Server 2012 SP1, now I cannot edit Data Source Connection Strings anymore in the Deployment Wizard.
When clicking the button labeled "..." I get an error "Could not load file or assembly 'Microsoft.Data.ConnectionUI, Version=8.0.0.0' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference".
This happened on two different 2008 R2 servers and local windows 7 desktop, SP1 Cumulative Update 1 does not fix the error.
Please help!I managed to fix it by modifying the Workaround from Microsoft a bit.
Microsoft Fix: https://support.microsoft.com/en-us/kb/2809127/
Summary of fix:
Open the following configuration file in a text editor, such as Notepad, as an administrator:
<var class="sbody-var" style="box-sizing:border-box;"><system drive>:</var>\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Microsoft.AnalysisServices.Deployment.exe.config
2. Insert the runtime XML tags after the </startup> tag in the configuration section:<configuration>
<startup>
<requiredRuntime version="v4.0.30319" safemode="true" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.ConnectionUI" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="8.0.0.0-9.0.0.0" newVersion="10.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.ConnectionUI.Dialog" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="8.0.0.0-9.0.0.0" newVersion="10.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
What i did to make it work:
<configuration>
<startup>
<requiredRuntime version="v4.0.30319" safemode="true" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.ConnectionUI" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="10.0.0.0" newVersion="8.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.ConnectionUI.Dialog" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="10.0.0.0" newVersion="8.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Instead of redirecting from version 8 and 9 to 10, i reverted it and made sure it uses version 8. -
SQL Server Management Plug-ins deploy error
Hi,
I have a GC 10.2.0.3.0.
I am trying to deploy the MS SQL server plug-in and am getting the following errors.
I have followed the instruction in this document: http://download.oracle.com/docs/cd/B16240_01/doc/apirefs.102/e12776/pisqp.htm
This thread did not help me much, Re: microsoft plug in deployment errors on grid control
At least one error has occurred. Refer to the Deployment Status page for more details.
The Deployment Status page shows ....
Deployment Errors and Warnings
Name microsoft_sqlserver_database Agent tenhrmdb201:3872
Version 3.3.3.1.0
An error occurred while communicating with the agent. It may be down or unreachable.
I have created a local user on the windows box(Agent) and given all the required permissions according to the document.
In the GC for the Agent Preferred Credentials, i have given the Host UserName = SERVER\username and the password.
Please help me find what am i missing here.I had to add the Windows server's IP to the /etc/hosts file on the OEM server.
That fixed the issue. -
SQL query works in SSIS, SSMS/SQL server but fails in deployment?
The SQL query in my execute sql task is correct. It works in SSIS and SSMS also. But, it fails when I deploy my package. The error -
Code: 0xC002F210
Source: MySQLTask Execute SQL Task Description: Executing the query
"UPDATE [MyTable] SET MyCol..."
failed with the following error: "Invalid object name 'MyTable'.".
Possible failure reasons: Problems with the query "ResultSet" property
not set correctly parameters not set correctly or connection not established
correctly.
What could be the reason for this error and how do I fix it ?
Thanks.Does the database have the object [MyTable]? What is the default schema for the user? Is the table (assuming it exists) in the default schema for the user?
Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com
Yes, the DB has the object [MyTable]. The default schema is dbo, as given by SELECT SCHEMA_NAME()
The table is in the default schema for the user as per -
SELECT *
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = SCHEMA_NAME()
AND TABLE_NAME = 'MyTable' -
Permissions of SQL Server Database changes when deploying application
Hi.
When deploying my application, I find that the permission changes as in the screenshot below and hence I cannot update the database. It becomes read only.
However, before deployment, I had already set the permissions for Users to Full Control.
The Read-Only properties is set to False in the Setup for deployment. Help please.If deploying a file for read/write permissions on the O/S(s) talked about in the link, then you need to deploy the file to ProgramData (all users folder) or to a folder you created with the persmission needed at the folder level. You deploy the file
to Program Files folder, then the O/S(s) are only going to allow read and read/execute.
https://technet.microsoft.com/en-us/library/ff716245.aspx?f=255&MSPPError=-2147217396 -
Deployment of SQL Server Business Intelligence Development Studio (2008 R2)
Looking for some guidance on deploying SQL Server Business Intelligence Development studio (2008 R2). I have a requirement from our Data Warehouse developers, and they require the SQL Server Business Intelligence Studio deployed to
the server that will hold the production data warehouse. Is the SQL Server Business Intelligence development studio normally deployed on a production server?
I am hesitant about installing the SQL Server Business Intelligence Development studio since it's a development tool. I haven't seen anything that it is required to run the developed objects.
Any information you can provide will be appreciated.
Thanks.
DJHi DonsJones,
The SQL Server Business Intelligence Development studio (BIDS) is a client tool for BI Projects development and won’t be installed on the production server in most cases. For a DW/BI system, the BIDS is generally used to develop ETL packages, Data Mining,
and Reporting. The development activities should be performed in the Dev environment, and the eventually ETL packages or reports should be deployed to the production server or report server. For a production server that will run the ETL packages (usually in
SQL Server Agent jobs), SSIS should be installed on the production server.
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
Find Sql Server Tools Existed or not
HI All,
I came to knew that in our Server "Sql Server Data Tools is Installed" .But I would like to get confirmed weather it is installed or not.I want to know the path if data tools are installed.Can any one help me how
can I do this
SamarHello,
Please use the following article to know SQL Server features installed:
http://www.sqlcoffee.com/SQLServer2012_0014.htm
The command line version of SSDT is located at the following path (SQL Server 2012):
C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin\SqlPackage.exe
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
J2EE SDK & SQL Server JDBC Driver
I am trying to use SQL Server JDBC Driver with J2EE SDK.
Following with the instruction of Deployment tool's help, I configured both the SQL Server JDBC and JDBC-ODBC Bridge. My classpath has include SQL Server JDBC Driver's lib, and my java program can connect to SQL Server 2000 correctly. but deployment tool always told me "no suitable driver" with SQL Server JDBC Driver when I want to generate SQLs. With JDBC-ODBC bridge, it's OK.
Why? I just want to know that if there is anywhere else that I can configure the class lib. I think it's because J2EE can't find the classes of SQL Server JDBC, but I don't know how to do.step 1:download the sql driver and unzip it
step 2:copy the .jar file to $j2ee_home%/lib/system
step 3:modif userconfig.bat file ,add the .jar files
to j2ee_classpath
step 4:modify you resource.properpties files,add
yourself
JNDI name.
because i am a chinese,have poor english,if can't
trouble,send e-mail to me,i can replay to u with the
config files.I do as your steps,but it still cannot work. for bookstore1(j2ee tutorial example), it give out such exception:
javax.servlet.UnavailableException: Couldn't get database.
at BookStoreServlet.init(BookStoreServlet.java:28)
what 's the problem?
please give me some advice. -
OEM 12c : Deployed MS SQL Server Plug-in. Getting Error When Adding Target Manually
Hi All,
Request your help regards to Working with Plug-ins.
I am using a Oracle linux 5.9 VM with OEM 12c v12.1.0.3.0 Installed.
I need to work with Non-Oracle Database - specifically MS SQL Server for which I already downloaded and deployed the MS SQL Server Plug-in.
However when trying to add targets manually, I am getting an error saying "Target Type Microsoft SQL Server is not support on selected monitoring agents em12c.localdomain:3872:Plug-in Microsoft SQL Server Database (12.1.0.3.0) or higher is certified on Enterprise Manager Cloud Control 12.1.0.3.0.
Can you please guide as to where am i going wrong?
Your help and guidance is highly appreciated.
Regards.
NayanHi Nayan,
This seems to be a issue that a different version of MS SQL plugin was deployed on the Agent side.
As per your description you have already downloaded and deployed the MS SQL Server Plug-in. I am assuming that the version of plugin is 12.1.0.3.
If not you will need to deploy 12.1.0.3 MS SQL plugin on OMS first and then on the Agent which is monitoring the MS SQL targets.
+ Command to get the plugins deployed On OMS server currently,
$ cd <OMS_HOME>/bin/
$ ./emcli login -username=sysman
Enter password
Login successful
$ ./emcli sync
Synchronized successfully
$./emcli list_plugins_on_server
+ Command to get the plugins deployed On Agent currently,
$ cd <AGENT_HOME>/agent_inst/bin/
$ ./emctl listplugins agent
Ref: EM 12c: How to Verify the Plugins Deployed on the Enterprise Manager Cloud Control 12.1.0.1 OMS and Agent (Doc ID 1431103.1)
You can review the below link for MS SQL plugin deploy on OMS and Agent,
http://docs.oracle.com/cd/E24628_01/install.121/e35211/toc.htm
Once the 12.1.0.3.0 MS SQL plugin is deployed on OMS and on Agent try to dicover the targets again from console. I hope it will help.
Regards,
Biplab -
Hi Experts,
I have a typical situation in the LAB environment. Hope some one helps. I have Installed a SCOM 2012 R2 with SQL 2012 SP1 in a single server (Management group 1). I have installed another management group on another server using this SQL server for its database
so i have everything going fine.
The first management group has its reporting installed in the SQL server. For the second i created a new named instance for that. But i cannot run the SCOM setup in the SQL server (Also holding the Management group 1 MS) as 1 st reporting is already there.
When i run the setup it is asking me to repair it. I don't get the install option so i can install the reporting for management group 2 in the named instance.
Default instance is being used by the 1st management group.
Can any one figure a possibility for installing 2 SCOM reporting services for different management groups in a same SQL 2012 server please.
Gautam.75801Hi Yan Li,
Thank you for the reply. So as you are aware If i need to instal reporting, i need to run the SCOM 2012 R2 setup in the SQL server and select reporting and select the
instance and then mention the management server there right. I am not getting that option there it is asking me to remove or repair the existing installation as there is already a SCOM entire setup including reporting there. As it is a lab there is no problem
in testing. I have 2 reporting instances. Any suggestions for me on how to overcome this issue and deploy the second reporting in the new named instance ?
Below is the screenshot of the error what i am talking about when i run SCOM 2012 R2 setup to install reporting in the SQL server
When i click on add feature reporting is greyed out (As already 1st management groups reporting is installed)
When i click on remove or repair it
uninstalls the existing one. But i want both SCOM 2012 r2 reporting to be there(For both Management group). Is it possible ? If yes What is the trick to run the setup ?
Gautam.75801 -
Hi,
how can I deploy a SSIS package with a SQL SERVER identity to the catalog in SQL Server 2012 programmly?
I tried to use the [SSISDB].[catalog].[deploy_project], but the error said that it could only be used with a WINDOWS identity.
This question has worried me for days.
Is there any way to make the catalog.deploy_project available for a SQL SERVER identity ?
Or just an new solution instead of using the catalog.deploy_project?
best wishes from Qingyuan Lee.Sorry, my description may be confusable.
I use EXECUTE AS , not EXECUTE WITH, to solve the problem.
In fact, I don't care about the authority.
I want to execute the stored procedure using a SQL SERVER Authentication Account , since my codes run on a linux OS and it is hard to connect to SSIS using a Windows Authentication Account.
so, using EXECUTE AS to change the execution context is accaptable.
The requirement for a Windows Authentication Account makes sense.
I consider that the SSIS executes outside the context of SQL Server and as part of an OS process, which means that a Windows account is necessary in order to deploy a package.
Thanks very much for your help. -
SQL Server 2012 Deploy Database to SQL Azure...
I have spent many days trying to copy a simple test database from my PC to SQL Azure but with little success. Then I installed SQL Server 2012 and see a new task:
Deploy Database to SQL Azure... It looks like an automated extraction to DAC and then creating the Azure database all in one step.
I was elated, but got hit with the following three types of errors.
One or more unsupported elements were found in the schema used as part of a data package.
Error SQL71564: The element Extended Property: [dbo].[Accounts].[Address].[MS_Description] is not supported when used as part of a data package (bacpac).
Error SQL71564: Table Table: [dbo].[Activities] does not have a clustered index. Clustered indexes are required for inserting data in this version of SQL Server.
Error SQL71564: Element User: [NT AUTHORITY\NETWORK SERVICE] has an unsupported property AuthenticationType set and is not supported when used as part of a data package.
(Microsoft.SqlServer.Dac)
May I know what I can do on the on-premise database to rid of the first and third error?
Thanks.Hello,
1) Remove the Extended Property from the (?) column Address in table Accounts.
BTW, for small databases it's sometimes easiere to generate a script for the database (and modify it slightly) instead of using the Wizard
Olaf Helper
Blog
Xing
What is Extended Property? What is this .MS_Description? I can't see it in the table designer or the Column Properties. (I don't know whether this was corruption caused by Data Sync I used earlier.) How do I remove it.
Of all the methods of copying SQL Server to Azure SQL, this one gives the least mistakes. If I can solve this Extended Properties thing hopefully I can migrate the database over. -
Will the reports developed in sql server 2008 r2 BIDS work when deployed on sql server 2012 reporting manager?
when I check on Microsoft site it says
Reports are not upgraded when you upload a report definition file directly to the report server
or SharePoint site. Upgrading a report definition in SQL Server Data Tools is the only way to upgrade the .rdl file.
When you open an .rdl file in Report Designer in SQL Server Data Tools (SSDT), if the report was
created for a previous namespace, Report Designer automatically creates a backup file and upgrades the report to the current namespace.
This is the only way you can upgrade a report definition file.
Now here is another confusing statement which says
You can upload an .rdl file created in an earlier version of Reporting Services to a SQL Server
2012 report server and it is automatically upgraded on first use. The report server stores the report definition file in the original format. The report is automatically upgraded the first time it is viewed, but the stored report definition file remains
unchanged.
All I want to know is if I deploy a rdl made in 2008 r2 to 2012 will it work on the report manager of
2012?
<o:p>
</o:p>
MudassarI have tested this fucntionality and can confirm that ssrs 2008 r2 reports work when you deploy them on new ssrs 2012 report manager .
No Migration is required .
I didnt even moved report server dbs .All I did is just deployed reports on the report manager and it worked .
"You
can upload an .rdl file created in an earlier version of Reporting Services to a SQL Server 2012 report server and it is automatically upgraded on first use. "
Microsoft needs to correct this the documentation is misleading
Mudassar -
Hello, everyone,
I have an SSIS package with a XML package configuration file. I deployed it to the sql server using the import feature in SSMS (in Stored Packages, right click MSDB, select Import, select the package to deploy in file system). My question is
Is the XML package configuration file also deployed? If so, which folder is it stored so that I can change the values in it? If not, is setting up the Configuration tab when scheduling a agent job the way to go manually bring the configuration file in?
Your help and information is much appreciated.
RegardsThank you Arthur for your reply. I appreciate it.
A followup questions:
I used direct setting for the configuration file path on C:\. But it needs to be on D:\ on the remote server. I can't create the D:\ path because I don't have D:\ drive on my computer (I understand I could use indirect setting to change the path in the remote
server. But that's not the concern here).
My question is: since the configuration is not deployed, can I make it up by setting up the Configurations in creating the agent job step? That is, copy the configuration file to the D:\ drive on the remote server, in Configurations tab, add the configuration
file on D:\ to the configuration. Will it work? Will the package still look for the original config file on C:\? and if it doesn't find it there, will it cause any error?
Thank you in advance for your help.
Regards -
Deploy JDBC driver for SQL server 2005 on PI 7.1
How to deploy JDBC driver for SQL server 2005 on PI 7.1
We are in SAP NetWeaver 7.1 Oracle 10G
Third party system is SQL server 2005
There are different JDBC versions are available to download for SQL server 2005.
I am not sure about the applicable version for the PI 7.1 SP level. Again JMS Adapter needs to be deploy along with this.
Please helpHi,
Hope this How to Guide help you.
How To Install and Configure External Drivers for the JDBC & JMS Adapters from
www.sdn.sap.com/irj/sdn/howtoguides
Regards,
Karthick.
Edited by: Karthick Srinivasan on Apr 13, 2009 4:07 PM
Maybe you are looking for
-
Update error in RV_SALES_DOCUMENT_ADD during Sales order creation
I get an Update/ ABAP runtime error during Sales order creation. The error occurs during processing of the update module -RV_SALES_DOCUMENT_ADD. This error does not occuring always, as I am sometimes able to create a Sales order without getting updat
-
Deleting same elements in array and their rearrangement based on other array
I need to delete duplicating characters in a string array. In addition the rearrangement in these new string characters should depend on their position alon the X axis given in other array. Any ideas how.. Cheers, Z p.s. In the attachment u can see m
-
Quick Share in Premiere Elements 10?
Hi, I just upgraded from Premiere Elements 8 to version 10. And I'm missing the "Quick Share" function, where I can store carfully designed export settings for later use. Where can I find the "Quick Share" function in PE 10? Thanks Konrad
-
Ethernet to wireless bridge trouble
I am trying to connect my iMac G3 (slot loading) to my wireless internet connection through airport express (the device that is plugged into wall, not the airport card that is placed inside the computer). The computer used to recognize the device but
-
Reg. TAXINN in our ides system
Dear All There is no TAXINN procedure in our ides. How to bring. Please help me. Thanks Rajj