Click here to Skip to main content
15,890,185 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerStop posting and deleting Pin
AlexeiXX324-Apr-09 10:51
AlexeiXX324-Apr-09 10:51 
GeneralRe: Stop posting and deleting Pin
swetha sankaran24-Apr-09 13:27
swetha sankaran24-Apr-09 13:27 
GeneralRe: Stop posting and deleting Pin
AlexeiXX324-Apr-09 13:37
AlexeiXX324-Apr-09 13:37 
Question[Message Deleted] Pin
swetha sankaran24-Apr-09 7:49
swetha sankaran24-Apr-09 7:49 
AnswerRe: Object reference not set to an instance of an object. Pin
Sandeep Akhare24-Apr-09 7:55
Sandeep Akhare24-Apr-09 7:55 
AnswerRe: Object reference not set to an instance of an object. Pin
Rolando CC24-Apr-09 7:56
professionalRolando CC24-Apr-09 7:56 
AnswerRe: Object reference not set to an instance of an object. Pin
Rolando CC24-Apr-09 8:00
professionalRolando CC24-Apr-09 8:00 
AnswerRe: Object reference not set to an instance of an object. Pin
Ryomin24-Apr-09 8:03
professionalRyomin24-Apr-09 8:03 
Perhaps you need to create a new instance of your RegistryKey.

Try the using key word

using(RegistryKey rk = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft SQL Server"))
{
  String[] instances = (String[])rk.GetValue("InstalledInstances"); 
  //Rest of your code goes here
}



Not entirely sure if that will work for you.
Good luck

Cheers

Disgyza
Programmer Analyst

Question[Message Deleted] Pin
swetha sankaran24-Apr-09 8:26
swetha sankaran24-Apr-09 8:26 
AnswerRe: Object reference not set to an instance of an object. Pin
Rolando CC24-Apr-09 8:37
professionalRolando CC24-Apr-09 8:37 
General[Message Deleted] Pin
swetha sankaran24-Apr-09 8:38
swetha sankaran24-Apr-09 8:38 
GeneralRe: Object reference not set to an instance of an object. Pin
Rolando CC24-Apr-09 8:41
professionalRolando CC24-Apr-09 8:41 
AnswerRe: [Message Deleted] Pin
Ryomin24-Apr-09 8:48
professionalRyomin24-Apr-09 8:48 
QuestionThe request failed with HTTP status 400: Bad Request Pin
Sandeep Akhare24-Apr-09 7:46
Sandeep Akhare24-Apr-09 7:46 
AnswerRe: The request failed with HTTP status 400: Bad Request Pin
Rolando CC24-Apr-09 8:15
professionalRolando CC24-Apr-09 8:15 
GeneralRe: The request failed with HTTP status 400: Bad Request Pin
Sandeep Akhare24-Apr-09 8:24
Sandeep Akhare24-Apr-09 8:24 
GeneralRe: The request failed with HTTP status 400: Bad Request Pin
Rolando CC24-Apr-09 8:32
professionalRolando CC24-Apr-09 8:32 
GeneralRe: The request failed with HTTP status 400: Bad Request Pin
Sandeep Akhare24-Apr-09 8:38
Sandeep Akhare24-Apr-09 8:38 
Question[Message Deleted] Pin
swetha sankaran24-Apr-09 7:25
swetha sankaran24-Apr-09 7:25 
AnswerRe: Error in get (Only assignment,call, increment, decrement, and new object expressions can be used as a statement) Pin
Colin Angus Mackay24-Apr-09 7:26
Colin Angus Mackay24-Apr-09 7:26 
QuestionObject reference not set to instance of an object Pin
swetha sankaran24-Apr-09 7:41
swetha sankaran24-Apr-09 7:41 
AnswerRe: Object reference not set to instance of an object Pin
Sandeep Akhare24-Apr-09 7:48
Sandeep Akhare24-Apr-09 7:48 
GeneralRe: Object reference not set to instance of an object Pin
swetha sankaran24-Apr-09 7:51
swetha sankaran24-Apr-09 7:51 
Questiongridview paging gridview not visible Pin
haseeb_saeed24-Apr-09 6:19
haseeb_saeed24-Apr-09 6:19 
AnswerRe: gridview paging gridview not visible Pin
Ryomin24-Apr-09 7:51
professionalRyomin24-Apr-09 7:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.