Cannot create an ADO.NET entity data model through wizard - visual-studio-2010

I have an issue and I cannot find out what the problem is. In visual studio 2010 I'm trying to add a new ADO.NET entity data model through the wizard (I'm using Entity Framework 4.1). After the second wizard step (that says "Choose your Data Connection") I press next and the wizard is closed right away, and there are no following steps at all. Here is my entity connection string:
metadata=res://*/DAL.Model1.csdl|res://*/DAL.Model1.ssdl|res://*/DAL.Model1.msl;provider=System.Data.SqlClient;provider connection string="Data Source=DMITRIY-TOSH\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True"
Is there anything wrong with that connection string? What should I change in it and how? Or what else can be the cause of the problem? Help me with this, please. I don't even know how to make it work to see the next wizard step where I can choose tables.

Found the solution. The folder "App_Data" (with the database inside) wasn't included into the project. Only because of that the wizard did not work.

I had this problem too, all the above didn't work for me. What helped for me was the following.
When you try to connect with a database that database can have different users with different credentials it can accept. Let's say user A till D.
If you try to connect with a user make sure that user has the right credentials enabled, in this case, read and write options enabled.
To do this start MS SQL Server Managment Studio, connected with your SQL server and select the database you try to make a connection with in visual studio. Under 'your_dbname' --> Security --> Users you find a list of users. Rightclick the username you try to login with and select properties. A window opens. Select the 'General' (selected by default) page and under tab 'Database role membership' make sure 'db_datareader' and 'db_datawrite' are selected.
Note: When you log in too MS SQL Server Managment Studio make sure you log in with a user which can enable/disable these options...

I created an empty model, then selected it in 'Model browser', right clicked on it and selected 'Update model from database'. Then I was able to add a table to it...

Related

How to remove SSRS credentials in Visual Studio 2008

I have a question similar to this one, but I am using VS 2008 and an Oracle database (with Oracle SQL Developer). How do I get rid of the report credentials in VS? Thank you.
One of the easiest ways to get rid of this is to supply a username and password for the database in question on the reporting server. The URL is usually something like http://localhost/reports. Usually, users created for this type of connection have minimal read-only rights needed for the specific report. The disadvantages to this type of connection is that it's a one-user-fits-all situation. But because of the error message you are getting, it appears that your wish is to supply a specific user name and password rather than use Windows security--which is just fine.
To get here, click Security from the report drop-down list on the main page. Then, click the Credentials stored securely on the report server. Then, here's an issue that get's lots of folks--click the Apply button at the bottom to save the changes. Sometimes the Apply button is not visible and you need to scroll down to click it.
Now, if you're accessing your report through ReportViewer in VS then the following link may provide some help:
http://www.sql-server-performance.com/2012/accessing-ssrs-reports-report-viewer-web-page/
Alternately, you can create or add to a web.config file:
https://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.ireportservercredentials.aspx
p.s. based on our chat, try adding the following to your web.config connection string--if you have one(with the respective user name and password)--if, indeed you're using Oracle's ODP.net:
providerName="Oracle.ManagedDataAccess.Client" connectionString="User Id=oracle_user;Password=oracle_user_password
http://www.oracle.com/technetwork/topics/dotnet/downloads/odpnet-managed-nuget-121021-2405792.txt
I have not figure out how to solve this from the database. What I did was, comment out this line of code from the XML of the report:
<Prompt>Specify a user name and password for data source XXX</Prompt>
If you have the correct credential info in the <value> tag, your report should be loaded with username and password parameters without problems.

ADO.NET Entity Data Model forcecloses after "Choose Your Data Connection"

So I am trying to create my ADO Entity data model, and i cant seem to get past the "choose your data connection" page. I choose the correct connection, then click either no or yes for sensitive data, and i click next. However, nothing appears. There is no error message like the common "your project references the latest version of entity framework however an entity framework database provider." It just closes the prompt and returns me to my project.
Has anyone ever seen this before?
If you have such a problem, make sure that the version of the NuGet MySQL EF package matches the version of the MySQL Connector for NET

Does not contain a definition...and no extension method

I am using linqpad4 with it's CRM 2011 plugin.
I get this error. How to fix it.
Does not contain a definition...and no extension method...
This error means something is changed in CRM schema, customization is published and you're trying to use new attribute in query but LinqPad schema is not updated.
Select the connection from left navigation, Right click and select Connection Properties. Ont he dialog bottom left Click on Refresh Schema. This will update the schema. Now you can work with latest schema.

Visual Studio 2008 Question, table adapters connections string issue

I have a data source that I use for creating reports in my programme. I've recently changed the connection string to the table adapters created by the wizard(ConString1), because I wanted to make that connection string available to every other class that needs to use it. So basically. I deleted the application setting created by the wizard(ConString1) and entered in my own application setting(ConString). Once debugging began all the code that still refered to the now non existent connection string(ConString1), I changed to the available one(ConString). That is in the code the debugger picked up. The program works fine.
Now my problem is this, when I select a table adapter and take a look at its properties, the Connection string is still set to the old connection string name, the connection string value itself is given as "Unable to find connection ". This is prohibiting me from adding new tables to my reports.xsd file.
I also keep getting an error when trying to create a new datasource.
Error : Could not load type Microsoft.VisualStudio.DataDesign.SyncDesigner.SyncFacade.SyncManager.
Right-click on the data-set xsd, select "Open With..."
Select "XML (Text) Editor" and click OK.
Modify as needed, and be careful.
Be careful.

EF switching from one db to another .edmx settings how to?

I have an mvc3/EF4.1 model that has an .edmx bound to a Db locally. I have to move this model to Database to another server.
Q: What steps do I need to make so that when I right click on the .edmx and "Update Model/Database" that it selects and picks up that same model but on the new server? Thx!
Open your web.config and look at your block. The connection information to the server is listed in there. Simply change it to the new server.
The full format is listed here:
http://msdn.microsoft.com/en-us/library/cc716756.aspx
If the new server is using the same authentication, just change the server name (the 'Data Source=localhost' section) to be your new server name.

Resources