Click here to Skip to main content
15,901,853 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionSmart tags Word 2007 VSTO 2005 SE Pin
Eagle_Wizard16-Mar-07 1:03
Eagle_Wizard16-Mar-07 1:03 
QuestionAssembly not loading Pin
nutkase15-Mar-07 8:42
nutkase15-Mar-07 8:42 
AnswerRe: Assembly not loading Pin
Marcus J. Smith15-Mar-07 9:49
professionalMarcus J. Smith15-Mar-07 9:49 
GeneralRe: Assembly not loading Pin
nutkase15-Mar-07 9:52
nutkase15-Mar-07 9:52 
GeneralRe: Assembly not loading Pin
nutkase15-Mar-07 11:57
nutkase15-Mar-07 11:57 
GeneralRe: Assembly not loading Pin
Dave Kreskowiak15-Mar-07 12:48
mveDave Kreskowiak15-Mar-07 12:48 
GeneralRe: Assembly not loading Pin
nutkase15-Mar-07 15:18
nutkase15-Mar-07 15:18 
QuestionEnterprise Library Data Access Block 2.0 Pin
saltcode15-Mar-07 1:22
professionalsaltcode15-Mar-07 1:22 
Hi guys,
Please help,I am having an issue with data access block connection to the database from my class library project.
using the data access block to connect to database works fine in my website project. but i try creating a separate class library project to connect to the database i now receive an error message.

"The value can not be null or an empty string."

and this is the code:

<br />
Database motomandb = DatabaseFactory.CreateDatabase();<br />
            DbCommand motomandbCommand = motomandb.GetSqlStringCommand(query);<br />
<br />
            using(DbConnection motomanConnection = motomandb.CreateConnection())<br />
                {<br />
                    DbTransaction motomanTransaction = motomanConnection.BeginTransaction();<br />
                try<br />
                    {<br />
                        rowsaffected = motomandb.ExecuteNonQuery(motomandbCommand, motomanTransaction);<br />
                        motomanTransaction.Commit();<br />
                    }<br />
                    catch (Exception e)<br />
                    {<br />
                        motomanTransaction.Rollback();<br />
                    }<br />
                }<br />


thanks in advance
AnswerRe: Enterprise Library Data Access Block 2.0 Pin
Colin Angus Mackay15-Mar-07 1:58
Colin Angus Mackay15-Mar-07 1:58 
GeneralRe: Enterprise Library Data Access Block 2.0 Pin
saltcode15-Mar-07 2:30
professionalsaltcode15-Mar-07 2:30 
GeneralRe: Enterprise Library Data Access Block 2.0 Pin
Colin Angus Mackay15-Mar-07 7:51
Colin Angus Mackay15-Mar-07 7:51 
GeneralRe: Enterprise Library Data Access Block 2.0 Pin
saltcode16-Mar-07 2:08
professionalsaltcode16-Mar-07 2:08 
GeneralRe: Enterprise Library Data Access Block 2.0 Pin
Colin Angus Mackay16-Mar-07 4:43
Colin Angus Mackay16-Mar-07 4:43 
QuestionSetup Project don't share Crystal Reports msm files [modified] Pin
tronix0115-Mar-07 0:54
tronix0115-Mar-07 0:54 
AnswerRe: Setup Project don't pack Crystal Reports msm files Pin
Robert Rohde15-Mar-07 2:39
Robert Rohde15-Mar-07 2:39 
GeneralRe: Setup Project don't pack Crystal Reports msm files Pin
tronix0125-Mar-07 22:04
tronix0125-Mar-07 22:04 
Questionhelp to new Programmer Pin
manugrg14-Mar-07 8:33
manugrg14-Mar-07 8:33 
AnswerRe: help to new Programmer Pin
PlayByTheRules15-Mar-07 0:39
PlayByTheRules15-Mar-07 0:39 
QuestionMaskedTextBox for Percentages Pin
seenu238314-Mar-07 5:43
seenu238314-Mar-07 5:43 
QuestionWPF Usercontrol question Pin
pole_cat14-Mar-07 5:22
pole_cat14-Mar-07 5:22 
QuestionUsing DataAdapter update and returning the id Pin
d-_-b14-Mar-07 5:09
d-_-b14-Mar-07 5:09 
QuestionScreen color depth conversion Pin
priyank_ldce14-Mar-07 4:46
priyank_ldce14-Mar-07 4:46 
QuestionDatabase ConnectionProblem Pin
micydon13-Mar-07 21:21
micydon13-Mar-07 21:21 
AnswerRe: Database ConnectionProblem Pin
led mike14-Mar-07 6:32
led mike14-Mar-07 6:32 
QuestionDoc Conversion Pin
Fahima_Tahir13-Mar-07 10:02
Fahima_Tahir13-Mar-07 10:02 

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.