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

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

Could not generate view for

Posted By:      Posted Date: August 30, 2010    Points: 0   Category :Windows Application
Hi,   Could you please tell me why I get "Could not generate view for Action", where classes Action and Designer are as follows   using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Collections; using System.Drawing; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.Workflow.ComponentModel.Compiler; using System.Workflow.ComponentModel.Serialization; using System.Workflow.Runtime; using System.Workflow.Activities; using System.Workflow.Activities.Rules; using System.Drawing.Drawing2D; namespace Microsoft.Samples { [Designer(typeof(ActionDesigner), typeof(IDesigner))] public partial class Action : System.Activities.CodeActivity { public Action() { } protected override void Execute(System.Activities.CodeActivityContext context) { } } public class ActionDesigner : FreeformActivityDesigner { protected Rectangle frameRect; protected Rectangle pageRect; private Color _baseColor; private Color BaseColor { get { return _baseColor; } set { _baseColor = value; } } private Color _lightingColor; private Color LightingColor { get { return _lightingColor; } set { _lightingColor = value; } } private Color _titleLightingColor; private Color TitleLightingColor {

View Complete Post

More Related Resource Links

Customer Activity Designer Problem - "Could not generate view for VisualBasicValue`1"

I'm reading Bruce Bukovics Pro WF4 book and in chapter 16 - Advanced Customer Activites, he details emulating a Sequence activity along with a custom designer. When I drop the custom activity into a new xaml activity, I'm getting all sorts of wierdness. The custom sequence activity has a condition property that determines whether to schedule each child activity contained within. Once I set a value in the ExpressionTextBox for the activity, Visual Studio starts showing in red "Could not generate view for VisualBasicValue`1" along with this error showing up in my error window: The activity 'VisualBasicValue<Boolean>' cannot be referenced by activity 'MySequence' because the latter is not in another activity's implementation.  An activity can only be referenced by the implementation of an activity which specifies that activity as a child or import.  Activity 'VisualBasicValue<Boolean>' is declared by activity 'MySequence'. Here is the source for the activity itself: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Activities; using System.ComponentModel; using System.Collections.ObjectModel; namespace ActivityLibrary { [Designer(typeof(ActivityLibrary.Design.MySequenceDesigner))] public sealed class MySequence : NativeActivity { [Browsable(false)] public Collection<Activity&

Trying to generate a view with Details.tt

I'm using Entity Framework and I have Mvc 1.0 installed.I keep getting weird errors when I try to generate a view for my details method. The first time I try to gen I get: error CS0234: Compiling transformation: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) I rebuild and then I get: CodeTemplates\AddView\Details.tt(-1,-1) : error : The host threw an exception while trying to resolve the assembly reference 'System.Data.Entity'. The transformation will not be run. The following Exception was thrown:System.ArgumentOutOfRangeException: Length cannot be less than zero.Parameter name: length   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)  Anyone have any ideas? I've searched google...I've searched the forums...I've moved the .tt templates into my solution. No luck.

how to xml Generate Jquery tree View using XMl

i have an xml file how to Generate Tree View<?xml version="1.0"?>  <HD id="Acct" value="Acct">    <SH id="Books" value="Books">      <TRK id="Annual" value="Annual">        <TGT id="ABA.0001" value="ABA.0001">Closure of accounts for 2009-10</TGT>      </TRK>      <TRK id="Monthly" value="Monthly">        <TGT id="ABM.0003" value="ABM.0003">Finalization of expense accounts for Jun</TGT>      </TRK>    </SH>  </HD>  <HD id="Admin" value="Admin">    <SH id="GH" value="GH">      <TRK id="Eqpt" value="Eqpt">        <TGT id="AGE.0001" value="AGE.0001">Shifting of BSNL Landline.</TGT>      </TRK>    </SH>    <SH id="Offc" value="Offc">      <TRK id="Eqpt" valu

Generate the event handler of a control directly in the markup view ?

Hi there, I was wondering if there is a way to generate the event handler of a control directly in the markup view and not in the design view. Thanks.

Based on the rowsize entered on the text box, how to generate a dynamic grid view of that many row?


Hi, I have a text box.It is having 2 validation on it(Range validator and req field validator). Now,if I enter an integer within 0-8,just after gettting out of focus of the text box,I need to generate a grid which should contain exactly that many number of rows. Now,My question is: 1.How to capture that number entered in the text box and without any button click event,how to to generate the grid?I suppose,I need to write the code in one of the TextBox event.But,which one and how? Please help me as I am in urgent need.

Looking for best setup to accomplish this task, need to generate report view for printing(edited)


We have some pages that are in gridviews and datalists.. one requirement for 2 of them is the ability to generate the results in a report view of sorts.. in other words, if you do a search and the results come back in one of the 2 gridviews or datalist, on screen its presented as it currently does.. just a gridview or datalist.. but i need to add a button that gives you the option to convert / generate the data in a report view so you can print it out and not be just a print out of the gridview..

I already offer the ability to export to excel format, but what they are wanting is to create it so if it needs to be presented to someone, they can print it out with the click of a button and it looks like a nice report.

Hope that makes sense... any suggestions would be great..

Just thinking to myself, could it be possible or would this be an option and if it can, how can it be incorporated to work correctly..

Build a template page that has a formal report layout.. then if you chose to print, then each record in the gridview loops thru the template and each record would print out on its own page..

Does that sound like it can be done? or am i just wishing it could be that simple??


// Added to above //

What i guess would be comparable to what im looking for is

Truly Understanding View State

This article provides a detailed understanding of the ViewState.

GridView Parent Child View with JQuery Effects

I was just checked how to add some more cool effects to the GridView control using JQuery. In this post I will display parent-child data in the GridView control with some help of the wonderful JQuery library.

Let's first populate the GridView control.

Model View Controller (MVC) for ASP.NET

Model View Controller (MVC) architectures, immediately wonder how the MVC pattern can be applied in an ASP.NET world. This article will demonstrate how the MVC pattern can be applied to an ASP.NET web application and still maintain the basic Microsoft supplied architecture.

jQuery grid view plugin

jqGridView is new, client-rich, XML-based, ajax grid plugin for jQuery library. jqGridView provides professional solution for representing and editing tabular data on the web. Carefully designed, with powerful script API, this editable DHTML grid is easy configurable with XML, and shows convincing results working with large amounts of data. jqGridView allows easy implementation of nice looking(managed through css). jqGridView is not platform-depending plug-in, it can be used with different web -programming platforms like: ASP .NET/ASP, PHP, JAVA, CGI scripts etc. jqGridView has hight bowser compatibility.

Generate thumbnails on the fly

There are many posts how to generate thumbnails using ASP.NET. Some good some less. Be sure to get distance from the versions that use Image.GetThumbnailImage method.

Generate Random Numbers

SQL Server has a built-in function that generates a random number, the RAND() mathematical function. The RAND math function returns a random float value from 0 through 1.

jQuery grid view plugin

jqGridView is new, client-rich, XML-based, ajax grid plugin for jQuery library. jqGridView provides professional solution for representing and editing tabular data on the web. Carefully designed, with powerful script API, this editable DHTML grid is easy configurable with XML, and shows convincing results working with large amounts of data. jqGridView allows easy implementation of nice looking(managed through css

view state vs request parameters


If  the view state is the data entered into the form fields then they are supposed to be available in the request parameters or request body. Then why would we need view state for?


Form view in ASP.NET


hi all...!
i have a database and i create a form with button edit,delete, New Registration..using Formview in asp.net..
everything was working good...

And i write SQL statement to get New ID number into dropdownlist/TextBox when i click button "New Registration".

i can get new(next) ID number after read database
it's also working good

Now i want change it to get ID which was deleted from table and replace the ID with new record...what i need is when i click "New Registration" i want get deleted "ID" first and then go to new record ID...

my code is here:-it working for get next ID after read database.

FROM Table1
AS boon WHERE PANG &gt;300000

partial view, 2 controllers



This is my first visit to the forums, I hope someone here can help me


I'm writing a small webapplication for creating repair tickets and adding comments, really basic

now I'm writing this in MVC2

So I have 2 controllers, 1 HomeController that does everything related to the tickets (listing tickets, creating new ones, editing) and 1 controller for the comments

the edit view for the homecontroller contains a partial view for /comment/create

so /home/edit/ticketnumber can edit the title and status of the ticket on the left side of the screen, the right side of the screen contains the partial view for adding comments

this is done like this:

Html.Renderaction("Create", "Comment");

but if I look at the generated html code when running the app, both save buttons go to /home/edit/ticketnumber

so the comment is never saved.


I hope this makes sense and that someone can help me solve this

WebDev.WebServer.exe has encounted a problem and needs to close when trying to view page in browser


Hi, whenever I load an aspx page in vwde2008, I get the message in the subject of this post.  After I click Ok on that, I get a dialog box, Unable to Connect to the ASP.Net development center.  What can I do to troubleshoot?

I am using Windows XP SP3, vwde2008 with SP1, on a HP desktop.  Also using Office 2003 if that is relevant at all.

Thanks, Justin

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