ZombieCron's Q&A profile
.NET Development Using wsdl.exe with a custom binding
Hi I'm using wsdl.exe to translate wsdl documents to a c#. Now I have a little problem, my special wsdl document doesn't use the typical protocols: soap o http, it use a custom protocol. In the wsdl.exe documentation ( http://msdn2.microsoft.com/es-es/library/7h3ystb6(VS.80).aspx ) explains about a option to do it /protocol but it doesn't work for me. If I launch wsdl /protocol:customprotocol special.wsdl I got this error: services web xml protocol 'customprotocol ' unknowns in the configuration file. It is possible to use wsdl for custom protocols Thanks in advance Javier ASP.NET only supports HTTP with SOAP 1.1 or SOAP 1.2 or its own HttpGet/HttpPost protocols. What is the cus ...Show All
Visual Studio Team System Accessing TFS from a web app
I have this web application that has to access my TFS site. And even though I'm using the SAME lines of code I was using in a dummy Windows App, when I run the site I get. TF30076: The server name XXXX provided does not correspond to a server URI that can be found. Confirm that the server name is correct. I tried creating a TFS object in C# with new valid network credentials but it doesn't seem to work either. Any clues It's probably because the Team Explorer client has never been ran on that machine by the user teh ASP application is running as to register the short name "myserver" with the url "http://myserver:8080". When specifying the server, use the full URL instead, i.e. " ...Show All
.NET Development Send object to Client from Server using TCP/IP
how to send and receive object not a string(like code in the bottom) to client from server. so the client will accept object not array byte. //this is for send string TcpClient connectedClient = tcpServer.AcceptTcpClient(); byte[] bt; bt = Encoding.ASCII.GetBytes(message); connectedClient.Client.Send(bt); Because the level at which your working is so low, I don't know that you can have the client accept an 'object'. But what you can to is serialize the object into a stream of bytes (using the BinaryFormatter class) or into an XML document (using the SoapFormatter class). Once the object is in this form, you can send and receive it using the TCP classes and then deserialize the byte stream back into an object. Of ...Show All
Windows Forms Vertical Label
Does someone know how i can make a vertical label like this : H E L L O Thanks :-) That's different than the "multiline" property you were referring to earlier. That image is the same as doing the \n as you suggested earlier also I just re read (remember, only living on 2 hours sleep today) - you said multiple lines, not multiline - aaaa! My bad. But yes still, its better to have a control that does it for you than having the user know the tricks to make it multiline ...Show All
SQL Server Newbie needing help -> poll a folder for new files
I need to create a SQLNS app to poll a particular folder for mpeg files. When a new file (which in this case will be an mpeg video file) is dopped into the folder, I need to write some of the files metadata (filename, size, path) to an existing SQL database on the same server. I'd also like to send out an e-mail notifying that an end-user that a record was added to the database. The subscription piece (e-mail notification) seems easy enough. I'm curious about the implementation of inserting the file metadata into the database. I'm pretty new to SQLNS, so any help to point me in the right direction would be most appreciated. Thanks in advance! Hi - If it were me, I'd probably investigate the following d ...Show All
SQL Server Performance problem: SSAS 2005 + ProClarity
Hi, I am facing a performance problem. Here is my scenario: I am using ProClarity to create reports/graphs by connecting to ssas 2005. These are not dynamic graphs but are created beforehand in proclarity and accessed by users. The graphs enable drill-down/drill-up features. My Cube contains: 1 MeasureGroup 4 Measures 7 calculated measures 4 dimensions ( 1 time dimension: date) dimension partition count: 1,095 4,018 8 453 4,018 (hierarchy) 11 (hierarchy) 7 (hierarchy) 5 hierarchies in time dimension 1 hierarchy in other dimension 1 partition, partition count: 33,574 (current) partition size : 708.4 kb storage: MOLAP Partition aggregations: 15 current performance gain: 51% This cube is processed manually and appx of ...Show All
Visual C# converting ' ' when using Server.UrlDecode
Hi I have a problem when i use the the 'Server.UrlEncode/Server.UrlDecode' function in C#. The following code: string subject = Server.UrlDecode(Convert.ToString(Request.QueryString["subject"])); would return e.g. 'John Doe Arizona' , which is fine, except that '   ;' should sipmly be a white space. Does anyone have a solution to this Regards To convert the   to a white space you should use the HtmlDecode method: string subject = HttpUtility .HtmlDecode( HttpUtility .UrlDecode(Request.QueryString["subject"])); 1) Any reason why you want to convert the returned querystring parameter to a string using Convert.ToString() 2) Any reas ...Show All
.NET Development get treeview nodes and save to xml file.
Hy, I have a treeview in my program and i want to save all nodes to a xml file. This is my code: string fname = "favorites.xml" ; XmlTextWriter writer = new XmlTextWriter (fname, System.Text. Encoding .UTF8); writer.Formatting = System.Xml. Formatting .Indented; writer.WriteStartDocument(); writer.WriteComment( "Favorites xml list." ); writer.WriteStartElement( "Favorites" ); string nodetreeview = treeView1.Nodes.ToString(); foreach ( string p in nodetreeview.ToString) { writer.WriteStartElement( "data" ); writer.WriteElementString( "link" , p); etc.. } The code is unfinished but it goes wrong with: writer.WriteElementString("link&quo ...Show All
SQL Server How to display a table only in one page?
Hi guys, I have one table which contains more than 200 rows of data. Our customer wants this report to be displayed only in one page with vertical scorll bar on the right of it. Could anybody tell me if it is possible Thanks. Danny Right click on the table, choose properties. Under general, check the box marked "Fit table on one page if possible". Next, under Report/Properties go to the layout tab. There you have the page width, page height, margins etc properties. HTH ...Show All
Windows Forms Textbox default value
Is it possible to put a textbox on a form, set its default value to 0 then Change it in code and keep the new number, even after the app is closed I know I can change the default value of a textbox by code, but is there a way to keep your changes permanently Davids Learning You may want to look into using My.Settings to save the value when it is changed (or the form is closed) and then to read from on startup of the form to retrieve the saved value. ...Show All
Visual Studio 2008 (Pre-release) VS 2005 XAML IntelliSense
Hello, I have installed everything I can find on .Net 3 including the extensions. I am currently having issues with the XAML Intellisense not working. Not only will it not pick up my own project references eg xmlns:custom="clr-namespace:SDKSample;assembly=SDKSampleLibrary" <custom: does not work. But also when I try to tap into TextBox.Text for the <Binding> It does not recognise it. Have I missed something to install Thanks, Brett. The IntelliSense in the extensions for Visual Studio 2005 are based on the XAML Schema, which only supports the most basic WPF types. The XAML Language Service in Visual Studio "Orcas" won't be Schema-based and therefore wil ...Show All
Visual Studio Team System Strange workspace behavior
I've recently had a get operation perform oddly and while trying to find an explanation, I've noticed that the workspaces have working folders mapped that should not be (I did not add these mappings). I'm working with both the VS2003 and VS2005, and am using the Visual Studio Team Foundation Server MSSCCI Provider. Does the Visual Studio Team Foundation Server MSSCCI Provider interact with TFS in a way that might add strange mappings to a workspace Is there a way I can perform an integrity check of the TfsVersionControl database Hello, I can speak for Msscci provider. If you see dialog that let you select server path, local path and workspace (server path in form of treeview) and workspace combobox is ...Show All
SQL Server login failed for user '(null)'| trusted connection
I had a report that was working and then this error started coming up whenever I tried to view it in the preview window. login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection When I upload the report rdl to our server and use an established data source the report works fine. I have two questions. 1) Why would this error occur and 2) how do I fix it My guess is that I have to restablish a conenction to a working datasource but I don't know how to do it. Any help would be greatly appreciated. Thanks. Further to the previous post... I later closed the original report and reopened it to find the original gave the same error as above. After much investagation it ...Show All
Visual Basic Field size question
One of the fields in my Access dB is used for a phone number (XXX) XXX-XXXX I had initialy sized that field as a long integer but after creating my form in VB.Net found that I couldn't enter all of the digits. I went back to the dB design and created that field as a Double. Now when I try to run my VB form I get the error saying that the value is either to large or too small for Int32. The expected type is Int32. I tried changing the value of the Max Length property of the field which was initialy set to 32767. Then I tried to re save the .XSD file in the solution explorer. still no change. Does anyone have any idea Thanks tattoo Considering that it's a phone number and you're not rel ...Show All
Visual C# Exporting database on to the client machine
HI Is there any possibility of exporting an database on to the client machine. I have developed a product using C# and backend is sqlexpress 2005. I am packaging it using setup and deployment project of visual studio 2005. I don't know how to export database on to another machine using the setup. Hope i am clear with my problem. For connecting to mdf file using SQL express you need to set AttachDbFilename property of connection string to location where that file is stored. You need to determine that path using mdf location and also your app location. Before you create the setup you need to start using SQL express database file in order to test what connection string will be and then create the setup, and again test. If ...Show All
