6
Answers

Asp.net server migration from 2003 to 2008 configuration fil

Anup

Anup

9y
645
1

I have a windows application program, exe for this application is executed remotely by some other system. Now there are server upgrade activity carried out and application is moved to new server 2008 from 2003

There is no change in configuration section made by me.

Here is how the config file looks like

<?xml version="1.0" encoding="utf-8" ?> <configuration>     <configSections>     <section name="somesettings" type="Someapplication.Infrastructure.somesettings" requirePermission="false" /> </configSections>  <somesettings setting1="Value1" setting2="value two"                    setting3="third value" /> </configuration>

Now the issue is, post migration from 2003 ( 32 bit ) to 2008 ( 64 bit ) the windows application could not read the custom configuration defined at configSections section.

Not able to find settings required post migration which will enable the program to read config sections settings.

Any help will be appreciated !

Answers (6)
0
Manas Mohapatra

Manas Mohapatra

NA 29.3k 3.3m 7y
var is a keyword which is anonymous type and was introduced in C# 3.0. var is used to declare implicitly typed local variable means it tells the compiler to figure out the type of the variable at compilation time. A var variable must be initialized at the time of declaration which decide data type.
 
It is mostly helpful when you write LINQ statements and you need customised results, follow below snippets: 
  1. var empQuery =   
  2.     from emp in employees  
  3.     select new { prod.Name, prod.Qual};  
  4.   
  5. foreach (var v in empQuery)  
  6. {  
  7.     Console.WriteLine("Name={0}, Price={1}", v.Name, v.Qual);  
  8. }