ohh my mistake , bcz i rename both of (namespace and dll ) name to classes.
no i don't have any idea about the XML deploying . i'm just export just bench of classes using the class Library Output type in properties .
i dont know any thing about the XML Deploying .
Error 1 An error occurred while validating. HRESULT = '80004005' C:\Users\VINOD\Desktop\Aftr Solvin Error and validated\MedicalStore)4_08_12\Setup1\Setup1.vdproj Setup1 i got this error while building my setup project in vs 2008
Third, I would recommend using WiX[^] for installers if at all possible. It has many more features, and works a lot better, IMO.
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
This question cannot be answered by a forum thread, it is way too broad. You can certainly build an intranet (web) application that connects to multiple databases. Your data access layer (DAL) must be capable of connection to multiple database (via connections string or whatever strategy you use).
If you have been tasked with this and you are asking this question then I suggest you hire a developer.
Never underestimate the power of human stupidity
I am Brazilian and my English is not very good, sorry if I do not understand what I mean
This is my stored procedure:
DROP PROCEDURE IF EXISTS `SP_NewPassLogin` $$
CREATE PROCEDURE SP_NewPassLogin (IN val_login VARCHAR(15), IN val_password VARCHAR(30))
DECLARE excessao SMALLINT DEFAULT 0;
DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET excessao = 1;
IF (val_login <> '' AND val_password <> '') THEN
UPDATE tbl_user SET password = val_password WHERE login = val_login;
IF excessao = 1 THEN
SELECT 'erro' AS Msg;
SELECT 'ok' AS Msg;
This is my c# code in btnSave_Click:
privatevoid btnSave_Click(object sender, EventArgs e)
using (MySqlConnection conexaoMySQL = Conexaodb.getInstancia().getConexao())
MySqlCommand cmd = new MySqlCommand("SP_NewPassLogin", conexaoMySQL);
cmd.CommandType = CommandType.StoredProcedure;
//this is the class that gets the login name so that the User can enter a password if the bank is NULL
string retorno = cmd.ExecuteScalar().ToString();
if (retorno == "ok")
MessageBox.Show("Dados atualizados com sucesso!", "Sucesso", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
elseif (retorno == "erro")
MessageBox.Show("Informações Inválidas!", "Erro", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
catch (Exception ex)
MessageBox.Show("Houve problemas. Erro: \n\n" + ex.Message);
if (conexaoMySQL.State == ConnectionState.Open) conexaoMySQL.Close();
According to my research I have to do reference the object, how can I do this?
It means one of your variables returned null and you tried to either get the value of a property or call a method on that null.
Without the exact line that error occured on, it's impossible to narrow this down any further. Your code doesn't check for this condition. For example, conexaoMySQL may be null and you tried to call Open on it.
Looks like all the objects are created as required; the first suspect I see, is the irrelevant singleton that 'guards' the connection. You might wanna try opening and closing the connection without doing anything else, to 'test' that part of the structure.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
Hi All, I am trying to replace the text of various radiobuttons with data stored in a database. Since this is not a Windows Form application, I had to use the using keyword to create a datatable and because of that the datatable is not visible outside of the using code block. Please take a look at my code below.
string Con = ConfigurationManager.ConnectionStrings["myCon"].ConnectionString;
using (OleDbConnection OleCon = new OleDbConnection())
OleCon.ConnectionString = Con;
using (OleDbDataAdapter a = new OleDbDataAdapter("SELECT * FROM CustomerTable", OleCon))
// Use DataAdapter to fill DataTable
DataTable myDataTable = new DataTable();
int i =1;
I get the error message saying that myDataTable does not exist in the current context. How do I make it visible to code outside of the using block? Thanks in advance for your reply.
Since this is not a Windows Form application, I had to use the using keyword to
create a datatable
Uhhh, whether or not this is a Windows Forms app has nothing to do with using a using block. It's a stucture that can be used in any type of application and if you can use it or not depends on the object that your specifying in the using statement. That object must implement the IDisposable interface.
I am trying to add an element from List1 to List2 if it is not already in List2. The following is what I have and I'm getting the error message List1 is a variable but is used like a method.
List<RadioButton> List2 = new List<RadioButton>();
List<RadioButton> List1 = new List<RadioButton>();
//Add a dummy value to first index
//Generate random List index int listIndex = RandNum.Next(1, 4);
//Check if the radiobutton at index of Listindex in List1 is in List2if (!List2.Contains(List1(listIndex )))
//If radiobutton did not exist in List2, add it to List2
Please explain what I am doing wrong. Thanks in advance.