jchau's Q&A profile
.NET Development XmlSerializer on properties and indexers ... how do they work?
I have to use XmlSerializer to serialize a class and I've found big problems serializing properties and indexers. I assumed that if you serialize a class with public properties (or an indexers) containing a field, even private, the serialization process would serialize that field too assuming it is needed to that public property. This is not the case ... For example I want to serialize the following class: [Serializable] public class Test { readonly int[] a; // same results with private readonly int b; // same results with private public Test(int[] v1, int b) { a = v1; b = v2; } public Test() : this(new int[] {10, 10}, 50) { } public int this[int i] { get { return a[ i ]; } set { a[ i ] = value; } } pub ...Show All
.NET Development how do I get current system time
In vb I can get system time call time() function. But how I can get it in C# DateTime class has a shared property called Now that returns the current DateTime. DateTime today = DateTime.Now; ...Show All
Visual Studio 2008 (Pre-release) How to modify an endpoint from the client at run time?
In my build environment, I am automatically creating a web.config file by merging the wcf configuration with our current web.config using svcutil, svcutil.exe *.wsdl *.xsd /out:ServiceClient.cs /config:Web.Config /mergeConfig The problem is that the endpoints in Web.Config contain the default values. I need to change the timeouts and the message size. How can I do this I see two constructors that I think might help, ServiceClient(string endConfigurationName, string remoteAddress) ServiceClient(Binding binding, EndPointAddress remoteAddress) Is there a way for me to load a Binding class from a config file, make some modifications, and pass this to the constructor My alternative solution is to create a build script that ...Show All
Visual Studio 2008 (Pre-release) The project type is not supported by this installation?
VS2005 Team Suite RTM with SP1 Beta - XP SP2 - latest patches Hi, I have been learning XAML at the intro level. I had an old version of dotnetfx3 and wpf templates and I could create a project and run it. Yesterday I removed the old templates and the old framework with a removal tool and installed the RTM framework and new templates. However now I cannot open create a new project. The error message I am receiving is: "The project file c:\documents and settings\renee\localsettings\temp\4t4baj4.dyv\temp\WindowsApplication1 cannot be opened." The project type is not supported by this installation. I have not installed the extensions. I never have. I don't have enough disk space on the current system. What ...Show All
SQL Server MS SQL server 2005 - cant connect to server
Hi everybody, please help me!!! I just installed MS SQL 2005, but somehow I cant connect to the server wich is on my local computer, or BD engine to be exact, because other services work fine(like Analysis service). I get the following error message, can anyone please help me resolve this problem: An Error occured while performing this operation (Surface Area Configuration for Services and Connections - localhost) ============================================= An Error occured while performing this operation (SQLSAC) ---------------------------------------- Program Location: at Microsoft.SqlSac.MainPanel.UserControlService.ActOnService(ServiceAction action) As Simon said, the event log migh ...Show All
SQL Server groups in reports
I have grouping in my report... when the user selects print...is there a way of opening expand all the grouping Thanks I forgot to mention that I am using Reporting Services 2000... will this still work ! I noticed when I go edit Group - Visibility it has: Visibility can be toggled by another report item... but it is disabled ! I tried to do as you advised: now if the user selects true group has - toggle and when false +toggle..... but when its true it doesnt actually drilldown... Thanks ...Show All
Visual Studio Team System How to keep the changeset history in TFS when I make a merging or branching?
I found that it's difficult to keep all history when I made a merging or branching. Both processes got the history lost. For example, the new branch just starts with a new changeset history. How to solve this problem Can I export the history firstly then import it into the new branch Thx in advance. Thx for your info. But if I really wanna include/import the history of the branch ancestor, not just view it by extended command switch, is it possible ...Show All
Visual C# capture incomming voice
Hi there I want to capture incomming voice to the modem,I have tried to do it with serial port or tapi but it did not work. phone line is analog.I have bought a voice modem but it didn`t work too. Another problem is to set modem in voice mode not data mode. ...Show All
SharePoint Products and Technologies sharepoint 2007 showing System Account instead of Username / full name
When i login with my username & password into sharepoint (2007) site, it displays as a "System Account" instead of my username or my full name on the top right corner of the website. What ever changes i make inside the site, for example upload a file, post a comment, sharepoint marks it as a System account instead of my name. Can someone help me figure it out why Thanks. Hello I tried every solution but I am unable to get rid of the problem. Is there something wrong with the installation as I did change the app pool service account. When I do a sign in as a different user and enter the Administrator User name and password it gives a 401 error. Any help is appreciated. ...Show All
SQL Server Where is the config?
Hi all, I made a custom assembly for SSRS 2005. It works well. I would like to make some things to be configurable via config file. Is it possible How thanks, fs. Dear Lakshmi, the RSConfigTool configure SSRS virtual directory, Win/web Service Identity, Database, Encryption, Init, email, exec account - but dos'nt permit configure my assembly. eg: string s = ConfigurationManager .AppSettings["ExternalWebserviceUrl"]; fs. ...Show All
Visual C++ Urgent Super easy question ! I cannot use the protected method of DataGridView
Hi there! I am using VC++ in Visual Studio 2005. I have created a DataGridView, and I am trying to use the "SetSelectedRowCore" method (it is a protected method) of that DataGridView to highlight (select) say row number 3. but the compiler says this protected method, SetSelectedRowCore, cannot be accessed !!!!!! please help! this should be a quick one for you guys ! Thank alot in advance. Cheers Best wishes, gon_no1 Hi. Well this is protected method. Protected means that you can access it via child class. So make a class that inherits from this one that contains this function. Here are inheritance types (just for freshing memory): Public Inheritance: Public is still public in a child ...Show All
Visual Studio Express Editions learning visual C++ 2005 Express Edition - good books?
Hi All, I'm new here.. have just started getting into vc++ee... but finding it hard to find good resources. I have a book called "Microsoft visual c++ 2005 epress edition programming for the absolute beginner" which i'm finding very handy as a starting point, but where to go from here most the other books i see are referencing MFC and stuff i cant use in this version - please can others let me know your book recomendations that are specific to this version and .net thanks Mark h3mp wrote: I have a book called "Microsoft visual c++ 2005 epress edition programming for the absolute beginner" which i'm finding very handy as a starting point, but where to go from here In addit ...Show All
.NET Development XML Error associated with mscoree.dll
My solution consists of a dll to interface with ESRI's ArcMap application as well as two executables, an XML document (AddPLSS.xml) and an install package. It compiles and installs without any problems, but when I try to open ArcMap, I get the following error: XML Error: The system cannot locate the resource specified. In (failed) mscoree.dll/AddPLSS.xml. The XML file itself seems to be included in the dll and the install package. It ends up in the right place on the client machine. In fact, this application was working well until fairly recently. I did add one of the executables to the solution, but I never changed anything related to the XML file. I cannot find any reference to this specific error anywhere via Google or MSDN. I ...Show All
Visual Studio Team System Future of TFS with Performance Point 200x
Hello - I work at a mid-sized development company and we have been using TFS in development for a little over a year now (yes, we started with Beta2). Everything related to work items, running builds, getting build reports, etc. is working great. But we are finding that without any clear direction in the way of project management tools integration we are having a hard time answering managment's questions/concerns regarding the use and future of TFS. We've recently hired a Project Manager Manager (yes, a manager of project managers) whose first responsibility is to standardize development methodologies across all products/groups by implementing MSFs,TFS, Project, PeopleSoft, etc. Looking together at how we are using TFS in ...Show All
SQL Server OLE DB error: OLE DB or ODBC error: [DBNETLIB][ConnectionRead (recv()).]General network error
Hi guys, Anyone encountered this type of error " OLE DB error: OLE DB or ODBC error: [DBNETLIB][ConnectionRead (recv()).]General network error" Hi Larry, General Network Error is a infamous error and one of the toughest cases MS PSS faces nowadays. This is due to there can be various cause of this problem. There is a webcast on this topic: http://support.microsoft.com/kb/875285/en-us I remember there is a common cause of GNE for windows 2003 sp1, but can not find the KB now. Maybe I will find and post it here when I get back to work on Monday for your reference. Thx, -Justin ...Show All
