connection-string

SecurityException thrown on deployment

点点圈 提交于 2019-12-02 05:21:55
I have just written an MVC application and got it working in my lab. Now that I've deployed it to GoDaddy, I am getting the following error. Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request failed. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin

C# extract formatted text from Excel through OLEDB

若如初见. 提交于 2019-12-02 05:10:16
I am reading data from a large excel file which has got formatted texts. I extract the data to DataTable object through oleDBConnection & GetOleDbSchemaTable . But the extracted data doesn't include any formatted information. My requirement is, I need to extract only non-Strikethrough texts. I don't have any issues while reading and everything is perfectly fine. But my extraction should be based on text format in excel which I am unable to find the solution. Anything to be added in the connectionString which is as follows: connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +

The value's length for key 'data source' exceeds it's limit of '128'

╄→гoц情女王★ 提交于 2019-12-02 03:59:58
I know that a very similar question has been asked here , but the answer didn't help me. I am using Entity Framework 6 with the Oracle.ManagerDataAccess.Client. If I define the connection string in app.config, then the connection works. If I specify the identical connection string in code, then I get the error The value's length for key 'data source' exceeds it's limit of '128'. which is correct. This is my connection string (with some names removed): "User Id=xxxxxxxxxxx;Password=xxxx;Data Source=( DESCRIPTION = ( ADDRESS_LIST = ( ADDRESS = (PROTOCOL = TCP)(HOST = VS-ORACLE.xxxxxxx.de)(PORT =

Smartcardio.Terminal connection error in PCSC Gemplus Javacard

99封情书 提交于 2019-12-02 03:33:31
问题 I am extremely new to Java Card programming. While using javax.Smartcardio in my code, I am getting an error while trying to connect to Gemalto PCSC Java card. import java.util.List; import javax.smartcardio.*; public class App { public static void main(String[] args) { try { // Display the list of terminals TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal> terminals = factory.terminals().list(); System.out.println("Terminals: " + terminals); // Use the first terminal

Point ADO.Net DataSet to different databases at runtime?

随声附和 提交于 2019-12-02 02:49:11
问题 I have a large ADO.Net dataset and two database schemas (Oracle) with different constraints. The dataset will work with either schema, but I want to be able to tell the dataset which schema to use (via connection string) at runtime. Is that even possible? 回答1: In the .Net 2.0 world, you can change your connection string on your table adapters at run-time. You just have to be sure the Connnection property is public, which can be set from the dataset designer. 回答2: Datasets don't know what

how to solve Keyword not supported: 'data source'

╄→гoц情女王★ 提交于 2019-12-02 01:24:22
I uploaded my website( that is programmed with asp.net mvc and entity framework 5 ) yesterday and wrote this connection string in the web.config file of the host root ( control panel is plesk onyx) I tried changing it to SqlCLient ,Removing some tags, and so many other things but no change it return error: keyword not supported: 'data source' when I remove data source it return keyword not supported 'initial catalog' and so on thanks for your attention <add name="ShopDBEntities" connectionString="Data Source=some source;initial catalog=MainDB;User ID=admin;Password=pass;integrated security

VARCHAR size limit in Excel spreadsheets

試著忘記壹切 提交于 2019-12-02 01:02:02
问题 I'm trying to read some data from an SQL Server 2008 database into an Excel 2007 spreadsheet with C#, using this connection string: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=foo.xlsx;Extended Properties='Excel 12.0 XML;HDR=YES' One of the columns in the database is a VARCHAR(1000). When I try recreating the schema in the spreadsheet, it seems like Excel's VARCHAR only supports up to 255. This page suggests that the "Total number of characters that a cell can contain" is around 32K, so in

SQL Server instance name with IP address

≡放荡痞女 提交于 2019-12-01 23:55:19
问题 I have a very strange situation happening and I'm hoping someone here knows why. I have TCP/IP enabled for all ports on the default port 1433. All tests are consistent with SQL Server Management Studio and my program. This works: ComputerName\InstanceName 127.0.0.1 127.0.0.1,1433 192.168.1.100 192.168.1.100,1433 This does NOT work: 127.0.0.1\InstanceName Note: I know it's not firewall related because I can telnet into 127.0.0.1 on port 1433. Note2: The connection string doesn't matter since

How can i change the default database for simple membership tables

半城伤御伤魂 提交于 2019-12-01 22:57:35
问题 I would like to ask this quick question about the default simple membership database that comes with asp.net mvc 4.5 internet application , my question is about where does it create its tables when I first create new user does it create its table in the default connection string (LocalDB) ? and what if I changed the default connection string to use a custom MS SQL Express database will that get reflected and those tables will be created in my new database ? i noticed this code in the default

SQL Server instance name with IP address

人盡茶涼 提交于 2019-12-01 22:23:15
I have a very strange situation happening and I'm hoping someone here knows why. I have TCP/IP enabled for all ports on the default port 1433. All tests are consistent with SQL Server Management Studio and my program. This works: ComputerName\InstanceName 127.0.0.1 127.0.0.1,1433 192.168.1.100 192.168.1.100,1433 This does NOT work: 127.0.0.1\InstanceName Note: I know it's not firewall related because I can telnet into 127.0.0.1 on port 1433. Note2: The connection string doesn't matter since the tests are consistent with Management Studio, but I'll give it anyway: server={0};Integrated Security