.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

WPF Project has events gone missing but are there

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :WPF
While the title may be a little hard to understand, I have suddenly a problem with a WPF project.  It has several libraries and a mainapp.  In one of the libraries are a set of usercontrols.  Those controls are hosted in the main app. One of the controls has lost its events.  I needed to add a new event to a usercontrol and this happened with no problem.  I then built the project, again no problem.  Now I go to the XAML and attempt to add a handler for the event.  Intellisence is there with the name, the editor creates the event name the "=" and the surrounding quotes for the name but then makes the eventname underlined in blue.  At that point the editor does not want to deal with it. Now the event had no arguments so I changed the arguments to the sender etc pattern.  Now the XAML editor will not put the blue line but it will not allow me to create the handler in XAML. Ok so I go to the code editor and voila I can add the handler there.  Has anyone else seen this weird behaviour?? Thanks Lloyd Sheen

View Complete Post

More Related Resource Links

"Server Objects and Events" missing

Using in-line code in VS 2010 RC and I can't get the "server objects and Events" drop down to show up.Not sure if this is a bug or what...in VS 2005 / 2008 it would just appear at the top of in-line code files.  I've checked the options/settings menus and haven't found any way to enable it.

Project dependency / reference and 3rd party dlls missing

hi,i'm having the same problem in multiple solutions and i asked for help in a couple of "forums" already.... here is an easy explaination about my problem.we have 3 projects:Project "A" - a web applicationproject "B" - class libraryproject "C" - class libraryProject C holds a reference to a 3rd party dll. let's say thirdparty.dll. the 3rd party dll is referenced in the C.csproj file with a relative path and private = true (copy local = true): <Reference Include="ThirdPartysNameSpace.BlaBla, Version=, Culture=neutral, PublicKeyToken=0912345678910123, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>..\_tools\thirdparty.dll</HintPath> <Private>True</Private> </Reference> Project B holds a project to project reference to Project C.Project A holds a project to project reference to Project B.when i compile project C the thirdparty.dll is copied to its bin directory. C's bin directory contains C.dll and thirdparty.dll - correct so far.however when i then compile project B the thirdparty.dll isn't copied to project B's bin directory! B's bin only contains C.dll and B.dll. why isn't project C's bin content copied to B's bin?(sure thirdparty.dll is also missing in project A's bin directory.

Error on VS 2008 Class Library project: are you missing an assembly reference?)

http://msdn.microsoft.com/en-us/library/bb153523(office.12).aspx Working with ASP.NET 2.0 Web Parts and Windows SharePoint Services 3.0 Based on the above MSDN Walkthrough, I created a Class Library VS 2008 project. When clicking the Build menu, 11 errors on System.Web.Security etc popped up.  What's wrong? *********************************************** using   System; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; Error 1 The type or namespace name 'Security' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) Error 2 The type or namespace name 'UI' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

Missing Custom Control Library Project Template in Visual C# 2010 Express?


I am using Microsoft Visual C# 2010 Express Version 10.0.30319.1 RTMRel and I want to add a Project for a WPF Custom Controls library. Note: The WPF Custom Control Item Template is included and can be added to a WPF Application project.

Does anyone know:

  1. Should the WPF Custom Control Library Template be part of this application edition?
  2. Where is the online documentation that states exactly which features are and are not included in each edition?
  3. What can be recomended as a work around?


Visual studio 2010 missing ajax and no web.config when creating new project



when i opened my Visual Studio 2010 i noticed that my ajax tab was missing from my toolbox and ajax control kit too.

Then i noticed even that when i create new website, there is no web.config in it and it should be.


