visual-studio-2008

Problem using Add View dialog in ASP.NET MVC RC1 for strongly typed view

好久不见. 提交于 2019-12-19 09:02:38
问题 I like the new Add View dialog that was released with RC1. If you specify a view data class, it generates a scaffolded view for you. It seems to work fine with classes defined in projects within my solution. Some of my domain classes inherit from a base class that is defined in an external assembly (and referenced in my web project). I get an error when I specify one of these domain classes. Visual Studio is reporting a TypeLoadException on the external base class. I did a little debugging

TFS: How do I view .cs files in the VS IDE when viewing details of a shelveset?

可紊 提交于 2019-12-19 08:07:09
问题 For our code review process we open the details of a shelveset to see all files that have been worked on. Right clicking and choosing "Compare" works great for existing ( modified ) files. But, when a file has been added I just want to view the file. Double clicking ( or right click -> view ) opens .cs ( and .sql )files in notepad. When I try to open a .PRC file ( extension for our stored procedures ) I get a prompt that allows me to choose what program to use for viewing. Does anyone know

How to update design-time UserControl interface based on property value?

允我心安 提交于 2019-12-19 07:35:47
问题 I've created a UserControl with the following public property: [Browsable(true)] public string Text { get { return pnlLookupTable.GroupingText; } set { pnlLookupTable.GroupingText = value; } } pnlLookupTable is, as you may have guessed, a Panel control. I can change the value of the Text property in the Properties window and it's reflected in the markup like it should be. However, the design view of the UserControl inside a page does not show updated GroupingText for the Panel. How can I get

How to update design-time UserControl interface based on property value?

妖精的绣舞 提交于 2019-12-19 07:34:46
问题 I've created a UserControl with the following public property: [Browsable(true)] public string Text { get { return pnlLookupTable.GroupingText; } set { pnlLookupTable.GroupingText = value; } } pnlLookupTable is, as you may have guessed, a Panel control. I can change the value of the Text property in the Properties window and it's reflected in the markup like it should be. However, the design view of the UserControl inside a page does not show updated GroupingText for the Panel. How can I get

How to update design-time UserControl interface based on property value?

末鹿安然 提交于 2019-12-19 07:34:32
问题 I've created a UserControl with the following public property: [Browsable(true)] public string Text { get { return pnlLookupTable.GroupingText; } set { pnlLookupTable.GroupingText = value; } } pnlLookupTable is, as you may have guessed, a Panel control. I can change the value of the Text property in the Properties window and it's reflected in the markup like it should be. However, the design view of the UserControl inside a page does not show updated GroupingText for the Panel. How can I get

Call is ambiguous error using Linq

我怕爱的太早我们不能终老 提交于 2019-12-19 07:18:27
问题 First of all, sorry for excesive generic name classes. My employer is paranoid and I know for sure he roams this site. Ok, so I have this code: var fooObj = new MyFooClass() { fooField1 = MyEnum.Value3, fooField2 = false, fooField3 = false, fooField4 = otherEntity.OneCollection.ElementAt(0) as MyBarClass } where otherEntity.OneCollection is an ISet. ISet is a NHibernate collection class that implements IEnumerable. If I try to compile this code I get this error: Error 2 The call is ambiguous

Call is ambiguous error using Linq

我怕爱的太早我们不能终老 提交于 2019-12-19 07:18:20
问题 First of all, sorry for excesive generic name classes. My employer is paranoid and I know for sure he roams this site. Ok, so I have this code: var fooObj = new MyFooClass() { fooField1 = MyEnum.Value3, fooField2 = false, fooField3 = false, fooField4 = otherEntity.OneCollection.ElementAt(0) as MyBarClass } where otherEntity.OneCollection is an ISet. ISet is a NHibernate collection class that implements IEnumerable. If I try to compile this code I get this error: Error 2 The call is ambiguous

How to resolve the following linker errors in Visual Studio?

吃可爱长大的小学妹 提交于 2019-12-19 07:16:13
问题 Here is My scenario. I have a project which contains 30 subprojects. In one of the projects I have used CLR (common language runtime) so I modified its runtime with /mdd (multi threaded debug DLL). Individually all the projects are built successfully. But when I try to compile the main project I am getting the following linker errors: LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library LIBCMTD.lib(winxfltr.obj) : error LNK2005: __XcptFilter

visual studio 2008 crazy debugger skipping!

匆匆过客 提交于 2019-12-19 06:37:52
问题 What the hell could be causing this.... I'm developing my C# 3.5 ASP.NET MVC web app, same as I do all day every day. Not doing anything clever, just standard methods on classes calling other methods... I build my project, fire up a url in Chrome, and get the response I expect. I attach the debugger to w3wp.exe, set a breakpoint and f5 in Chrome. The debugger stops at the breakpoint as I'd expect.... I hit f11 to step through the code, and it will move to the next line/part line, do it a few

Events tab randomly appears and disappears in VS 2008

随声附和 提交于 2019-12-19 06:33:16
问题 I know it's a minor annoyance.. but it's still an annoyance and it baffles me.. About 3 months ago I was using VS 2008 and when I went to the "Properties" tab there was the little lightning bolt for events(in design mode). Then it suddenly went away.. about a week later I discovered that if I didn't have the properties tab "stickied", then the events thing would be there, but not when its stickied. This morning all of this was working fine. Now today I went to add an event, and suddenly the