Answer Questions
Alex114 cannot convert from System.Data.IDbTransaction to System.Data.Common.DbTransaction
i get the above error msg from this: IDataReader = returnedRecords = null; Database db = CreateDatabase(); using(DbCommand dbCommand = db.GetStoredProcCommand("sp")) { db.AddInParameter(dbCommand, "@UserId", DbType.Int, userId); if (CurrentTransaction == null) { returnedRecords = CurrentDatabase.ExecuteReader(dbCommand); } else { returnedRecords = CurrentDatabase.ExecuteReader(dbCommand, CurrentTransaction); ...Show All
Panzergruppe Link
When testing beta 1 of Visual Studio 2005, I was able to update the meta tags in the header of a master page (from any aspx page using said master page): Header.Metadata.Add("keywords", "Keyword1, keyword2"); In beta2 I'm getting this error: error CS0117: 'System.Web.UI.IPageHeader' does not contain a definition for 'Metadata' So, how do I update meta tags in the header of a master page now Where's the best resource to look up errors such as ...Show All
mtbDad Mutex could not be created
Does any one know problem behind this In my case it was an invalid "machine.config" file that caused this message. (I was trying to run the ASPWorkerprocess under a different user under XP). Another hint is to check the eventlog in such a chase. That was how i found it. After fixing the config file and restarting IIS the problem was gone. Greetings Andreas Hi! Thanks ...Show All
banjo picker Enumerating ports in use?
Hi, Is there a way to enumerate ports in use Thanks in advance, Rana It is often overlooked that a simple list of ports in use is not that useful. A given port can exist actively in multiple tuples <Protocol, local IP, localPort, remoteIP, remote port> Eventhough is hard to believe You can have two tcp connections from same local ip and local port to the same remote address as long as yo ...Show All
darbha Configuriing IIS for wildcard certificate
Hi, I am having problems with WildCard certificate. I want to use it for *.mydomain.com (example: JOE.mydomain.com or SMITH.mydomain.com..and so on...). The issue is that i dont have fixed subdomain names. It depends on the users registration. All the subdomains point to same website but the subdomain decides the content of the website based on the User name in the URL. (So if Joe wants to access his site, it will joe.mydomain.com) I ...Show All
sdbala Bound datagridview does not update proposed changes to the dataset
I have a datagridview that is bound to a dataset. Sometimes, it will not udpate information from the proposed changes to the current version of the dataset. I can force the change with .acceptchanges, but for the life of me, I cannot see why the update did not occur automatically. Is there something that I should be looking for that is stupidly obvious If anyone has any ideas, I'd appreciate the feedback. Thanks! Call EndEdit on the ...Show All
2414 Automation of Data in MS Word
Dim wordApp As New Word.Application Dim wordDoc As New Word.Document wordApp = New Word.Application wordApp.Visible = True wordDoc = wordApp.Documents.Add With wordDoc.MailMerge .MainDocumentType = WdMailMergeMainDocType.wdFormLetters Dim sSql As String sSql = " SELECT PolicyNumber * FROM Policy.dbo.PolicyNumber" Dim sConn = "DSN=CINSQL07Q\CINBLOCK.TRAD_APPS.AAG\dpowers;DATABASE=policy.dbo.polic ...Show All
Klaus Wiesel runtime error
I hope someone can help me out here. Since a few days my website gives a runtime error. I haven't changed anything, and my provider says he didn't change anything, and he can't solve the problem. Take a look at www.gratisverlanglijstje.nl/default.aspx Hey, It's impossible to tell because your app does not allow us to see the stack trace prior to the termination. You can try and reproduce the problem on ...Show All
NmS_69 Debugging .NET Runtime 2.0 Error Reporting Event: 1000
Hi, I have an application running on .Net Framework 2.0. After running for a day or so, the application stop and an error is generated by Windows Error Reporting. The message is as follows: Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 1000 Date: 18/01/2006 Time: 09:46:29 AM User: N/A Computer: myComputer Description: Faulting application myApplication.exe, version 1.0.2208.39414, stamp 43c ...Show All
66cooper How To Easily Change Connection To Access Database Created Using "Add New Data Source" And Draging Table To Form
Hello, I created a small application that works, but I want to be able to change the location of the database in a more simplier way. By this, I mean to accomplish this task, I could just delete my dataset, binding source, table adapter, and binding navigator. Next, I would add a new data source and connection to point to the new location of the database. But, this would mean that every time I do this I have to also cha ...Show All
Greg C SQL UPDATE - "No value given for one or more required parameters"
I've used this structure in several other C# database programs with success, until this app. Now I'm receiving this: "No value given for one or more required parameters." The key is SAMS_ID. The data is text, no numeric fields. The code I used is below. I've tried removing the single quotes from around the date field and also from around any fields that contain numbers but still receive the same error. Anyone know w ...Show All
_John_ Concurrency violation while row exists
Hey Guys, I'm having a weird problem. I wrote some simple application in c# which shows the data of a acces database in a datagridview. On the RowChanged and RowDeleted events of the dataset i do a dataAdapter.update(dataset). It works all fine, i can add new rows, change and delete excisting rows. All no problem. The problem starts when i add a new row and then try to delete that newly added row. I know that it executes the insert statement and ...Show All
wufei Controlling xml serialization of an optional field
Hi there. I'm trying to serialize/unserialize an object from a database (SQL Server 2k5). One of the columns is a DateTime column, however it supports being NULL - that is, no date specified. I'm using a XmlSerializer to unserialize the object from the database (getting the xml data from a query using "for xml auto"), and if the field for the row happens to be null, the property doesn't show up in the xml data coming from the dat ...Show All
curt760 XmlRootAttribute and CodeDom
Hello all, How can I generate the following code using System.CodeDom namespace [System.Xml.Serialization. XmlRoot ( "Service" , Namespace = "http: //www.domain.com" )] The code I've managed to generate is [System.Xml.Serialization. XmlRoot ( "Service" )] with this source code: type.CustomAttributes.Add( new CodeAttributeDeclaration ( "System.Xml.Serialization.XmlT ...Show All
James Curran confused by generic methods
Hi, in the code sample that follows how do i get from the MethodInfo object given the variable name 'method' in main (this method takes a string as its parameter) to the MethodInfo object that took the generic parameter in the class MyGeneric (i.e. the MethodINfo that originally described the method) I would guess by using MethodInfo.GetGenericMethodDefintion() but is says this isn't allowed due top the state of the object. I think ...Show All
