dipika's Q&A profile
.NET Development How to select XmlDocument root node with XPath slash "/"?
XPath reference says that "/" returns the root node. However, I can't seem to get it to work. Take the following as an example XML file: < xml version="1.0" encoding="utf-8" > <employees> <employee> <firstname>John</firstname> <lastname>Doe</lastname> </employee> <employee> <firstname>Jane</firstname> <lastname>Doe</lastname> </employee> </employees> I initialize the XmlDocument w ...Show All
.NET Development HTTP and HTTPS Over My Socket
I need to be able to HTTP and SSL over my own socket (Socket class). The big picture is that I'm writing a combined client and server for a protocol that sends XML messages via SOAP over HTTP and HTTPS with and without keep-alive and gzip. I'd write a web service, but it looks like that won't give me sufficient control of the underlying socket. With .NET 2.0, it looks like my life will be eased with SslStream, GZipStream, and XmlSerializer with XmlTypeMapping to help with SSL, GZip, and SOAP. I think that only leaves HTTP for the non-SSL case. 1) Is there any .NET class that can make my life easier to do HTTP when I’m ...Show All
Visual C# How do I add windows form controls without setting the positioning or location
Hi, How do I add windows form controls such as Textbox, Labels without setting the positioning. Is there something like a Flow Layout in C# without creating my own custom object to achieve this Thanks. Hi Chris, I search on the net realised there is such feature in .NET 2.0. If I create my own layout manager, isnt it wasted if I upgrade to .NET 2.0 later Or is there any other alternatives/method to add Windows forms controls without setting position or location. Once again, thanks! Buru. ...Show All
Windows Live Developer Forums Todd @ Devdays in Amsterdam question (about bots on MSN)
Hi Todd, On the devdays confernce today in Amsterdam you mentioned that to make a bot on MSN you could either go through the Partners, or you could also talk directly through MSN (but have some limitations then) and parse the send strings yourself. Now browsing the forums and the messages about the Bots I see no where mentioned that you can also do it yourself WITHOUT using these partner platforms. Could you clarify how and where I could download an SDK to talk directly to MSN myself and setup a bot Thanks in advance, Reinier v Vliet There is no SDK to talk directly to Messenger. SDK's ar ...Show All
SQL Server SQL2005 Analysis Services Tutorial Lesson 7 Deployement issue ?
Hello, I am having an issue with the "Analysis Services Tutorial" VS BI project from the BOL, "SQL Server 2005 tutorials\SQL Server 2005 Analysis Services Tutorial\Lesson7 : Defining Key Performance Indicators (KPIs)" : When trying to deploy the Analysis Services tutorial project found in "C:\Program Files\Microsoft SQL Server\90\Samples\Analysis Services\Tutorials\Lesson7" the project won't deploy, with the error : "Error 1 MdxScript(Analysis Services Tutorial) (8, 8) The 'Measures' dimension contains more than one hierarchy, therefore the hierarchy must be explicitly specified. &nb ...Show All
Visual Studio 2008 (Pre-release) browser app questions
I have a few questions about browser apps. I guess you can't use NavigationWindow in browser applications as this causes runtime failures, can you advise on the best way of hiding the browser UI Also a ny reason why the following. < Style x:Key = " MouseEnter " TargetType = " {x:Type Image} " > < Style.Triggers > < Trigger Property = " IsMouseOver " Value = " True " > < Setter Property = " Image.BitmapEffect " > < Setter.Value > < OuterGlowBitmapEffect GlowColor ...Show All
Windows Forms Dimming a class based on a choice
Hello all, Here's my delma, I have an MSSQL database and a Sybase database that can be used with a spacific application, I have the .NET data providers for both and have created 2 classes based on their respective providers, the classes are identical in every respect except the provider from which they are based. What I am looking to do is based on an option on startup instanciate the proper class. The problem I have is, what do I do with my base class Here's an example. Friend BaseVariable as SomeClass If MSSQL = True then BaseVariable = New MsSqlClass Else BaseValiable = New SyBaseClass End If The Friend var ...Show All
.NET Development " is not a valid Win32 application ??!
Hi, I'm just building a .net 1.1, VS2003 project on VS2005 with .NET 2.0 for the first time. I have a class library and a winforms app that references it. As soon as a class from the library is instantiated, before its constructor is entered, i get a BadImageFileFormat exception with the message: " is not a valid Win32 application Needless to say I agree with the essence of the message but I fail to see why such a fact is stopping my app from running. Is this some kind of assembly binding problem Any help greatly appreciated. If you've converted a VS2003 solution to VS2005, the referenced DLLs sometimes don't get converted proper ...Show All
Visual C# server client data send problem
Hi. I am able to successfully connect the client and server together using the Sockets/tcpclient/tcplistener and able to send messages between each other successfully. the problem is this: when the client sends "[-]RF[-]" to the server, the server checks the incoming data, if it is "[-]RF[-]" then it sends back to the client the file name, for each file in the current working directory of the server. after each filename, it sends that name back to the client, the client should recieve it... and it seems to do this. however, it seems as if the client is recieving this in 1 big long string. This is not what I have told the server to do: SERVE ...Show All
Windows Forms How to Create Subfolder inside Data folder during ClickOnce Installation
Hi there gurus of this world! My application requires to have a separate folder (where other files are installed) inside the Data Directory of a clickonce application. Is there any way ClickOnce can create this folder during installation If you want to create directory dynamically, you can add script, which will be excuted in installation, and which will create required directory. -thanks ...Show All
.NET Development xml file data into dataset---urgent
hi XML Design Issue : “.NET Datasets require that a table can only be a child of one other table.” I am trying to show xml file data into datagrid through dataset I getting this problem when i am trying to load xml schema into dataset ,i searched in google i found a article that this is bug in .NET . "Microsoft has identified this as a bug (Q325695) and their knowledge base article [MS-Q325695] gives more information" could u plz suggest me solution to over come this problem urgent That's still a limitation on DataSet. You'll have to transform the xml source to filter/change the data. --VV [MS] vascov@microsof ...Show All
Windows Forms ComboBox problem (NullReferenceException)
Hi all. I have a problem with a ComboBox. When I leave my form I always get this Exception. I already wasted a lot of time trying to find out whats happening. If the control is correctly initialized why I always get this exception when I close the form Any ideas Besides this the event SelectedIndexChanged is thrown a lot of times even when the user dont change nothing. Any ideas about when this event is thrown during the control lifecycle Thanks in advance for any help. Best regards LFS Hi, I'm using C# and Visual Studio 2005. I provide a sample of the code I'm usi ...Show All
Visual Studio What files to store in Version Control?
I'm brand new to Visual Studio (I have version 2005). I've created a project (solution I'm not sure of the difference) and I'd like to know what files I should store in my version control system, so someone else could check them out and use them. By the way, the version control system I'm using is NOT SourceSafe. I'm sure there's some documentation on this, but I can't find it. I would imagine I don't need all files in all folders, right So what should I save and what can I ignore Thanks. -Dan Dan, By default, your solution and projects will try to save the appropriate source files. Local configuration f ...Show All
Visual C++ DB error : State:37000,Native:-3102,Origin:[Microsoft][ODBC Microsoft Access Driver]
Hi all, I am santosh . I faceing prb with VC++ 6.0 app. by DSN connection,I want to change database form MS SQL Server7.0 to MS Access 2003.so what should i change in VC++ source code by that i wont get the following error :- State:37000,Native:-3102,Origin:[Microsoft][ODBC Microsoft Access Driver] Regards S. Santosh Naidu Hi Santosh, Try posting in the newsgroups at http://msdn.microsoft.com/newsgroups/topic.aspx url=/MSDN-FILES/028/201/015/topic.xml since this forum is specific for VC 2005 issues. Thanks, Ayman Shoukry VC++ Tea ...Show All
Windows Forms .Net 2005
Has anyone be allowed to compile from Visual C# Express .Net 2005 I get an asembly validation error but with no description :/ I dont have the Framework directory in Microsoft.NET folder. ...Show All
