Software Development Network Logo
  • IE Development
  • Visual FoxPro
  • Visual C++
  • Game Technologies
  • SQL Server
  • Windows Vista
  • Audio and Video
  • Visual Basic
  • .NET Development
  • Windows Forms
  • Microsoft ISV
  • Smart Devicet
  • SharePoint Products
  • Visual C#
  • Visual Studio

Software Development Network >> JNG's Q&A profile

JNG

Member List

Wellnow
PDWLC
Bernaridho
huysmans
Igor Solodovnikov
windypoint
Asbjørn
yema2001
Taliesin*
erikkl2000
eLado
vc#tyro
dream4jung
prashantsable
Jiju
Toolmaker
leleu
billconan
Atul Bahl
dferraro
Only Title

JNG's Q&A profile

  • .NET Development Connection Pooling randomly throwing COM exceptions

    We randomly get the following exceptions: [COMException (0x80070006): The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0 System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) +34 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +636 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.SqlClient.SqlConnection.Open() +111 System.Data.Common.DbDataAdapter.FillInternal ...Show All

  • .NET Development Problems with COM

    Hi everybody! I'm triyng to develop a simple application that find the avalable COM ports in the computer and then looks for wich one is connected to a modem by writing 254 to the com port and if we get an aswer like 2544 it means that there is a modem in that com, if we get nothing, there isn't. The proble is that I can write 254 to the port, but when I try to read everything freeze. It doesn't show an error, but the applications go death. The application code is the following: Imports System.IO.Ports Imports System.Windows.Forms Imports DescobrirCOM.Constants Public Class Form1 Private Sub Busca_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Busca.Click ' S ...Show All

  • Visual Basic using send keys to send the "^" character to a window

    I have created an multiple encryption step program for text and I am trying to add diffrent options for it. One button sends the encrypted text directly to a chat window. When a "^" is present, it just skips over it and even delets the letter the the right of it. I tryed this to fix it in my code, but to no avail, but it no longer skips the character to the right. according to the documentation, the ^ character is a special character, used for the CTRL key: http://msdn2.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx so to use them, try to enclose them in braces: "{^}" hope it helps! ...Show All

  • .NET Development .Net 2.0 InvalidCastException when passing COM invisible object in COM event

    Hi, In .Net 2.0 I'm getting InvalidCastException "Specified cast is not valid" when I'm passing ComUnvisible object to event as parameter of type Interface. The case is: I have a .Net class as COM object that is consumed by unmanaged client. The COM object has one method and one event: Here is the declaration of ComSourceInterface: [ Guid("47DE130A-8F24-4f5a-B384-9EF5B9670914"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface IComTestEvents { [DispId(1)] void EventMethod(IArgument b); } And following call causes exception: public int CommonMethod(int a) { IArgument arg = new ArgumentDer(a+5); try { if (EventMethod != null) EventMethod(arg); } catch (Exception e) { log.Deb ...Show All

  • Visual Studio Team System Not able to add the product in to cart through Ocracoke

    Hi we are using Ocrocoke(VSTS2005 PERFORMACE TOOL) for one of web application load testing .but problem that we are faching is we are not able to add the product in to cart.Scenario is User browse the site select a product and add product into the cart. Issue is same scenario is Executed perfectly through Jmeter. but not with Ocracoke. What might be a problem is it some cookie or cache related issue or some thing else Please provide ur thoughts on same we are blocked on this front. Thanks in advance Naveen Hi Rick, Thanks for reply. but still same issue persist. i have seen request and response but in web browser tab in web test result viewer. item is not ...Show All

  • Visual Studio Express Editions Package Load Failure

    Hello there, I have uninstalled all Visual Studio 2005 Beta 2 components as described, none were listed. I installed VC# 2005 Express edition today, and when loading it i get the following message: Package Load Failure Package 'Visual Studio Explorers and Designers Package' has failed to load properly (GUID ={8D8529D3-625D-4496-8354-3DA6630Ecc1B}). Please contact package vendor for assistance. This also shos up for Visual Studio Common IDE Package too. Please help, Simon., HI all. I had same errorand it's now fixed. Try this magic tool http://astebner.sts.winisp.net/Tools/dotnetfx_cleanup_tool.zip wish it would help u all ...Show All

  • Visual Studio Team System Backup Utility not working after TFS installed on Windows Server 2003 Std Edition SP1

    I have installed Team Foundation Server (single-server deployment) and Team Foundation client, on a Windows Server 2003 Std Edition with SP1 with all windows updates. Installation was successful, I can create projects etc no problem. This was a clean install on a DELL Poweredge 800 with RAID 1 SATA HDD. Prior to installing Team Foundation Server and Client I was able to use the Windows backup utility to successfully create an ASR backup and full backup of the server. After installinf TFS I find the backup utility fails with the following error: Error returned while the creating volume shadow copy: 80042301 After looking further into this, it appears that the volume shadow copy service was not started, nor could ...Show All

  • SQL Server I can't connect to my local database.mdf file

    I have just upgraded to Microsoft SQL Server 2005 Express Edition with Advanced Services SP2. Now I can't connect to my local database.mdf file. When trying to open or doubleclick or expand my .mdf file the following message pops up: Generating user instances in SQL Server is disabled. Use sp_configure 'user instance enabled' to generate user instances. What is the solution for this problem hi, by default, User Instances feature is disabled when you install a SQLExpress instance.. the Install Wizard provides an option to enable it at install time, but you can enable it via sp_configure execution as EXEC sp_configure 'show advanced option', '1'; GO EXEC sp_configure 'user instances enabled','1'; GO RECONFIGURE ...Show All

  • .NET Development IDumpable and IBindable

    Hi all, Can someone tell me what namespaces contain IDumpable and IBindable interfaces I can't seem to find either one in the .NET framework documentation. Thanks in advance IDumpable looks like a BizTalk interface (namespace Microsoft.BizTalk.ParsingEngine): http://msdn.microsoft.com/library/default.asp url=/library/en-us/sdkmref_bts/html/T_Microsoft_BizTalk_ParsingEngine_IDumpable.asp IBindable doesn't appear to come from Microsoft. Thanks. ...Show All

  • .NET Development Modify objects in SortedList

    How do I easily modify objects in a SortedList or in similar Collections classes If I create some person objects with information with i.e. age and income, and then store them in a Sorted List like (almost pseudocode): class Person ( int a, int i) { int age = a; int income = i; string name = "Anderson"; } Person p1 = new Person(25, 40000); Person p2 = new Person(35, 50000); SortedList sl = new SortedList(); sl.Add(1, p1); sl.Add(2, p2); Now I want to change income of p1. What I would like to do is to directly access the p1 object and modify the income, like: sl[1].income = 45000; But it seems to me I have to do something like this: Person p = (Person) sl[1]; p.income = 45000; sl.SetByIndex(1, p); // assumin ...Show All

  • Visual Studio Team System Team Build fails with 0 errors?

    I've noticed that in a Team Build, if you use a task like <Exec> with ContinueOnError="true" and it fails, even though the log at the end of the build says Errors=0 (the error was "converted to a warning"), Team Build still sets the status of the build as Failed when it clearly has succeeded. What gives Thanks for your feedback! Sounds like you've put a lot of thought and effort into your build process. * Your guess about how Team Build works is essentially correct - it kicks off MSBuild on TFSBuild.proj setting various properties and invoking the EndToEndIteration target. The extra stuff (updating the TfsBuild tables, etc.) happens within the various custom Tasks and with ...Show All

  • Visual Studio 2008 (Pre-release) Follow PolyBezierSegment using CompositionTarget.Rendering event

    Hi! I want that an ellipse to follow a PolyBezierSegment on a frame-by-frame basis using the CompositionTarget.Rendering event. I know the duration of the animation and I need to know at which position (x,y) the ellipse is located based on the time progress. I need to do exactly the same thing WPF does when animating an object using a PathAnimation. Thank you Have a look at the PathGeometry.GetPointAtFractionLength() method: http://msdn2.microsoft.com/en-gb/library/system.windows.media.pathgeometry.getpointatfractionlength.aspx This should give you all the information you need to perform that PathAnimation yourself. ...Show All

  • Visual Studio 2008 (Pre-release) IIS with wshttpbinding VS windows service with netftpbinding

    Which config would you recomend for a server I think that for a server it should be better the IIS (threads perhaps are used better than using "the iis inside framework 3.0". What do you think What type of application are you building Is this a service for interoperable and external consumption or internal to an application behind the firewall Your hosting environment is a choice you make based on several things: For WIndows 2003 server: For interop, crossing firewalls, HTTP - use IIS/ASP.NET For non-interop, behind firewall, intranet - use self-hosting. Either your own exe with custom code to restart and recycle service and configs, or a Windows Service if you want to have restarts handled for you. Ei ...Show All

  • Visual Studio 2008 (Pre-release) ToggleButton.IsChecked Binding issue!

    I'm using the .NET Framework 3.0 RC1, and in my code I have something similar to: < c:Voice x:Key = " myVoice " /> ... < ToggleButton Content = " Ready " Click = " ToggleReadyState " IsChecked = " {Binding Source={StaticResource myVoice}, Mode=OneWay, Path=IsItPossibleToNotReady} " /> I want to bind from the read only "myVoice.IsItPossibleToNotReady" property to the "ToggleButton.IsChecked" property. So, I use the OneWay mode. The binding works well until I push the toggle button!!! Here is a snippet you can use in the XamlPad to illustrate the issue: < StackPanel > < ToggleButton x:Name = " myToggleButton " Cont ...Show All

  • SQL Server mail task

    how to attach a xls file that will be created at run time using mail task. I get a file does not exist error if the file is not there. If the file is not there, then obviously you would expect the task to fail. If your are just having issues because at the start of execution the file is not there, but it will exist by the time the mail task actually runs, use the DelayValidation property. This will stop the mail task validating at the beginning of package execution, it will only validate immediately prior to the task execution, by which time you should have written the file. ...Show All

©2008 Software Development Network