strelzj's Q&A profile
.NET Development “SchemaImporterExtensions" helps you not to modify the Reference.cs file each time you "Update Web Reference"?
Hello everyone, I have read that “SchemaImporterExtensions" can modify the way the proxy class is generated. I currently need that ability of modifying the proxy class generation but I don't know how. My case is the following: 1- I am using the same ClassLibrary on the server and client side. 2- Web Methods are returning objects of types that exist in the ClassLibrary (example: ClassA). 3- When I “Update Web Reference” in Visual Studio 2005 it creates a Reference.cs file. It implements a new dynamically generated version of ClassA (from the WSDL), which only contains private fields and public properties with the same names as the alternate properties in the original ClassA of the ClassLibrary. 4- Each time their would be ...Show All
Visual Studio Help compiled file viewer unable to link to web page
I am having a basic problme with the HTML Help Workshop. After I compile my project and try to view it, the Help system starts, displays the Contents and Index tabs, and a page that is the IE error that the referenced page cannot be linked. I have been unable to find anything that I am doing wrong. What gives Special characters in the path such as "#" can cause problems. Create a simple folder name and see if you can get it to load from there. I believe there may also be some issues when loading a help file in the intranet zone (i.e. from a network share) but I don't recall the details. Copy it to your C: drive and see if it opens okay from there. That should help identify if it's one of these p ...Show All
.NET Development prorgamFilesPath
I'm a bit new to C# So here my problem. I am developing on XP-64bit, there is a 'Program Files' folder and 'Program Files (x86)'. The problem: I had developed this program with a Button on a 32-bit version so it automatically points to 'Program Files' but now that I'm on 64-bit version the program that the Button executes is in 'Program Files (x86)'. Is there any way for the button to search both 'Program Files' folders RizwanSharp wrote: Have you tried this string programFilesPath = Environment .GetFolderPath( Environment . SpecialFolder .ProgramFiles); Best Regards, Rizwan Oh oops, sorry forgot to mention that I am using that already. When I click the button to execute the progra ...Show All
Visual Studio Team System Merging From Branch to Branch
I have the following TFS source control layout: $/Main/ $/Release 1.0.0.0 $/Release 1.1.0.0 $/Release 1.2.0.0 ... etc Let's say I have a bug fix for version 1.0.0.0. I write the bug fix and check the code directly into $/Release 1.0.0.0. I can label this changeset as version 1.0.0.1 or branch it again or whatever. Let's say this particular bug applies to all releases and to my current Main. I can easily merge the change from $/Release 1.0.0.0 back into $/Main. No problem. But what if I want to merge that same change into 1.1.0.0 and 1.2.0.0 As far as I can tell, I first need to merge the change into $/Main and then back out to the various release branches. There is no option to do a merge from one branch directly in ...Show All
.NET Development How do i send parameters to WebMethod FROM reporting Services?
Have this web service method: [ WebMethod ] public DataSet EeoReport( DateTime start, DateTime end) {} I have this XML query that sends blanks to start and end and properly gets my data. <Query> <ElementPath IgnoreNamespaces="True"> EeoReportResponse {}/ EeoReportResult/diffgram{}/ DataSetName {}/TableName {Field1, Field2, Field3, Field4, Field5, Field6, Field7, Field8} </ElementPath> <SoapAction>http://services.mydomain.com/EeoReport</SoapAction> <Method Namespace=" http://services.mydomain.com " Name="EeoReport"> </Method> </Query> How do i add RS parameters to this query to represent start and end in the above webmethod... http://msdn ...Show All
Visual C# How to read the "% Processor Time" counter from a local computer?
Hi all, I am looking at some sample codes that will show me how I can instanciate the Processor object and then display the _Total instance of the "% Processor Time" counter. I've seen samples that shows you how to create a category/counter but they don't show you how to display the currently value of a specific counter. The idea is to build a web service and pull data counters from remote web servers. Thank you so much Joao I suggest that you place the capture code in a loop and do the programmatic average...for I am unsure if the average is available. Otherwise post a new topic with an example of what you have done so far to get more eyeballs on this issue. ...Show All
Visual Basic Formula Formatting
Amoungst other projects, I'm making a graph drawer that draws a graph from an equation. My question is this: How do I make a function that looks through a string, and if it finds X with a coefficient it replaces it with "*X" Example: X^3-2X+5 should be convered to: X^3-2*X+5 Any ideas robinjam, It is obvious that you only want to change the form shown of the statement. It means that in VB, the Console.WriteLine method contents will be changed by a function. Please write a function called SubtitudeString, using the foreach loop in it in order to check each of the X and change the output to *X. ...Show All
Visual Studio Team System How to segregate multiple TeamBuild projects?
We are currently at a certain version (1.2) and have multiple solutions, all which need to be built separately. So I have a separate TeamBuild for each. But once we move to next version I will have to recreate the TeamBuild project files for each of these solutions. The TeamBuilds node in Team Explorer will be extremely cluttered with all these projects. Is there any way to create a folder beneath the 'Team Builds' node in Team Explorer so I can group my builds by version Also, how do I delete an existing TeamBuild project TIA! Hi DQM - Just to get more context into your scenario: 1. Why do you need to build each of the solutions separately Can we build these together but drop the binaries in separate folders 2. Would you c ...Show All
Visual Studio Team System Custom Generator sample wanted
Hi, I did the walkthrough in the documentation to develop a custom generator. The walkthrough is not quite correct, but I managed to develop and compile a custom generator. The problem is that I cannot register the generator. The Microsoft.VisualStudio.TeamSystem.Data.Extensions.xml file does not exist, so I created it myself, but I think it is wrong. Can someone from MS please post a very basic sample generator with source code and registration XML file Regards Jerrie Pelser Thanks to Reflector and SysInternals FileMon I figured this one out, so for anyone else who is interrested: 1. Create a *.Extensions.xml file (e.g. TestGenerator.Extensions.xml) which you put in the C:\Program Files\Microsoft Visual ...Show All
SQL Server SSIS vs. database engine performance
We have never built a data warehouse. We are not even sure what the required features are to do this. Nontheless, our developers are exploring two ETL tools: SSIS and Sunopsis. They tend to like Sunopsis because it has been around a few years, has the equivalent of source-code modules (libraries) in the tool, has a highly granular security system, has 500 companies using it. and therefore must have survived several ETL projects. (We don't know if, or how many, real-world projects SSIS has been used for.). Sunopsis is Java based and uses its own authentication scheme (no support for Windows Active Directory yet. Bummer) To the best of your knowledge is SSIS, out of the box, missing any of the standard functionalites needed to populate ...Show All
Internet Explorer Development Problem with cancel IE navigation by using Stop() method
Hello, I try to cancel IE navigation by using BHO written in ATL (I use as example a PopupBlocker by codeproject) and to make IE to navigate to "my" url. But Stop()-Method returns the program to Invoke(...) and causes BEFORENAVIGATE2 event again instead of to stop navigation. The IE will be navigated to navigation cancel site and then to http:///. That is a code example that I use: STDMETHODIMP CPub:: Invoke(DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags,DISPPARAMS* pDispParams, VARIANT* pvarResult,EXCEPINFO* pExcepInfo, UINT* puArgErr) { if (!pDispParams) return E_INVALIDARG; switch (dispidMember) { case DISPID_BEFORENAVIGATE2: *V_BOOLREF(&pDispParams->rgvarg[0])=VARIANT_TRUE; m_spBrowser-&g ...Show All
Visual Studio Express Editions How to give application path in XML?
Hi, i have problem in XML validation. I am referring to a customised Schema(.xsd) file in my xml using "nonameSpaceSchemaLocation= C:\XML_Project\myschema.xsd" i am using visual basic application for parsing the xml againest this schema, and check if there is any error. now the problem is that i do not want to hardcode the path of the XSD file in the xml file. the xsd file shall reside at the application path of VB. How do write this in XML file Ganesh_MSDN, The following code use the XmlReaderSettings.Schemas property validates using an XML Schema stored in the XmlSchemaSet object and hope that can help you: Imports System Imports System.Xml Imports S ...Show All
Visual Studio Visual Studio 2005 Service Pack 1 Beta
I would like to know exactly what “ Visual Studio 2005 Service Pack 1 Beta” updates. Most importantly does it update the framework If someone could point me in the direction of a specification I would be most grateful. the SP1 is only for VS2005, not the .NET Framework. The Service pack updates the product which includes many fixes and enhancements. I believe it fixes a few IDE issues as well as performance in some areas. The exact details aren't known just yet but looking at the "fixes" list, there is quite a few. It's all mainly relating to the IDE functionality itself, like intellisense stops working or performance enhancements/fixes when working with large number of projects. ...Show All
.NET Development Insert via SqlDataAdapter
Hi, not sure this is feasible or if I can explain what I need to do, but... I am creating a table in my console app, and filling it with data. I then need to do an insert to the database from my table. I have tried lots of different code snippets but so far nothing is working. My database table has 6 columns but some have defaults so its only necessary to actually insert a few of the columns, and this is what I'm trying to do. Say I have columns A, B, C, D, E and F and I am basically trying to do INSERT INTO (A, C, E) VALUES --> all the rows in my datatable, which has only these three columns. The few times I have gotten my code to actually get to where its connected and trying to do the insert, I get a Value cannot be NULL err ...Show All
SQL Server Read CSV file - Save Columns into Rows
I want to import CSV file and convert columns into rows depending on Customer count(2nd record in each row of CSV file) and save to SQL table --CSV file format State, Customer_Count, Name_1, Total_1,Name_2, Total_2,Name_3, Total_3..can go upto 600 GA,2,'John Doe',14.00,'Roger Smith',15.00 FL,3,'John Doe',14.00,'Roger Smith',15.00,'Sally Cox',16.00 SC,5,'John Doe',14.00,'Roger Smith',15.00,'Sally Cox',16.00,'James Brown',17.00,'Rick Davis',18.00 Data in SQL table from csv file should look like this State,Name,Total GA,John Doe,14.00 GA,Roger Smith,15.00 FL,John Doe,14.00, FL,Roger Smith,15.00 FL,Sally Cox,16.00 I have multiple CSV files with millions of records. How can i achieve this using Integration Services or Bulk Data I ...Show All