please help, this is urgent (can't do nothing without ajax)

Missing "Include Content" checkbox when creating Project Workspace template.

I'm trying to use an existing project workspace to create a custom template. This workspace includes standard content that I'd like to include in the template for use in future project workspaces. However, when I go to "Save site as template" I don't get the option to "Include Content" like I see when creating a template for a site or sub-site. Any clue why I can't include content for a project workspace template? MOSS 2007.

WCF RIA Services Project Templates Missing


When I start a new project and select Silverlight as the type of project that I want to create, the WCF RIA Services Templates are not there (Silverlight Business Application, WCF Class Library).  They were there before I installed the Silverlight Developer Toolkit.  I've tried uninstalling and reinstalling the RIA Services Tools but to no avail.  I would like to have these templates back.  

I'm attempting to install this set of silverlight developer tools for Visual Studio 2010: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b3deb194-ca86-4fb6-a716-b67c2604a139

 In the directories where the VS 2010 templates are stored, the RIA Services templates are not there.

\%Program Files%\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Silverlight\1033

\%Program Files%\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplatesCache\CSharp\Silverlight\1033

Each folder only has:


Visual Studio Project and Item Templates are missing



I am using Windows 7 Professional and I have VS 2008 and 2010 installed in my machine. Project and Item templates are missing in VS 2008 but it is available in VS 2010. only MS .net 4.0 is installed in my machine. I read that, .Net 3.5 would come as an OS component in Windows 7. I tried executing  devenv /installvstemplates in visual studio command prompt. But VS command prompt is not present under VS 2008-> VS Tools. It is present under VS 2010. Also I noticed that only 5 compressed files are in C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\1033 folder. I think, I need rest of the files to see the templates. But I am not sure from where I can get those files. Any help on this would be appreciated.

Thanks In Advance,




While adding a project output i am missing Primary Output,Source files,Documentation files etc..


In a web set project i tried to add the Primary Output (in th below figure 1.1)option while adding the project output but the option it self not there (please see the figure 1.2).

Please help me that how to add the primary out put option in my application .

i am using VS2005 IDE.


figure 1.1



Fig 1.2

Project Example: ASP.NET MVC + SubSonic Architecture

use of SubSonic to provide the DAL in association with some ASP.NET MVC sites and was waylaid in my original intent to throw up a post summarizing the architecture we're using for the effort. Well I've finally gotten around to it. Recall that in his fake it till you need it post, Dave provided a window on our architecture that I'll build upon here

WCF Tutorial - Events and Callbacks

we described how to make a very simple client/server application where clients would call functions on the server through a shared interface. In this tutorial, I'm going to expand that application to allow the server to execute functions on the client by using callbacks. Essentially, this is WCF's mechanism to allow events to be raised from the server to it's connected clients.

Delegates and events in c#.net

People often find it difficult to see the difference between events and delegates. C# doesn't help matters by allowing you to declare field-like events which are automatically backed by a delegate variable of the same name. This article aims to clarify the matter for you. Another source of confusion is the overloading of the term "delegate". Sometimes it is used to mean a delegate type, and at other times it can be used to mean an instance of a delegate type. I'll use "delegate type" and "delegate instance" to distinguish between them, and "delegate" when talking about the whole topic in a general sense.

Content Query Web Part missing in SharePoint 2010

If you don't see content query web part listed in the web parts list, this is because you have not enabled "Search Server Web Parts" feature in site collection features. Enable this feature and content query web part will show in the list of web parts.

How to listen to events within a listview



I've got a listview and I've put a button control in one of the columns, I'm trying to figure out how I have listen to the button click within a certain row, but can't see the button in the dropdown for the IDs I can generate events for.

I'd like to get the primary key of the row that's been clicked on and then run a sql statement against it.

Any help would be appreciated.

Missing 'new item templates'


 Hi all,

          I am a 'newbie' to VWD and I am slowly working through the Basic Walkthrough Help files, and learning plenty along the way.

However, when I tried to create a new database in the LINQ control walkthrough I found that the option to create a new database is missing, and further investigation has found that many other new item templates are missing.

I am using a brand new machine with Windows 7 Ultimate and have enabled IIS and .NET from Control Panel-Programs-Turn Windows Features On-Off. I used the WPI to install all basic elements eg. IIS Components, SQL Server Express.

The only 'new item templates' I have when I right-click the App_Data Folder and choose 'new item' are:-

ADO.NET Data Service

AJAX Enabled WCF Service

Dynamic Data Field

SQL Server Database

Text File

XML File

Does anyone know where I have gone wrong.


Michael J. Hill

VS2010 Professional .NET 4.0 Remote Debugging ASP Website Project


Trying to remote debug ASP website from VS2010 Pro to Windows Server 2003 machine.  Specifically, trying to debug a Web Service, but breakpoint says, "The breakpoint will not currently be hit. No symbols have been loaded for this document."  This happens for all compiled code though.  I have read this is due to missing PDB files and the work around is to manually copy them, as noted here.  Problem is, I cannot find any PDB files for my project, except referenced libraries, which I can remote debug.


  • web.config has <compilation debug="true">
  • Debugger is attached to wewp.exe process on remote server
  • Installed VS2010 remote debugger from DVD (as I can remote debug referenced libraries)

This is beyond frustrating.  I migrated my code from VS2008 .Net3.5 to VS2010 .Net4.0 to take advantage of the inherent multithreading framework.  Debugging works when using local host and was stable until deployment to test server.

Thanks in advance,


How can I be sure that my entire project is up-to-date and free of errors in VS2010?


Seems like a stupid question, but I will go to Build > Build Solution many many times and the build will succeed many many times, then I will put in a minor syntax error and the build will fail, BUT the build will not fail because of the minor syntax error; it will fail because of an unresolved type that I put in about twenty compiles ago. And then I will fix the minor syntax eror, and the compiler will still complain about the unresolved type. Here is my code:

<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
  <form runat="server">
  Hello World!!  

Pretty simple, really. I go to Buld > Build WebApplication1 and it runs OK. Now, if I put in a minor syntax error, such as substitute "forrrrrrrm" for "form" and then try to Build Solution, it complains not about the misspelled word, but about the FreeTextBox. And then if I correct the misspelled wird, it still complains about the FreeTextBox. Which leads me to believe that Building the Solution does not check absolutely 100% everything that needs to be checked. Is there a more thorough way of compiling a program that I need to use?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend