Click here to Skip to main content
15,890,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to clear MemoryStream ? Pin
Saikek2-Sep-08 18:22
Saikek2-Sep-08 18:22 
GeneralRe: How to clear MemoryStream ? Pin
Dave Kreskowiak2-Sep-08 18:41
mveDave Kreskowiak2-Sep-08 18:41 
GeneralRe: How to clear MemoryStream ? Pin
Saikek2-Sep-08 20:31
Saikek2-Sep-08 20:31 
GeneralRe: How to clear MemoryStream ? Pin
Santhosh Thakur12-Oct-11 1:36
Santhosh Thakur12-Oct-11 1:36 
QuestionMy sound stops playing when the form loses focus Pin
DemonicDominic2-Sep-08 10:04
DemonicDominic2-Sep-08 10:04 
AnswerRe: My sound stops playing when the form loses focus Pin
leckey2-Sep-08 10:36
leckey2-Sep-08 10:36 
AnswerRe: My sound stops playing when the form loses focus Pin
oobimoo2-Sep-08 10:37
oobimoo2-Sep-08 10:37 
QuestionRun executable Pin
netDeveloper2-Sep-08 9:55
netDeveloper2-Sep-08 9:55 
Hi,
I have a kind've strange problem in VS 2005. I have an application which, if i run and i put a breakpoint in front of creating a connection, works just fine. But if I simply run it, throws this error

{"The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception."}

Here is the code that's causing it:
_sqlConnection = new SqlConnection(Settings.ConnectionString);

where _sqlConnection is declared like
private static SqlConnection _sqlConnection = null;

and Settings.ConnectionString like
private static string _connectionString = string.Empty;
        public static string ConnectionString
        {
            get
            {
                Configuration config = ConfigurationManager.OpenExeConfiguration(Settings.AppName);
                _connectionString = EncryptDecrypt.Decrypt(config.ConnectionStrings.ConnectionStrings["ConnectionString"].ToString(),Settings.EncPassword);
                return _connectionString;
            }
        }


Any suggestions?
Thank you
QuestionSaving and Loading Information from a form Pin
Chris Kentlea2-Sep-08 9:44
Chris Kentlea2-Sep-08 9:44 
AnswerRe: Saving and Loading Information from a form Pin
Pete O'Hanlon2-Sep-08 10:13
mvePete O'Hanlon2-Sep-08 10:13 
AnswerRe: Saving and Loading Information from a form Pin
MarkB7772-Sep-08 12:58
MarkB7772-Sep-08 12:58 
GeneralRe: Saving and Loading Information from a form Pin
Chris Kentlea3-Sep-08 7:29
Chris Kentlea3-Sep-08 7:29 
GeneralRe: Saving and Loading Information from a form Pin
MarkB7773-Sep-08 12:58
MarkB7773-Sep-08 12:58 
GeneralRe: Saving and Loading Information from a form Pin
Chris Kentlea4-Sep-08 8:18
Chris Kentlea4-Sep-08 8:18 
GeneralRe: Saving and Loading Information from a form Pin
MarkB7774-Sep-08 12:17
MarkB7774-Sep-08 12:17 
Questionconnect to dataase Pin
NiloofarNoroozi2-Sep-08 7:46
NiloofarNoroozi2-Sep-08 7:46 
AnswerRe: connect to dataase Pin
Blue_Boy2-Sep-08 8:05
Blue_Boy2-Sep-08 8:05 
AnswerRe: connect to dataase Pin
Kevin Marois2-Sep-08 8:12
professionalKevin Marois2-Sep-08 8:12 
GeneralRe: connect to dataase Pin
NiloofarNoroozi2-Sep-08 9:36
NiloofarNoroozi2-Sep-08 9:36 
AnswerCP IGNORE Pin
leckey2-Sep-08 10:33
leckey2-Sep-08 10:33 
GeneralRe: CP DO NOT IGNORE Pin
Bassam Saoud2-Sep-08 11:55
Bassam Saoud2-Sep-08 11:55 
GeneralRe: CP DO NOT IGNORE Pin
leckey2-Sep-08 14:28
leckey2-Sep-08 14:28 
GeneralRe: CP DO NOT IGNORE Pin
Bassam Saoud2-Sep-08 17:20
Bassam Saoud2-Sep-08 17:20 
GeneralRe: CP DO NOT IGNORE Pin
leckey3-Sep-08 2:54
leckey3-Sep-08 2:54 
GeneralRe: CP DO NOT IGNORE Pin
chaiguy13373-Sep-08 17:37
chaiguy13373-Sep-08 17:37 

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.