Tagged Questions
0
votes
1answer
22 views
Passing the connection string from 2 web applications sharing a DAL?
I have a solution with two MVC 3 application sharing the same DAL libaray. Each application is pointing to a different db and their connection string is stored in their respective web.config file.
...
0
votes
0answers
40 views
how do i pass metadata to the construction of a database-first DBContext with Entity Framework 4.1?
Mi situation:
I'm using MVC3 in Visual Studio 2010, I'm using the entity framework too to the meping of my entities and DB.
I must encrypt my connection string with the crypter method of my ...
0
votes
0answers
45 views
Using asp_regiis.exe to secure connection string
using asp4 mvc 3 building web app.
I am deploying a web app outside the company firewall, so I want to secure the connection string to the database in some way. The connection string is in the web ...
0
votes
0answers
38 views
Error when i changed the database connection string from localDB To SQL Compact
Can any one please help me with this issue:
i'm working on building a blog with ASP.NET MVC 4.5 ,and i want to use SQL compact as my database , so i did all the necessary work following an article and ...
0
votes
1answer
102 views
Membership.GetAllUsers() System.Data.SqlClient.SqlException: User does not have permission to perform this action
I created a small web application using Visual Web Developer 2010 Express. After I deployed my site and go to the first page, which is the login page that provides a list of users for the app, I get ...
0
votes
0answers
45 views
Using mvc3, I need to add a username/password to the sql connection string at runtime
I see how to build the string using stringbuilders (SQL/entity framework); what do I do to cause the connection string to be used in a DbContext?
example context:
public class pophistoryDBContext : ...
0
votes
1answer
425 views
How to read ConnectionString from web.config in Asp.net MVC3 web Application?
I am working in Asp.net Razor MVC3. I have created a App_Code folder and make a class in which I want read connection string from web.config and working with database by using this class. I am writing ...
1
vote
2answers
373 views
Class library Database Connection String
I have a solution with multiple project using the same domain model. I thus created a class library that holds my domain models. This class library also contains other parameters that are used within ...
1
vote
1answer
202 views
TNS oracle connection failed from MVC3 site using ASP.NET Membership provider
We have an MVC3 site that uses the ASP.NET Membership Provider with Forms Authentication to let users onto the site. We have an Oracle database behind it.
It all works in house on development ...
0
votes
1answer
487 views
read Excel file using Ole db cannot read all the excel rows
I'm making MVC3 application and i need to read excel file using Ole db connection but it cannot get all the excel rows on some machines and can get all data on others . the following is my code:
var ...
2
votes
0answers
2k views
Visual studio 2012 error. cant find .net data provider
I am currently developing a project in MVC3 Visual Studio 2012. I am connecting to an external database but when I try to add a new controller I get this error.
Unable to retrieve metadata for ...
2
votes
1answer
2k views
Entity Framework - Connection string - Keyword not supported 'Data Source'
I know this is a common issue faced by beginners in EF and there have been multiple questions and answers on the same here, but still I have not been able to still resolve the issue.
I am using EF ...
0
votes
3answers
1k views
Connect MVC 3 application to sql server 2008
I am newbie and confused how to do it.
I have built MVC 3 application in Visual Studio 2010 and published to the localhost and it's working fine.
Here, What I actually want is to use the Sql Server ...
2
votes
2answers
2k views
EntityFramework can't see ConnectionString in the App.config
I am studying Code First EntityFramework together with ASP.Net MVC 3.
At first my trivial EFDbContext class was placed in the WebUI mvc project in a Concrete folder.
public class EFDbContext : ...
2
votes
1answer
244 views
Debugging a connection string
I've a website that works fine in local mode with local SqlExpress. When I publish and put the final server connection string, I keep getting the helpless 500 - Internal server error.
I tried to use ...
0
votes
1answer
389 views
appharbor connection string
I'm building an ASP.NET MVC3 application that requires access to a database. I've successfully set up the database on my local machine and everything works fine but then I uploaded the app to ...
0
votes
2answers
485 views
How to set connection string on hosting?
I have mvc3 application on Godaddy hosting. I set connectionstring as
<add name="ApplicationServices" connectionString="Data Source=mydb.db.9227430.hostedresource.com; Initial Catalog=mydb; User ...
0
votes
2answers
113 views
Where is my database file?
I have an MVC3 web application with a local database under App_Data/ASPNETDB.MDF. I also have an integration test project that I'm using to run NUnit against. It has some tests reading from the ...
1
vote
0answers
366 views
CodeFirst EF and connection string by Adam's Freeman book
I'm learning the asp.net mvc 3 of the book of Adam Freeman. In the example, a SportsStore applications using CodeFirst approach. When solution run throws exception: Invalid object name 'dbo.Products'.
...
3
votes
3answers
2k views
Keyword not supported: 'metadata'
I am trying to publish my mvc 3 project but i can`t connect to the sql server(using EF), because of the wrong connection string. Here it is:
<add name="PackStoreEntities" ...
0
votes
1answer
448 views
MVC3 Read-Only MySql Connection String
I'm currently working in Visual Studio 2010. MVC3 project. I'm new to .NET MVC and the only experience I have so far is with an MVC3 EF Code First project (MSSQL DB).
I'm looking to create another ...
2
votes
3answers
1k views
ASP.net: Cannot use Website Administration Tool because of database error
This is my first project using ASP.net and I'm struggling to get my database connection working.
Right now the database for my application data is working and I can use the website to do simple CRUD ...
1
vote
4answers
984 views
Entity Framework code first tries to open wrong database
I am writing an ASP MVC 3 application. I am using Sql Server 2008 R2 for my database.
I created my data model and my DbContext called EFDbContext.
I created my database which is named SportsStore.
...
3
votes
1answer
366 views
MVC3 Models without Web.Config Connection Strings
I am working on an MVC3 project where we are developing one site for use by multiple companies. Each company has it's own database catalog. The site log in information is all stored in a single ...
0
votes
1answer
491 views
MVC 3 - Writing to productive Database on SQL Server 2005 does not work (testing on local SQL Server 2008 does work)
I'm a bit confused. I built my MVC 3 project which works fine in my development environment and the integrated IIS in Visual Studio 2010.
After deploying it to an IIS 7 it seemed to work, too. ...
0
votes
1answer
670 views
ASP MVC Connection String to ASPNETDB working on localhost not when deployed
In an ASP MVC project I am using for Authentication the ASPNETDB.mdf in my App_Data folder , and as the project datasource a connection string to my SQL Server 2008 from my hosting provider.
My ...
0
votes
4answers
1k views
MVC3 changing default connection string error
I created an MVC3 Internet application and changed the default connection string to work with
.\SQLSERVER instead of the default .\SQLEXPRESS and get following error :
A network-related or ...
3
votes
2answers
3k views
How do I use Web.Config transform on my connection strings?
In my current project, I have some connection strings that are valid for local development machines:
<configuration>
<connectionStrings>
<add name="ApplicationServices"
...
5
votes
5answers
2k views
How can I safely store and access connection string details?
I'm currently working on a ASP.NET MVC web site, and I've come up to a point where I need to integrate a database into the website.
Normally I would simply add the appropriate connection string to ...
6
votes
2answers
2k views
ASP.Net MVC3 SQL Connection String
I am creating an app on APPHARBOR and I have an entity model for querying the SQL server. The following String is givving me error:
<add name="TraxzDBEntities"
...