Zajda's Q&A profile
Visual Studio Sharing Project Templates - relative paths
Hi, I'm having a problem with a custom template. In our repository we have a template directory and Visual Studio is then setup to search for user templates in that directory for each user. The problem is that the template uses code that may change all the time, so we have a reference to an external file that is located in, say: ..\..\Library\SharedFile.cs This works fine if we try to open the template-project as a normal project. But when it is converted to a template project and used to create a new project based on that project, Visual Studio decides that the current directory should not be that of the location of the UserTemplate1.zip file, but instead the location it decided to extract it into ie. c:\documents and settings\USER\Local ...Show All
Visual Studio Migrating .diagram files to V1 (September SDK)
Release of September SDK is great, thank you, guys for all of this. But, in migratiuon guide there is a step 17: "The layout will need to be re-adjusted manually",which I hate. We have for about 100 models with not simple layout and when I look on differences in .diagram files from August and September SDK, this is not so big - only xml element letter case was changed, maybe some serialization of Collections... Could you, please provide some XSLT to migrate this Or, at least, differences of these formats (XSD will be ok). Thank you... Jan ...Show All
Visual Studio Tools for Office Integrating Active Directory & Excel
Is there any way to integrate active directory with excel workbooks I want certain areas in my excel workbook restricted or totally unavailable based on a users' windows authenticated login. Would've been awesome if Excel had something analogous to website admisnitration in ASP.NET websites. Cool link . Thanks! @Cindy. I should have been more elaborate in my question. I meant that in VSTO the only proabable solution would be to enter a userid and password which would be database verified. I'll look up the excel programming group. Thanks. ...Show All
Visual Studio 2008 (Pre-release) Memory Leaks/Garbage Collection and WPF
In our app, each time we open a particular window and close it, our memory usage increases. Through profiling, we can see that this window is not ready for garbage collection and tracked down our problem to this: we’re using a command pattern to bind to context menu items. Our command instances are each a long-lived object that is managed in an inversion of control container (i.e. ultimately referenced from a singleton). When the command is bound to the menu item, the menu item subscribes to the command’s CanExecuteChanged event. The resulting event handler reference from the command to the menu item still exists. The menu item in turn has a reference to the window in it's "EffectiveValues" collection (index 0), and ther ...Show All
.NET Development Windows Service .NET Runtime 2.0 Error Reporting and Event ID:5000
I have a windows serivce developed in VS2005 running on Win2003 which read xml files from a local directory and saves them in SQL2000 tables. This service has been running for the last month with no errors. This week it generates the error below and stops. (the service is a manual one and is running as Local System Account). It is running on other servers with the same configurations. Source: .NET Runtime 2.0 Error Reporting Event ID: 5000 Category: None Computer: SSGP-SOP01 User: N/A Description: EventType clr20r3, P1 itdp.net2utils.ntservice.exe, P2 1.0.0.0, P3 45250dc5, P4 isc.edi.bll, P5 1.0.0.0, P6 45250db4, P7 3d, P8 3a, P9 system.exception, P10 NIL. Has anyone come accross this problem A. nothin ...Show All
Visual Studio VS2005 Post build event return a strange error
I want to copy the project output to a folder in post build event, but it never work on our build machine. I've defined this in post build event, xcopy.exe "$(TargetDir)*.*" "$(SolutionDir)Output" /y it failed with the following error, xcopy.exe "C:\Projects\Project1\bin\Release\*.*" "C:\Projects\Output" /y 'C:\Documents' is not recognized as an internal or external command, operable program or batch file. The system cannot find the path specified. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3089,13): error MSB3073: The command "xcopy.exe "C:\Projects\Project1\bin\Release\*.*" "C:\Projects\Output" /y" exited with code 1. I've no idea why it reported "C:\Documents" is not found, the command can run successfu ...Show All
Visual Studio Post event for the entire build process.
Hello, I wonder if there is a way to trigger an event after the entire build process If I for example build the whole solution I want to trigger a target or build-script after the entire solution has been built, and if I build 5 of the projects in a solution I just want the target or script to be triggerd after the 5:th project has been built. The only way I can figure out to do this is to add a dummy project to the solution then add it as the last project in the build order and then run a target only for this event, but then I got problems if I do not build the entire solution but only a few of my projects in the solution. Any help is appreciated ;) Thank you in advances! //Martin Hej Martin, are you the guy that posted an edit t ...Show All
Visual C# Two Questions (yes I have googled it)
1) Is it possible to create a custom event Like when something happens, ex. when textbox1.text equals Dumbo, raise an event, with the ability for an event handler that will handle that event 2) In Visual Basic, you can use handles button1.click, button2.click etc. etc. to handle multiple events with one handler, what's the C# equivalent it would be the sameish - meaning when you do the += and it automatically comes up with the proper event declaration, just retype to a different already (same type delegate) event. example, textbox TextChanged event: 2 textboxes, 1 TextChangedEvent: this.theTextBox1.TextChanged += new EventHandler (theTextBox1_TextChanged); this.theTextBox2.TextChanged += new EventHandler (theTextBox ...Show All
Visual Studio Team System How to display the last checked in date / time for files in the Source Control Explorer GUI
I have two questions. How can we display the last checked in date / time for files in the Source Control Explorer GUI How can we display the last label for files in the Source Control Explorer GUI If I could do those two things, I would be very very happy since I could do them in VSS, and I was very used to being able to do it. I feel as if I am missing something.... We’d like to add more columns in a future version of Team Explorer. Unfortunately I don’t think there’s an extensibility point for 3rd parties to do so. ...Show All
Visual J# J# redist won't install
Here is install.log - any idea what's wrong The following properties have been set: Property: [AdminUser] = true {boolean} Property: [ProcessorArchitecture] = Intel {string} Property: [VersionNT] = 5.1.2 {version} Running checks for package '.NET Framework 2.0', phase BuildList Running external check with command line "C:\DOCUME~1\dave\LOCALS~1\Temp\VSD11D.tmp\dotnetfx\dotnetchk.exe" Process exited with code 1 Setting value '1 {int}' for property 'DotNetInstalled' Reading value 'Version' of registry key 'HKLM\Software\Microsoft\Internet Explorer' Read string value '7.0.5730.11' Setting value '7.0.5730.11 {string}' for property 'IEVersion' The following properties have been set for package '.NET Framework 2.0': Property: [DotNe ...Show All
Visual Studio Team System Field won't copy from another field on New Work Item Activation
I'm trying to create a new work item type for my company. One of the fields they want to track easily is the alarm's initial priority when it was first opened. I figured this would be easy by adding a new field called "Initial Priority" and copying in the value from the Priority field when the work item was created. However it does not seem to be working for me. In the Transitions section under the Transition from "" to Active, I have the following, but it doesn't seem to work. < FIELD refname = " AuthNet.Fields.InitialPriority " > < COPY from = " field " field = " Microsoft.VSTS.Common.Priority " /> </ FIELD > When the new work item is saved, ...Show All
SQL Server Having Problem with Report Parameters
i am trying to generate a report based on 3 parameters age, location, ethnciity every thing works fine in data and layout tab, when i run the preview tab, it give me the option to input paramaters and then when i hit veiw report, it shows processing report.... (indefinite) time. i tried executing the query in data tab, it takes less than a sec. any ideas am i doing somethign wrong in parameters its some weard problem. its hitting the dbase and i double checked it in the profiler. i dont knows what happening. i deleted the data cache files in the folder and tried rerun again.. nothing works. data tab works 1000 times fine. ...Show All
Architecture Internal classes
Can anyone tell my where I find information about implementing classes inside other classes For example: Class Outer { Class Inner_1 { } Class Inner_2 { } } How to let the outer class use the inner classes How to let the inner classes use the outer class How to collaborate between inner classes On beforehand thank you - dampbarn I found a place to start: http://en.csharp-online.net/Nested_Classes If othters have links to more extended examples, they are very welcome. dampbarn ...Show All
Software Development for Windows Vista Vista Security - Privileges not enough?!
Hi, I am trying to write an application using Event Tracing for Windows (ETW). And I am getting an "Access is Denied" HRESULT from the OpenTrace function. This is understandable because I am trying to start an NT Kernel Logger Session as outlined in MSDN. I am running this application through remote debugging with Visual Studio 2005 on Vista RC1. It is a command line application as it stands right now. Now, if I copy the debug to the remote machine and right click "Run as Administrator" everything works fine and I don't get the Access is Denied error. This is very inconvenient however since it does not allow for easy remote debugging. So I tried a programatic way of escalating my applications privileges, so I crea ...Show All
Visual Studio 2008 (Pre-release) Quick Binding question....
This will hopefully be a very easy question... In the below example, the TextBox always displays the correct, bound, value from the dataprovider. But "MyControl" always displays the FallbackValue ("test") even though the binding expression is identical. I'm a bit confused as to why this should be <StackPanel DataContext="{Binding Source={StaticResource BTTC}}"> <TextBox Text="{Binding Mode=Default, XPath=/Root/Number, FallbackValue=test}"/> <local:MyControl x:Name="_myControl" Text="{Binding Mode=Default, XPath=/Root/Number, FallbackValue=test}"/> </StackPanel> public class MyControl : TextBox //FrameworkElement//, INotifyProperty ...Show All
