- The Selected File Is Not A Valid Visual Studio Download
- Selected File Is Not A Valid Key File
- The Selected File Is Not A Valid Solution File Visual Studio 2012

The selected file is not a valid Visual Studio solution file. Microsoft Visual Studio Solution File, Format Version 8.00. He will still not be able to open the. Create a new project (I’m going to use Visual Studio 2010): Please be sure that you’ve selected the.NET Framework 3.5: if you select a newest one AX won’t work with your.dll: 2.
The Selected File Is Not A Valid Visual Studio Download
# re: Publish Individual Files to your Server in Visual Studio 2012.2 I'm using FTP to upload a PHP site. I had been using the VS.PHP plugin which gave a deploy option for selected files in the Solution explorer, but it has other issues. Visual Studio: Show active file in solution explorer posted Nov 26, 2008 One of the most annoying thing about Visual Studio default settings is the fact that the Solution Explorer doesn't track what files you are currently looking at. ' The file you have choosen ist not a valid Visual Studio project solution file 'I also have a.csproj file, which (to my confusion) works, but of course just does not give me the whole project, only a part of it. I do: Open project from web -> type in my ip -> i get a list of files in. The selected file is not a valid solution file in microsoft visual studio 2012. Ask Question 1. I am using microsoft visual studio 2012, I double my solution file. On the Visual Studio menu bar, choose File > Open > Folder, and then browse to the code location. On the context (right-click) menu of a folder containing code, choose the Open in Visual Studio command.
This chapter contains:
Using Oracle Developer Tools
Oracle Developer Tools for Visual Studio (ODT) is a tightly integrated Add-in for Visual Studio. Using enhancements that ODT brings to the Server Explorer, you can automatically create tables, indexes, constraints, data connections and other database schema objects. Additionally you can automatically generate application code.
See Also:
'Overview of Oracle Developer Tools for Visual Studio'Connecting to the Oracle Database
This section shows you how to use the Server Explorer to connect to the Oracle Database for the purpose of automatically creating or modifying database schema objects.
To connect to the database:
From the View menu, select Server Explorer.
In Server Explorer, right-click Data Connections.
Select Add Connection.
Description of the illustration addconnection1.gifWhen the Add Connection window appears, determine if the Data source says Oracle Database (Oracle ODP.NET).
If it does, skip to Step 6.
Description of the illustration addconnection1a.gifIf Data source does not say Oracle Database (Oracle ODP.NET), select Change.
The Change Data Source window appears.
Description of the illustration addconnection2a.gifChoose Oracle Database and then select Oracle Data Provider for .NET.
On the Connection Details tab, in the Add Connection window, enter the following information:
Data source name: For this example, use the alias of the remote database instance,
orcl
.If you are connecting to a database on the same computer, use the
Local Database
.Select the Use a specific user name and password option.
For User name, enter
HR
.For Password, enter the password created when the
hr
account was unlocked and set up.To save the password for future sessions, check the Save password box.
Ensure that Role is set to
Default
. This refers to the default roles that have been granted to the userhr
.The Connection name should be generated automatically from the Data source name and the User name values. In this exercise, it will be HR.orcl.
Description of the illustration addconnection2.gifClick the Apply Filters tab, and verify that the
HR
schema is in the Displayed schemas column. When you expand the schema category nodes in the data connection, only those schema objects (tables, views, and so on) selected in the Apply Filters tab appear.
Description of the illustration addconnection3.gifClick Test connection.
Description of the illustration addconnection4.gifThe test should succeed. Click OK.
If the test fails, it may be due to one or more of the following issues that you must address before proceeding with further steps:
The database is not started.
The database listener is not started.
The database connectivity is not properly configured.
You do not have the correct user name, password, or role.
In the Add Connection window, click OK.
In the Server Explorer, expand the HR.ORCL connection to show the contents of the
HR
schema. You should see Tables, Views, Procedures, Functions, Packages, Synonyms, Sequences, and so on.
Description of the illustration addconnection5.gif
Creating a Table and Its Columns
Oracle Developer Tools includes a user interface for creating database objects. In this section, you will create a table named DEPENDENTS
.
To create a table:
In Server Explorer, right-click Tables and select New Relational Table.
Description of the illustration table1.gifA table design window appears.
In design view, enter
DEPENDENTS
for Table name.
Description of the illustration table2.gifIn the Column Properties tab, add the following six columns in this manner:
Click Add. Then enter the new column information. Keep clicking add until you have added all the new columns.
Fields may differ depending on the data type. You might have to close windows such as Server Explorer or Solution Explorer to access the entire tab.
Name
LAST_NAME
, Data TypeVARCHAR2
, and Size30
. Leave all other properties at their default values.Name
FIRST_NAME
, Data TypeVARCHAR2
, and Size20
. Leave all other properties at their default values.Name
BIRTH_DATE
, Data TypeDATE
. Leave all other properties at their default values.Name
RELATIONSHIP
, Data TypeVARCHAR2
, and Size20
. Leave all other properties at their default values.Name
EMPLOYEE_ID
, Data TypeNUMBER
, deselect Allow null, enter Precision6
and Scale0
.Name
DEPENDENT_ID
, Data TypeNUMBER
, deselect Allow null check box, enter Precision6
and Scale0
.
Description of the illustration table3.gifClick Preview SQL.
The SQL statement for constructing the table appears in the Preview SQL window, similar to this.
Description of the illustration table4.gifClick OK to close the Preview SQL window.
In the table design view, click Save.
This action creates the new table
DEPENDENTS
in theHR
schema. The new table is listed in the Server Explorer.
Description of the illustration table5.gif
Creating a Table Index
Indexes are an optional but very powerful feature of relational databases. An index enables quick access to the rows (or records) in a table. In this section, you will create an index for the DEPENDENTS
table.
To create an index:
In the
DEPENDENTS
Table Design view, click the Indexes tab.Click Add under the Indexes area.
The Index Properties area becomes active.
Under Index Properties (to the right), enter the Name
DEPENDENTS_INDEX
, and leave all other properties in their default state.At the bottom of the Index Properties area, click Add.
Under Index keys, click in the first cell of the Key column, and select DEPENDENT_ID from the list.
Description of the illustration index1.gifClick Preview SQL
A Preview SQL window appears, displaying SQL statement to construct the index.
Description of the illustration index2.gifClick OK to close the Preview SQL window.
In the table design view, click Save.
This creates the new index on the table
DEPENDENTS
in theHR
schema. To see this in the Server Explorer, expand theDEPENDENTS
table and related Indexes.
Description of the illustration index3.gif
Adding Table Constraints

