Darrin Turner's Q&A profile
.NET Development Continued Problems With VS 2005 and Async calls
So everything I have read says if I add a web refferance to a project it automatically generates a proxy file with the begin and end functions for Async calls, however in vs2005 this is not the case. I see a call named [FunctionName]async but there is little I have found online to explain how to use it and the sites I have found say there should be a complete call in the proxy which it does not have. In order to solve the problem I had to manually generate a proxy file using wsdl.exe and that gave me the traditional begin[functionname] and end[functionname]. Anyone have a clue what the deal is or have a simple example using VS2005 and just adding a web referance Thanks Jackie ...Show All
SQL Server SQLServer 2005 JDBC Driver - Date rendered correctly on local environment(windows), but not on Websphere server (unix)
Hi, We are trying to move our application from SQL2005 to SQL2005, we are using 2005 jdbc driver 1.1. The problem we have is, when a date is retrieved from the database, only the year part got correctly, but the date is automatically set to January 1 of that year. The interesting thing is this problem doesn't occur on local development environment (developer's windows platform), it only happens when we deploy the application to production server (unix). Does anyone know what is going on, how to fix it Thanks. Cathie We are experiencing the same problem. We use IBM VM V1.4.2. The problem can be reproduced even in standalone applications, using DriverManager directly. The problem doesn't ...Show All
Visual Basic How do I get a URL from a web search
I am using Visual Web Developer 2005 Express. I want to be able to click a button that will start a browser to search the web, [eventually] returning the URL to my program. I.e., a function like the "Create Hyperlink" in MS Office products. I find that I can't access the Internet Explorer object model as I would in Visual Basic, response.redirect doesn't seem to have a parameter to create a separate browser session, and neither this nor a hyperlink offer any way of getting the URL back (unless I'm missing something). So I seem to be stuck. Can anybody help Regards, Robert Barnes Thanks Spotty, I'll try that. It is often very difficult to work out which forum one should post to - I would have thou ...Show All
Visual C++ menu problems
hi there I have one little problem the thing is about menu I would like to make some elements gray and it dosn't work, menu id is IDR_MENU1 I tried to use a EnableMenuItems but it dosn't seem to work help me please PS I am using VC++6 if only it is important Adrian Proszczuk Poland Dear Sarath actually there is no code 'cos I havn't the hell idea what to write anyway I basing on some example from book I wrote something like that: void CHHManagerDlg::DisableButtons(void) { CMenu menu; CMenu *ptrMenu_0; CMenu *ptrMenu_1; menu.LoadMenu(IDR_MENU1); ptrMenu_0=menu.GetSubMenu(0); ptrMenu_1=menu.GetSubMenu(1); ptrMenu_0->EnableMenuItem(IDM_FILE_HH_TO_ALPRO,MF_GRAYED); ptrMenu_0-& ...Show All
Windows Forms BindingSource.AddNew from a DataGridView
I have a DataGridView bound to a BindingSource whose DataSource has been filled from a SQL table. A dgv popup menu offers an 'insert a copy' option, ie it allows the user to insert a new row initialised to values in the row under the mouseclick. I cannot insert rows at dgv level because direct dgv inserts are not permitted when a dgv is bound; evidently .NET 2 evidently wants me to use BindingSource.AddNew. Very well, I add a handler to be called by BindingSource.AddNew ... bindSrcMaster.AddingNew += new AddingNewEventHandler(bindSrcMaster_AddingNew); The popup menu item event handler for CopyRow can figure out which dgv row to copy ... private void CopyRow(object sender, EventArgs e) { ToolStripItem menuItem = sender as ToolStripItem ...Show All
Visual Basic help with vbscript!
Just started a new job and I have been asked to write a script that checks the size of a backup file (NT backup *.bkf) to make sure its over 10mg and then email a few people if its not.. Now my scripting skills aren't very good..this seems to work only when I enter the whole name of backup file that changes everyday ------------------------------------------- Option Explicit Dim FSO, File, strSize, strFile, alarmSize, WshShell ' As scheduled scripts dont like arguments tell the script which file to check strFile="c:\ backupdc *.bkf " ' The size to check against in Megabytes alarmSize=10 Set FSO = CreateObject("Scripting.FileSystemObject") Set File = FSO.GetFile("c: \backupdc *.bkf & ...Show All
.NET Development Binary stream '0' does not contain a valid BinaryHeader Exception
Hi, I'm having trouble using the BinaryFormatter class. When I call Deserialize (see below for code sample), I get this exception: System.Runtime.Serialization.SerializationException: Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization. Public Overrides Sub WriteXml( ByVal writer As System.Xml.XmlWriter) writer.WriteStartElement(XmlConstants.NamespaceQualifier, XmlConstants.ObjectElementName, XmlConstants.XmlNamespace) If m_Formatter Is Nothing Then & ...Show All
.NET Development Cryptic exception...A call to SSPI failed...
Hi All, Been working this issue for a few days now, here's the deal. I have a bit of VB.NET code that uses an SslStream object to communicate with a Java application over SSL. The Java application uses JSSE to facilitate SSL. The VB.NET SslStream code works fine on any machine thus far except for one. On this particular machine, when the VB.NET code calls the AuthenticateAsClient method, the following exception is raised: System.Security.Authentication.AuthenticationException: {"A call to SSPI failed, see inner exception."} Data: {System.Collections.ListDictionaryInternal} HelpLink: Nothing InnerException: {"Invalid flags specified"} Message: "A call to SSPI failed, see inner exception." Source: "Sy ...Show All
Visual Studio Express Editions Clean Install of Framework 3.0 + VS Express Editions
Are they compatible , should I install first the Framework 3.0 and then VS Express . This's a clean install in a xp sp2 machine. Sorry, and one more : Which version of framework is embedded in the VS Express Edition install Thanks! from Argentina! Express is based on .Net 2.0. And .Net 3.0 is also based on .Net 2.0. 3.0 uses the same base class libraries it just adds new technologie WPF (aka Avalon), WCF (aka Indigo), WF (workflow). So you should be fine installaling them both. Starting with .Net 3.0 should be OK. -- SvenC ...Show All
Visual C++ what is the difference between a fatal error and a "non-fatal" error?
this is my understanding of it but im not sure if i am right. fatal error: this kind of an error causes the program to crash as soon as its encountered. therefore, if a fatal error is encountered in the third line of a 100 line program, only the fatal error will be displayed and you will be told that your program has just one error (assuming there are no errors in the first two lines) even if there are 40 more errors in your program from line 3 to line 100. this is because, like i said before, as soon as it encounters the fatal error on line 3, it stops and doesnt go looking for errors any further. this means that when u get a fatal error and fix it, the compiler does not stop at line 3 but then goes on and finds the other 40 erro ...Show All
SQL Server EXECUTE AS , fatal exception
Hi There If i add a new sysadmin login and that login is a user in a DB. If i execute the command EXECUTE AS 'LoginName': I get the following error: SqlDumpExceptionHandler: Process 57 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process WHats up with this If my dbo for this db is linked to a sysadmin login i have no problem with EXECUTE as 'dbo'. WHy do i get fatal errors when trying to execute as a a login name that is sysadmin On the net all referencing to the fatal error have nothing to do with EXECUTE AS Thanx Thanx Raul I will try the execute as login. Yes this database was upgraded from 32bit sql server 2000 SP3 to S ...Show All
Software Development for Windows Vista Parameters (in/out)
Hi, I am new to the WWF world and have simple questions. I have an application that sumbits and order via a Standard .NET WinForm. I need to validate just the order value that is greateer than X then fails else approves it. I have a Worflow that houses one activity (for now) which validates the value. This activity has a property called "OrderValue" and a property called OrderID (if approved this will be populated). What is the best way of passing the order value to the activity from the WinForm, do I pass it to the workflow itself and the workself will then have to pass this to the activity or do I need to access the acivity from the WinForm Also how do I get a result back at the end of the workflow Manys tha ...Show All
Visual Studio Express Editions Connection string
Hi, I want generate the connection string with a click in database explorer , add connection , etc. But, the string that I want it's: (and works, because I try) "Data Source=Pinho\SQLEXPRESS;Initial Catalog=Transduo;Persist Security Info=True;User ID=sa;Password=xxxxx" and only do the string like that: "Data Source=.\SQLEXPRESS;AttachDbFilename="C:\Programas\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Transduo.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True" when I try to remove the AttachDbFilename="xxx", the program said: "No database file was specified." I really need the connection string above, Anyone can help me thanks, I resolved this situation, with a l ...Show All
Visual Studio Tools for Office Custom form is not getting displayed for first time
Hi, I have designed a custom Task form and published it. My code to create task item using custom form is as show below. Even though I have specified Message class, the default form is getting displayed for the first time. If I close outlook and open again, the task item opens with desired custom form. Am I missing some thing in the code Please help me out... I am using Outlook2003, C#,VSTO2005 Code : MSOutlook.TaskItem taskItem = (MSOutlook.TaskItem)this.CreateItem(MSOutlook.OlItemType.olTaskItem); taskItem.MessageClass = "IPM.Task.MyForm"; taskItem.Write += new MSOutlook.ItemEvents_10_WriteEventHandler(TaskItem_Write); taskItem.Open += new MSOutlook.ItemEvents_10_OpenEventHandler(TaskItem_Open); taskItem.Display(missing); Tha ...Show All
Visual C++ ATL IDispEventSimpleImpl reverse order bug still present in VC++ 2005 ????
I'm cross-posting my question to this forum (original here : http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1173728&SiteID=1 ) as it seems that ATL is also mentionned here. Sorry, if it's a bad practice ! I'm currently implementing an event sink with IDispEventSimpleImpl. I have the same problems than the ones described in KB288724 ( http://support.microsoft.com/kb/288724/en-us ), I'm receiving arguments in reverse order. What is confusing me is that this rather "old" knowledge base article applied only to Visual C++ 6.0. By looking into atlcom.h from VC++ 2005, it seems that IDispEventSimpleImpl::InvokeFromFuncInfo is the one described in the workaround section of KB288724, but I'm not sure with IDispEventImpl: ...Show All
