Aravind_Sekar's Q&A profile
.NET Development read xml from internet
Hi, I want to read an xml file from the internet. The file is provided by a web site and is a result of a query. More precisely, this link http://www.localcallingguide.com/xmlprefix.php npa=250&nxx=423 produce an xml file. How can i get it in .net I have tried a webrequest and I always get a timeout exception. Thanks .NET 1.x has XmlTextReader to parse XML, that works flawlessly for me here with the URL you have provided: XmlTextReader xmlReader = new XmlTextReader(@" http://www.localcallingguide.com/xmlprefix.php npa=250&nxx=423 "); while (xmlReader.Read()) { Console.WriteLine("Found node of type {0} and name {1}", xmlReader.NodeType, xmlReader.Name); } xmlReader.Close(); ...Show All
Visual Studio Team System Unsuccessful restore on a different server
I restored all the databases using msdn document 252516 found here http://msdn2.microsoft.com/en-us/library/ms252516.aspx However I run into issues when I get following section of the document: To Restore the connection strings on the Report Server 1. On the Team Foundation application-tier server, open Internet Explorer and in the address bar, type http:// applicationTierServerName /reports . I get page not found error. When I get to the last step of the document which updates client cache for work items and requires one to goto following link: 2. In the address bar, type the following address to connect to the ClientService Web service. http:// applicationTierServerName :8080/WorkItemTracking/v1.0/ClientService ...Show All
SQL Server How to hide parameters information from URL
I am using sql 2K reporting services: Please does any one has an idea how to hide the parameters information from URL completely. I am calling the reports via aspx page, using a URL and in the url placing all the parameters., is it possible to hide just the parameters information. i don't want to allow users to change the parameters directly from IE. or is it possible to encrypt them. Please help, i have been struggling for this and don't get no clues at all how to go forward with this. Thank you vfery much. Jens Suessmeyer wrote: OK, but why are you doing so as you are using a .NET langauge Hi Jens ! Because my page must link to a made page which only recei ...Show All
Visual Basic Help with code: don't know whats wrong
I need some help with some code I have three compiler errors. in here Imports Microsoft.VisualBasic Imports System Imports System.Collections.Generic Imports System.Text Imports System.Windows.Forms Imports System.Runtime.InteropServices Public Class Ship Public Const _Ship As String = "Image files/Ship1.gif" Public Const _speed As Double = 150 Public Sub New ( ByVal gameState As GameEngine , ByVal x As Single , ByVal y As Single ) MyBase .New( gameState, x, y, _Ship ) <-Too many objects to 'public sub new() End Sub Public Sub Update( ByVal gameTime As Double , ByVal elapsedTime As Double ) Dim idle As Double ...Show All
Visual C# How can I access parameters given from the Command Line?
If I choose to run a program the following way Start > Run "MyCSharpApp.exe" "Some Text" How do I access "Some Text" TIA Mike Could you be more specific with what didn't work The Main method should be application's default entry point which gets called every time the application is started. [The default Main method is located in the static Program class in Program.cs]. Andrej ...Show All
SQL Server Need textboxs in a table to show zeros if no record found - not a NoRows message
I need a way to have the text boxes in a table to show a 0 if there is no record found for the query (not looking for a NoRows message). I've tried setting a default value for the textbox, but it isn't displayed since the query is empty. Is there a way to setup the query to have an if statement that would return a value of zero for the fields as in: If recordcount =0 then set field to 0 The textboxes are visible when the query returns data. I solved it by creating a record on the database that had zeros and then selecting that record if the original query is null. Basically the query is: If exists(Select * from table1 where id='1') select * from table1 where id='1' else select * from table1 whe ...Show All
SQL Server How to stop running DTS package if my view return zero record?
Hi everyone, I've created a DTS package runs on every day and night, but now my boss was asking if I can insert an exception code to check the view file. So.. I need help from you guys, cause I don't know How. This is my DTS description. My DB will generate a view called "Calls to Add", then it will run the Transform Data Task and insert into a txt file. once it finished, it will run the Batch file. that is it. Now My boss wants me to add a checking code between "View to Txt" procedure. If the view has no record inside, than the DTS package should stop and not run. BUT How Can someone please help Thanks OK. here's another idea....slightly different from Phil's. Give it a shot. (using ...Show All
Windows Search Technologies Registering IFilter with WDS on Vista
I am creating an IFilter implementation to index custom content on Windows Vista. I read through the registration instructions at: http://msdn2.microsoft.com/en-gb/library/aa965717.aspx#filters_to_register It looks like these instructions will not work for Windows Vista. The last registry entry in the instructions is under HKLM/SOFTWARE/Microsoft/RSSearch. However, in Vista RC2 this does not exist, and all search keys are instead under HKLM/SOFTWARE/Microsoft/Windows Search. So what do I have to do, if anything, to register my filter's extension with WDS on Vista so my content will be indexed ~ DavidJ It looks like the problem had nothing to do with the registration. I finally used procmon to track exactly what the filte ...Show All
Visual Studio Express Editions ??? making sense out of log files - I need some help
OK here goes it, it's my first post and I'll start with 2 questions, sorry... these are the log files I have: Sep. 07,2006 08:08:13 ***** Start Sequencer Control Window Ver.1.49-7.5 Aug. 19, 2005 ***** Sep. 07,2006 08:08:13 USE TEMP. - VOLT. TABLE=1 , USE VOLT. OF HEAD INFO.=1 Sep. 07,2006 08:08:13 HEAD VOLTAGE No.1= 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 Sep. 07,2006 08:08:13 HEAD VOLTAGE No.2= 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 Sep. 07,2006 08:08:13 Head,Axis = FFFFC Sep. 07,2006 08:08:13 FIX data 40 400 10 255 0 40 Cartridge=1 600dpi FIFO=1 ----- Sep. 07,2006 08:20:08 [MAIN]switch ON Sep. 07,2006 08:20:40 Unit 1 - 1 4 00100100 00652985N264 00A773 Sep. 07,2006 08:20:40 Unit 1 - 2 4 00010010 00632862N262 00A717 Sep. 07,200 ...Show All
.NET Development Joining Strings together in a colum from a text file to one row
Hi I am trying to join the following data in a text file to a single row of data in the same textfile.. 1, -1, -0.683080822441113, 1, -1, 0.683080822441114, 1, The code I am using is: thefront=DecisionsWarrior.getDecisionsWarrior(myMeanArray,arCovar,nports,target,bounds); // FileStream fs = new FileStream(@"C:\Warrior\DecisionOutputs\Outputs.txt",FileMode.Append,FileAccess.Write); using (StreamWriter sw = new StreamWriter(fs)) try { double [] Positions = new double [GlobalCcys.CurrencyPairsData.Length]; Positions = ( double [])thefront[2]; foreach ( double dline in Positions) { sw.WriteLine(dline.ToString()+","); sw.Flush(); } sw.Close(); fs.Close(); ...Show All
Visual Studio Tools for Office Word Interop Hangs When Deployed To Server - Help!
Dear all, I have developed a method in C# which creates an instance of Word, adds a document, then populates the Word doc with some text. It then saves it, closes the doc and quits Word. Now this is the problem: The method works perfectly on the command line and through IE on my development machine (Win XP Pro, Office 2003) but it fails to work on the server (Windows 2000 Advanced Server, Office 2000) when called through IE (it works fine through the command line even on the server!) I can see (using ProcessExplorer) that the instance of Word is being created and is sub-process of svchost.exe and that the actual Word doc is also being created on the hard disk. However, the ...Show All
Visual Studio Express Editions re date difference
Hello i am writing to a database, it worked fine with no error until i added the time /date difference. Can you tell me why the datediff is not working please Many Thanks here is the code from the button Private Sub Shift_logBindingNavigatorSaveItem_Click_1( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Shift_logBindingNavigatorSaveItem.Click Dim jOB_TIME As Integer = 0 Try Me .Validate() Me .Shift_logBindingSource.EndEdit() Me .Shift_logTableAdapter.Update( Me .Glat_shift_logDataSet.Shift_log) jOB_TIME = DateDiff(DateInterval.Minute, Time_startedTextBox, Time_finishedTextBox, FirstDayOfWeek.Monday, FirstWeekOfYear.Jan1) MsgBox( "job took " & jOB_ ...Show All
Visual Studio Team System Bug: Results as Text pane truncates some column names longer that 10 characters
From the Tools, T-SQL Editor, New query: When I select Results as Text (click on the icon in the Sql Editor toolbar) for select query output, all columns where the data is less than 10 characters will truncate the column name to 10 characters if the column name is longer that 10 characters. Here is a sample where the BrokerageCode column is truncated: UserID BrokerageC LoginID ------ ---------- ------- 90 admin test 01 Also, the Tools, Options, Database Tools, Query Execution, Query Results option pane is blank in CTP3 (this may "by design" in this CTP). You should post this as a bug on the connect site at http://connect.microsoft.com ...Show All
SQL Server New AdomdClient.dll for SS05 SP1 Cumulative Hotfix?
I've installed the SQL Server 2005 SP1 Cumulative Hotfix bringing my server version to 9.00.2153. However, my .NET project is referencing an AdomdClient.dll which still has a File Version of 9.00.2047.00: C:\Program Files\Microsoft.NET\ADOMD.NET\90\Microsoft.AnalysisServices.AdomdClient.dll Assembly Version: 9.0.242.0 File Version: 9.00.2047.00 I've searched my machine and didn't find a newer AdomdClient.dll. Is this OK Is there a 9153 assembly version somewhere that I need to get Thanks, The answer is pretty simple: Not all the files are getting updated as part of SP1. Some of the files that didnt get any updates and SP1 simply doesnt need to update them. Edward Melomed. -- This posting is provided "AS IS" ...Show All
Visual Studio Express Editions compiler options
Hi Where can i found refernce for the compiler options for VSE C++ compiler /Torvie MSDN is your friend http://msdn.microsoft.com/library/default.asp url=/library/en-us/vccore/html/_core_compiler_reference.asp ...Show All