The database uses constraints to automatically enforce data integrity defining rules for permissible data values. Constraints also implement primary and foreign keys in the table. In this section, you will add such constraints to the new table DEPENDENTS
.
How to add foreign and primary keys:
In the
DEPENDENTS
table design view, click the Constraints tab.Note that depending on your configuration, there may already be default check constraints in the list.
Under the Constraints area, add the following constraints in this manner:.
Under Constraint Properties, Click Add. Then enter the new constraint information. Keep clicking add until you have added all the new constraints.
Name
EMPLOYEES_FK
, TypeForeign Key
, TableEMPLOYEES
, ConstraintEMP_EMP_ID_PK
. Under Association, select Referenced Column:EMPLOYEE_ID,
and Local Column:EMPLOYEE_ID
, set the On delete value toCascade
. Leave all other properties at their default values.
Description of the illustration constraint1.gifName
DEPENDENTS_PK
, TypePrimary Key
.Under the Primary key columns area, click Add (you may need to scroll down). Under Primary Key Columns, select Key:
DEPENDENT_ID
, set the Using index value toDEPENDENTS_INDEX
. Leave all other properties at their default values.
Description of the illustration constraint2.gif
Click Preview SQL.
The Preview SQL window displays the code generated for constraints on table
DEPENDENTS
. Note that adding constraints is anALTER TABLE
command because constraints change the definitions of theDEPENDENT_ID
andEMPLOYEE_ID
columns of the table.
Description of the illustration constraint3.gifClick OK to close the Preview SQL window.
In the table design view, click Save.
This action creates the two new constraints on the
DEPENDENTS
table in theHR
schema. To see the Server Explorer, expand the hierarchy tree for the tableDEPENDENTS
and constraints.
Description of the illustration constraint4.gif
Adding Data to a Table
You must now add data to the new DEPENDENTS
table.
To populate a table:
In Server Explorer, right-click the
DEPENDENTS
table and select Retrieve Data.
Description of the illustration retrieve1.gifA table grid for
DEPENDENTS
appears in design view.Enter the four records listed in Table 5-1 into the table grid.
Table 5-1 New Data for the DEPENDENTS Table
LAST_NAME FIRST_NAME BIRTH_DATE RELATIONSHIP EMPLOYEE_ID DEPENDENT_ID Ernst
Mary
06-MAY-2000
daughter
104
1041
Atkinson
Sue
12-JUL-1998
daughter
130
1301
Ernst
David
02-APR-2007
son
104
1042
Sciarra
Aaron
31-JAN-2008
son
111
1111
The grid now looks as follows:
Description of the illustration retrieve2.gifNote that the data is automatically saved as you move between rows.
Generating Code Automatically to Display and Update Data
To explore the content of the DEPENDENTS
table, we will build a form that uses a simple table query. In this section you will use the Visual Studio integrated development environment (IDE), to automatically generate the code that corresponds to your actions.
To create a new Data Source:
Start a new project, as described in 'Creating a New Project'. Name the new project as indicated.
Visual C#:
HR_ODT_CS
.Visual Basic:
HR_ODT_VB
.Check Create Directory for Solution. Click OK.
Switch to the Form1 design view, if you are not already in it.
Note: All applications start with Form1, but this is not related to applications created in previous chapters.
Click on the Server Explorer window to enable the Show Data Sources window.
From the Visual Studio Data menu, select Show Data Sources.
The Data Source window appears.
Description of the illustration datasource1.gifIn the Data Sources window, click Add New Data Source.
The Data Source Configuration Wizard opens.
In the Data Source Configuration Wizard, under Choose a Data Source Type, select Database.
Click Next.
Description of the illustration datasource2.gifUnder Choose Your Data Connection, select HR.ORCL, or HR.(Local Database). For this example, we will use HR.ORCL.
Select Yes, include sensitive data in the connection string.
Click Next.
Description of the illustration datasource3.gifUnder Save the Connection String to the Application Configuration File, select Yes, save the connection as:
ConnectionString
.Click Next.
Description of the illustration datasource4.gifUnder Choose Your Database Objects, expand Tables.
Check the DEPENDENTS(HR) table.
Change the DataSet name to tableDependents.
Click Finish.
Description of the illustration datasource5.gifSee Also:
'Using the DataSet Class with Oracle Data Provider for .NET' for information about the DataSet Class
To automatically generate code using drag-and-drop:
Switch to the Form1 Design view.
In the Data Sources window, expand tableDependents.
Description of the illustration datasource6.gifSelect the DEPENDENTS table, and drag it onto Form1.
You may need to resize both the form and the table grid.
Description of the illustration datasource7.gifNote that along with the table grid (which includes record navigation elements), the following components were added to the design view of your project. These objects represent automatically generated code for Form1.
Visual C#:
tableDependents
,dEPENDENTSBindingSource
,dEPENDENTSTableAdapter
,tableAdapterManager
, anddEPENDENTSBindingNavigator
Visual Basic:
TableDependents
,DEPENDENTSBindingSource
,DEPENDENTSTableAdapter
,TableAdapterManager
, andDEPENDENTSBiningNavigator
Double-click the Save icon (floppy disk) near the top of Form1.
This opens the code window for the Save icon for Form1.
In the private method,
xxx
SaveItem_Click()
, encapsulate the existing code in atry...catch
block. See the code listed for the complete Visual C# and Visual Basic names of this automatically generated method.Also, add a
MessageBox.show()
call to both the try and catch sections. The updated method code follows, with new or changed code in bold font.Visual C#:
Visual Basic#:
To compile and run the application, follow the instructions in section 'Compiling and Running the Application'.
You can test the new application in the following manner. The floppy disk icon represents the Save command.
Selected File Is Not A Valid Key File
To test the application:
The Selected File Is Not A Valid Solution File Visual Studio 2012
Change the
DEPENDENT_ID
value for Mary Ernst to1110
and click the Save icon. The message boxUpdate successful
should appear. Click OK to dismiss the message box.Change the
EMPLOYEE_ID
value for David Ernst to99999
and click the Save icon. The following message should appear:Update failed: ORA-02291: integrity constraint (HR.EMPLOYEES_FK) violated - parent key not found
. Click OK to dismiss the message box.