In .NET2005,Web.config can't be created automatically.You add it by youself :right-click the solution's name,choose "Add New Item" ,then select "Web Configration File",at last,click the "Add" button.
The file is a little defferent from in .NET2003.
The question is how to use this file to connect to Oracle?
In .NET2003,you can add codes as followings do this:
but in.NET2005 after you add them into the file,you will find an error like this "Error 1 各个节在每个配置文件中只能出现一次。有关异常的信息,请参阅帮助主题 ".
How to solve this problem?
I have got it.
Browse the web.config ,you will find two lines :
then delete these two lines.
And in your C# codes,when you want to use "constring" ,your code must be written like this:
OracleConnection conn = new OracleConnection(ConfigurationManager.AppSettings["constring"]);
Wish you good luck!