Victor Chacon's Q&A profile
Smart Device Development XMLSerializer: sibling elements order - normal in .Net Framework but random in .netCF!
Hi, all I have used the same classes, and the same serialization code to run a test program writing out an XML document from a data object. It turned out that for an element which has multiple child elements, the order of the child elements remained the same in Framework 2.0 as defined in the class, but it was random in CF2.0! It isn't alphabetic nor anything I can tell but a random order... This is annoying because then the document generated in CF2.0 wouldn't pass the same schema, based on which the classes' code was actually generated. Is the problem a bug -bonnie Bonnie, Despite .NET's tendency to preserve the order of XmlElement's, unless you explicitly set the XmlElementAttribute.Order pr ...Show All
SQL Server Any help on this SMO request?
My evaluation copy ran-out and I uninstlaled the previous and installed anothrer evaluation edition. The installation was successful. I created a SSIS package importing a tale from Oracle 10G XE to the SQL 2005 on my machine. I saved the package on the server. The SSIS service is working but when I try to refresh the node, I get this message. The help linl leads to no where: -------------------------------------- TITLE: Microsoft SQL Server Management Studio ------------------------------ Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: Login timeout e ...Show All
Windows Forms Form focus problems
I've got the following problem: I've written a WinForms problem (.NET 2.0), which has a UserControl with a few buttons on it. The form has a KeyUp Event to trap keyboard events throughout the app (works with a barcode reader). After pressing the button, and scanning a barcode (i.e. capturing several number key-presses), the keys are remembered, but the following enter (appended to each scan) is captured by the button I previously pressed as a click. This remains true as long as I don't change the focus to a control that doesn't grab an "enter" key, such as a checkbox. Is there anyway I can avoid this behavior, preferably by disabling the buttons "enter-trapping" behavior ...Show All
Visual Studio Express Editions Can't use VCS EE after System Restore!
Hello! I'm starting to using VCS 2005 EE and I've used it for a few days well... But due to a problem in my PC I had to use system restore and rolled back my PC a couple days... Then when I tried to run the VCS, it showed again the "Preparing the environment for first-time using" dialog, and it got a lot of package errors! When it finished, I tried to open the project I was developing and got more package errors (Package Load Failure) and the "Unable to read project" alert... So I've tried the following: - Use the repair/reinstall option in the setup - Unistall and re-install In both cases when I open de VCS it loads ok, but when I try to load the project I get the same errors... I also have installed: - VWD EE - Also have errors - VB 200 ...Show All
.NET Development Share the first authenticated Token
Hi,all I have got an authenticated UserNameToken using UserNamePasswordValidator.Also I've already established the security conversation. My answer is that how can all of my web servises can share this Token, in other words every single service needn't be validated at the first time. Thank you in advance! Hi,Pablo For now, I use WSE 3.0 for client and WCF for service. Users logon in the main system, then they can be navigated to any other subsystem which uses the different web service, So I think maybe I can not reuse the same proxy instance. Can you explain me how to reuse the token in different proxy instances or give me an example about it Thank you in advance! ...Show All
Windows Forms DATAGRIDVIEW PROBLEM
I have a data table which contains data to be filled to the datagridview. My datagridview has three columns whereby column 1 is combobox. The combobox has values already filled but i want to select specific value and filled it with other values of other colunms. Please assist me with the Code to fill the datagridView with this data. Hi,Daudi I'm not sure I've catched your mean.Maybe this thread would help you Or I would prefer you offering more detail. ...Show All
Visual Studio Express Editions one image add another logo image in .net
one image add another logo image in .net hi friends any one tell me, using vb.net or asp.net or c#.net any language use my question is one picture box open a picture. iam save a picture.ok is general. one picture box open a picture.now i am add another image leftside or rightside or top or bottom. iam save a single image. ============================================================ example i am image upload sample: same i ask http://img526.imageshack.us/my.php image=iamgeoverlaybq0.png ============================================================= please try and anyone give code to me. my mail id is viswa.vp@gmail.com i am waiting for ur message. please urgent. thanks hi friends any one tell me, using vb.net or asp.net or c#.ne ...Show All
SQL Server Return Top row from a ResultSet - SQL Server (TOP)
Hi all, I need to return only the top row of a ResultSet that is generated from my Query but can't seem to find anything in SQL Server 3.0 Mobile that allows me to do that. I know in SQL Server (Desktop) I could use the TOP keyword. The query I have is as follows, and just need the top row. Now the returned resultset will, in time, be massive, and there is just no way I can afford to return this amount of data in my application only to take to the top/first row. The query I have is as follows... SELECT * FROM tbl_NSP_AnswerSet WHERE (DateCompleted IS NOT NULL) ORDER BY DateCompleted DESC (I want the last record that was inserted into the database) Thanks Another solution, but which seems limited to SQL Server 2005: WITH Order ...Show All
Visual Studio VS 2005 IDE Crashes when debugging a stored procedure/inserting breakpoint.
Hi. I'm running the following setup: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Microsoft Visual Basic 2005 77626-009-0000007-41026 Microsoft Visual Basic 2005 Microsoft Visual C# 2005 77626-009-0000007-41026 Microsoft Visual C# 2005 when I try and debug a stored proc in the IDE it immediately crashes and pops up the dreaded "send an error report " dialog. Specifically, I create a new sql server proj, add a db connection, open the stored proc, set the breakpoint and it immediately crashes. If I open the stored proc and "execute" it, it will excecute successfully about half the time. If I try ...Show All
Visual Basic Office Interops. See this thread on EXCEL / VB.Net stuff too.
Hi, not sure if this is the correct forum, but here goes: My VS2005 VB application uses excel interop 11.0 library to communicate with excel 2003. In the publish settings I have interop.dll as a required prerequisite (auto). The problem I'm having is that some users naturally have different versions of excel & I'm not sure how to get over this. The application will not run without the assemblies - it gives an error: "The application requires that assembly ...interop excel version 11.0.0.0 be installed in the GAC first". Where they have excel 2003 it's a simple matter of running O2003PIA.msi, but I now have users with 2002 & 2007. Can I change the publish settings to include the dlls Will this then instal ...Show All
SQL Server Conditional Split Question
I have a package which has a conditional task which directs rows to its respective OLEDB command. The records are sorted from the source system in chronological order. The problem I am experiencing is that some of the operations do not seem to be occurring in the same order. An example of this would be someone inserts a record, deletes the record and reinserts in the record in that order. When we run the package we can see the records are coming down in chronological order but the delete from the split seems to occur after the inserts. Has anyone else experienced this Is there anything I might be missing to ensure things happen in the order they should Any advice would be greatly appreciated. Thank you. Jamie Thomson wrote: ...Show All
Audio and Video Development Any sample for ITA?
Hi all From the samples I don't see any implementation for ITA. It is told that to write an ITA we have to create proper interface in Media Source and return an IMFActivate for ITA to be created inside PMP process. "The IMFActivate object exposes the IMFActivate interface, which enables the PMP host to create the ITA, and the IPersistStream interface, which enables the PMP Session to serialize the IMFActivate object from the application process to the PE process." Sounds nice, except one problem -- how to write such a magic object I don't see any further information from all the documents. Does anyone know Actually I think my question is I don't know how to make a working IMFActivate ob ...Show All
SQL Server Execute Package Logon Failed for User....
Fairly new to SSIS.I have created a package in BIDS, and am trying to execute it so i can test/debug the flow and view the data in the data viewers. I continually get a logon failed for user... its the user id i am using to connect to my SourceConnection OLEDB. I have been struggling with this for a while now, and getting frustrated. I tried Windows Authentication also, still i get an error message logon failed for user...... I have tried all of the security settings, from Do not save sensitive to Encrypt all with password, entered the password, and then try to Execute Package from the solution explorer and still get error message. Thanks for your help! Here is the error message An OLE DB record is available. Source: "Microso ...Show All
Windows Live Developer Forums PushPin click in 3D map (v4)
Hi, Can anyone share some best-practice code on how to detect a click on a PushPin in 3D mode I have code handling the OnClick of a the DIV that is the PushPin in 2D mode ( http3A//www.viavirtualearth.com/wiki/ClickablePin.ashx ) - but this doesn't work in 3D mode as the PushPin is part of the 3D scene. Is there a best-practice way of doing this Many thanks dan There's nothing you can do from script (you'd have to peek the message queue). Addressing this is on our roadmap for a future release. ...Show All
.NET Development FileStream running slow in Window's forms but not in a windows service
Hi, I'm runnning the same piece of FileStream code (see below) in a simple windows form and in a service but the code in the windows form is running 50 odd seconds slower (7 seconds in the service, 59 seconds in the form) . The file that i'm running the test on has a size of '1.56 MB (1,641,874 bytes)'. using (FileStream s = new FileStream(@"c:\ss.drs", FileMode.Open, FileAccess.Read)) { DateTime start = DateTime.Now; while (s.Position != s.Length) { s.ReadByte(); } TimeSpan ts = DateTime.Now - start; Debug.WriteLine(ts.ToString()); } Any ideas anyone Thanks in advance JK It takes the same time on my machine, no matte ...Show All
