Beth31's Q&A profile
Visual C# How can I Unzip a file?
Hello, I wondering how it's possible to unzip a file using C#. Simple unzip. Is it possible without third party components You can try System.IO.Compression.DeflateStream. It requires .NET 2.0. If this is not an option for you, or you must handle zip files containing multiple files, you can also use the shell, as outlined in this example . HTH --mc ...Show All
SQL Server Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
Hello all - I'm trying to connect to a Sql Server 2005 database from my local development machine, which is running IIS 5.1 (Windows XP Pro). The web application is not using impersonation and has anonymous access enabled. In my system's machine.config file, I've set the processModel section to look like: <processModel userName="System" password="AutoGenerate" /> This has been working fine for us connecting to SQL Server 2000 databases (running on Windows 2003). When we connect, I access Sql 2000 databases under the context of "OurDomain\MyMachineName$". However, we've recently installed Sql Server 2005 on a new Windows 2003 server & when I connect to that server, I receive the error: Sys ...Show All
SQL Server Multiple SQL Server Native Client Versions
One of the big problems with the old MDAC was different versions on different client machines. You would test your app with the latest version say, but when you deployed it, it might fail as the client has a different version. My company develops software for Municipal Government clients. These clients use other SQL Server applications as well as ours, but they can only use one version of the client software (MDAC) on a given desktop. That means if we require a particular MDAC version, but the clients other applications from other vendors don't officially support that MDAC version, the client is in a real jam. Our software also supports Oracle, which allows our software to specify a particular Oracle Home which points to a directory ...Show All
Visual Studio 2008 (Pre-release) SQO Documentation For Sum and Average Operators
In the May CTP SQO documentation, for the Sum operator, the docs state that null values will not be included in the sum. What value could you add to the sum for a null value But, for the Average operator, no such statement is made. So I am curious, what is the defined behavior going to be for determining the average if some of the elements are null Since an average is the sum divided by the count, will the null elements be included in the count, thereby lowering the average I haven't tested the code to see how it behaves yet because I care more about the defined behavior, than the way it is currently implemented. As a developer, I could see wanting to be able to do it either way. Sometimes I may ...Show All
SQL Server SQL 2005 Express New Login
Hello all Im new to SQL 2005 express so please bare with me, I have set up wireless peer to peer network and I am trying to access an express database from one machine to another. I can transfer files no problem. When I try to create a new login, I am forced to only select logins local to the machine with the database. When I try and create a new login by typing <machinename><windows account > of the second PC, SQL can not see it. I have tried both Windows authentication and mixed mode... no success. Any ideas Thanks That is standard Windows behaviour: either use accounts or groups from the local machine or make the machine member of a domain to allow domain users to get ...Show All
Software Development for Windows Vista Normative Schema for WF XAML?
Hi, I don't think this question has been asked since last November. Is there a schema for XAML I'm working on some bits to generate workflow types and would to do less reverse-engineering of what Dev Studio produces. Thanks. - Erik Here is a post that may help find what you are looking for: http://blogs.msdn.com/wpfsdk/archive/2006/12/08/warning-xsd-xaml-whatever.aspx ...Show All
Software Development for Windows Vista Organizational Certificate or 'Microsoft Authenticode' Code Signing Digital ID
Hi, I am just wondering if the VeriSign Organizational Certificate is sufficient to pass the Certified for Windows Vista Logo Program or if we need to buy the much more expensive VeriSign 'Microsoft Authenticode' Code Signing Digital ID . Does anyone know Bye Sven Sven, I may have misled you, this link https://securitycenter.verisign.com/celp/enroll/retail;jsessionid=FsLZu80J2wE7GYi0UFjjolkno3PGXLJ4qYnTORbym73D7wMPoRTw!1037504473 actually still works and it's the same I used buying the cert. that works for both purposes. It's from the link on the Innovate On Vista web site: http://microsoft.mrmpslc.com/InnovateOnWindowsVista/secure/Dashboard.aspx . Bert ...Show All
Windows Forms WebBrowser control in VB.Net
I am successfully using a webbrowser control to open a URL from a VB.Net project, but really need to mimic the Internet Explorer interface more accurately. I have found a C project sample which does exactly this in Net Framework, Windows Forms, User Interface section ( http://www.windowsforms.net/Default.aspx tabindex=4&tabid=49 ). Does the same code exist in VB.net (or do I have to get hold of a C-VB code converter ) I don't want to use the Process.Start functionality to start the default web browser as the app need to use the information available when the webbrowser control closes. Thanks ...Show All
Visual Studio VS2005 Trial
I am considering visual studio 2005 (standard...) and want to download the trial but the website keeps forcing me to enter an order DVD page. Links that tell me I can either order the trial DVD or download the trial inevitably lead to an order page. Could someone tell me how to download the trial Thanks! -Thomas I finally was able to make it work when i renamed the file extension to ".iso" instead of ".img". As soon as I did this my burning software recognized it. Then I burned it to a DVD and then installed from the DVD. When i finally installed the trial and made a quick app, i published it and found a temporary product key with my setup files. Does this mean that ...Show All
SQL Server Multi-value parameters returning 'ALL' or an itemized list
I work in the Data Warehouse where like in most large companies we run very long and complex SQL with lots of data in parameters are datasets. Due to the nature of our SQL I need our multi-valued parameters to return (something along the lines of...) ‘ALL’ if all values are chosen or an itemized list (as it already does) only if not all values were selected. The SQL would look like this... where ‘ALL’ in (@PARAMATER_NAME) or table.field in (@PARAMETER_NAME) I can not seem to find anything about this online, which I would assume is a very common issue. Can anyone help me with functionality I had also thought of ‘UNION’ing in ‘ALL” and from what I read online it was a ...Show All
Visual Studio Team System Source control check type
In SourceSafe it was possible to change the type of comparison to determine wether a file was changed. There were three possibilities: Contents, Time and Checksum. Do you know if it is possible to configure in Team Foundation Server Which one is set by default Thanks We use the MD5 to determine if the file has changed or not. This determination is part of our logic to figure out whether we need to upload the contents of the file on disk (to determine if they've changed) and also used in the new "tfpt online /diff" So, no, this isn't configurable like it sounds like it was in SourceSafe. ...Show All
Visual C++ How to overload the ">>" operator for a user-defined type
Hi, I have a Location class in my project, and I need to read a Location object by using cin >>, eg: Location locationObject; cin >> locationObject; I'm wondering if there is a way to overload the >> operator for a user-defined type like this. I trid to code the overloading method: istream& operator >> (istream& is, const Location& addLocationObject) { return is >> addLocationObject; } The compiler does not complain, but there is a error at runtime when the >> operator is called: "Unhandled exception at 0x00414219 in C++Project.exe: 0xC00000FD: Stack overflow." and it's pointing at the second line of the method above. Any suggestion Thanks in ...Show All
Windows Forms [c# .net 2] Exporting data from dataGridView
Evening. I have an unbound dataGridView which I'm populating programatically (not using a dataset) from xml/user entered data. What i now need to do is when the user clicks save i want it to write all data from the dataGridView to an xml file. I think the only/best ( ) way to do this is to iterate through each row/cell and write the xml file manually. Problem is, I just cant seem to do the forloop right. Can someone help me out Thanks. Michael It's up to you to decide your xml schema. The only reason i used column name is that when you want to load the xml back lateron, it's easier to map the values back to the columns. Otherwise you have to use your own code to map your element name back to column name. A ...Show All
Windows Forms Child controls are not removed from Controls Collection from within IComponentChangeService event handlers
Can someone who knows more about this than me please help : I have a custom form with a custom designer and a custom CodeDOMSerializer. When my form changes at Design-Time, my custom code serializer writes info about the form's child controls. HOWEVER, I have a problem... I need to know when a child control such as a button is deleted from the form on the design surface. So I listen to BOTH the IComponentChangeService's 'ComponentChanged' and 'ComponentRemoved' events. The ComponentChanged event is fired when the form's ControlCollection is modified and the ComponentRemoved is fired when the button is removed. But from within both of these event handlers, when I iterate through the Child Control Collection of the actual form, the ...Show All
Visual Studio Express Editions Web Browser Progress Bar
Ok, so recently I downloaded the Visual C# 2005 Express edition (wow...why doesnt everyone have it ) :) and I started creating a simple web browser. One thing that I still have not got to work yet is the progress bar. Here is the function I have: private void webBrowser1_ProgressChanged( object sender, WebBrowserProgressChangedEventArgs e) { //ProgressBar toolStripProgressBar1.Value = ( int )((( double )e.CurrentProgress / e.MaximumProgress) * 100); } This Code works to some extent, i guess, because after the page is fully loaded, it fulls of green, but i do not see any inbetween stages. If anybody has any insightful information on this topic, it would be greatly appreciated!! :) Thanks, paoloTheCool ...Show All
