floodzhu's Q&A profile
Visual Studio 2008 (Pre-release) Synchronization between DataContexts
How about synchronization of entities between DataContexts So that when an entity in one DataContext is changed and changes are saved to db (only after saving), corresponding entities in other DataContexts are also updated (unchanged fields) and notified about it. The same with loading of one entity; AFAIK, it is implemented already that before loading it is checked whether an entity is already loaded; this behavior can be extended with checking whether the entity is loaded in another DataContext. There can be a class, say DataContextSynchronization which has 1) a list of DataContext objects, which ...Show All
.NET Development Prevent Internet Explorer from using a cached version of an xslt stylesheet
Hi, The answer may be obvious but I'm struggling with this and can't seem to find an answer. I have an ASP.NET Web Application. Its responses are usually XML string similar to this: < xml version="1.0" encoding="utf-8" > < xml-stylesheet type="text/xsl" href="styles/filename.xslt" > <xml document /> The style directory of the Web application has several stylesheets, some of which are related to other stylesheets in the same folder. The problem is when I modify stylesheet A to use a template in stylesheet B. I deploy the two new files and "sometimes" Internet Explorer seems to use ...Show All
Visual C# How to zip files using C#
Hi guys, i was wondering if there is any form of API found with the .NET which allows a develope to zip up the files nedeed pls See http://forums.microsoft.com/msdn/ShowPost.aspx PostID=106888 ...Show All
Visual Studio Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectModel.dll
My VB .Net Windows application using SQL Reporting runs fine on my development machine. But when I deploy it to a user's machine and try to run a report, I get the message: Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectModel.dll This file is in the GAC on my machine, but not on the deployment machine. I tried installing SQL Reporting Services on the deployment machine, but that didn't resolve the problem. Can someone explain how to get a DLL out of the GAC on one machine so it could be copied over to another one Thanks. ******* Resposta em Portugues ******** ...Show All
Visual Studio Express Editions casting help
i need help in casting some objects...in my program i have a treeview in which nodes(nodes are classes of various type...like organization(inherited from treenode)) has a context menu that could show a form...now..if i start a new project there is no problem in casting.....if i open a project when i try to show a form on a node there are casting problems...i posted some code...i hope someone will help me...i need to cast from TREENODE to ORGANIZATION..thanks all private void OrgProperties_OnClick(System. Object sender, System. EventArgs e){ Organization org; object objGeneral = treeView2.SelectedNode; <- type O ...Show All
Visual C++ Designer problem
Hello, I have a little problem... I can't design my form anymore. It happened just like that without me doing any changes and now I can't view the designer. My application runs ok, though. I get two kinds of errors. Some times I get this: One or more errors encountered while loading the designer.The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Clicking on each error will take you to the line of code that caused it. Error HRESULT E_FAIL has been returned from a call to a COM component. Hide at EnvDTE.CodeTypeRef.get_AsFullName() at Microsoft.VisualC.Cp ...Show All
.NET Development Concurrency violation when updating twice
I have a parent row that I create, which will have a number of child rows related to it. There is a status field in the parent row that I give a value of "UnderConstruction" (which is an enum with a value of zero) so that, while I'm creating the child rows, the parent row will not be processed by another method that looks for new rows to process. After populating the rest of the parent row, I do a .Update on its SQLDataAdapter, which will do the insert and return me the PK, which I need so I can relate the child rows to the parent row. Then I create the child rows (manually from code), assigning the FK value as fetched during the pa ...Show All
Visual C# ienumerator and ienumerable, functionality of getenumerator
I am trying to understand IEnumerator and IEnumerable. In the code snippet I am inserting below is the example of array list out of msdn. IEnumerator and IEnumerable both are being used in the code snippet. Here is the question....By definition an interface defines a contract. A class or struct that implements an interface must adhere to its contract. So any method in interface should have no implementation. Coming back to IEnumerable and IEnumerator in the below code snippet it is being used in the following way System.Collections.IEnumerator myEnumerator = myList.GetEnumerator(); GetEnumerator method is returning IEnumerator... ...Show All
Visual Studio Express Editions Subtraction of a decimal less then 1
I am not sure if anyone else had this problem, if so please help... While writing a simple function that holds the equation: bVariable = 1 - aVariable (where: 0 < aVariable < 1) Every so often a nasty little bug showed its head. I have used every number decleration (keeping both the same). My problem is that the code works, but the value calculated is wrong! When "aVariable" is equal to 0.94, the value calculated for "bVariable" becomes 0.060000000000000000000001 This calculation error only shows up when "aVariable" has the values: 0.94 or 0.97 It is just like the error in win 3 ...Show All
Visual Studio Express Editions Need help to install PSDK!!
Sorry Imade a mistake. After installing the VisualC++Express Ed.,the PSDK can not be installed . The install process was stopped by amassage says that the PSDK install pakage isn't a validate one , and I hven't the authority to run it. I have the same problem installing PSDK using WebInstall, but when I downloaded the full ISO, the problem of "unable to validate CAB file" is gone; try downloading the ISO version of PSDK, this may fix the problem, it's a big download though: http://www.microsoft.com/downloads/details.aspx familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&displaylang=en Regards, -ch ...Show All
Smart Device Development Windows CE Remote Spy Connect Failed
connect the "pocket pc - wm 5.0" emulator with activesync , and started "wce remote spy" ,but connect failed, error msg: the specified service does not exist as installed service. and other remote tools works good. env: vs 2005 beta 2 , Mobile Device 5.0 SDK for pocket pc, DMA transport. Anyone got ideas on this Thanks a lot. Sure enough I can add version 4.2 of the SPY tool to VS2005 and launch it from there but the platform manager dialog within SPY 4.2 does not list Windows CE 5.0 devices. Did you find a way around this Thanks. ...Show All
Visual Studio What files to store in Version Control?
I'm brand new to Visual Studio (I have version 2005). I've created a project (solution I'm not sure of the difference) and I'd like to know what files I should store in my version control system, so someone else could check them out and use them. By the way, the version control system I'm using is NOT SourceSafe. I'm sure there's some documentation on this, but I can't find it. I would imagine I don't need all files in all folders, right So what should I save and what can I ignore Thanks. -Dan Dan, one rule of thumb I've used is to "clean" a new project and then rebuild. Any file created after the clean is d ...Show All
Visual Studio Where is "Field Definitions Only" Data Source?
I am working in Visual Studio 2005 beta2 release with Framework 2 so I need to create crystal report layout using "Field Definitions Only" data source. This datasource option was available in visual studio 2003. Please be kind enough to response me as soon as possible. Thanks Vishantha Hello, The solution would be to transistion to an XML file instead of the Crystal Reports specific ttx file format. Keith - Business Objects ...Show All
Visual C++ I am having a problem running a basic program in C++ that took me about 2 seconds to make.
Can anyone help me out with this Please. ------ Build started: Project: Exterminator!, Configuration: Debug Win32 ------ Compiling... stdafx.cpp .\stdafx.cpp : fatal error C1210: /clr:pure and /clr:safe are not supported by the version of the runtime installed Build log was saved at "file://c:\Documents and Settings\(REMOVED)\My Documents\Visual Studio 2005\Projects\Exterminator!\Exterminator!\Debug\BuildLog.htm" Exterminator! - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== It looks like that you don't have the .Net Framework 2.0 in installed on your m ...Show All
SQL Server Error writing data to same destination in single data flow
I am getting the following error running a data flow that splits the input data into multiple streams and writes the results of each stream to the same destination table: "This operation conflicts with another pending operation on this transaction. The operation failed." The flow starts with a single source table with one row per student and multiple scores for that student. It does a few lookups and then splits the stream (using Multicast) in several layers, ultimately generating 25 destinations (one for each score to be recorded), all going to the same table (like a fact table). This all is running under a transaction at th ...Show All
