.net

What are your favorite resources concerning RESTful WCF?

Please let me know your favorite books, blogs, articles etc about RESTful WCF. I know how to Google - what I'm really looking for are sites, books, etc that you have personally used and gained something useful from. Thanks! ...

WPF, Silverlight or XNA: Choosing a platform for game development

Which .Net technology is best suitable for which kind of game? What the criteria for choosing between WPF, Silverlight or XNA? ...

Exposing the DescriptionAttribute of Enums from a WCF Service

how can i expose description attribute in enum values from service to client or web reference using WCF or how can i expose enum with description attribute to client using WCF? while exposing Description attribute is not exposed only enum values are exposed in client. I want value in description attribue in enums. ...

WCF Recommend approaches for serializing multiple objects

I am attempting to optimise around a possible bottleneck. I have a server application that is serving objects from a database to applications remotely, who can work with 1 - n objects of 1 - n different types (where n can be a relatively high number) that all implement a common interface but may contain many unique properties on differe...

How to Consume Attribute "Description" from webservice

No attribute for Enum values is genereted in client side when code is generated using proxy generator in client side. how can i make them also in client side. eg In service or web service [DataContract] punlic enum Periods { [Description("2 months")] [EnumMember] TwoMonths, } (or) [DataContract] punlic enum Periods { ...

If I want to rebase my DLL's, how do I go about doing it?

This is a continuation of this question. I'm in the process of testing whether rebasing the .NET DLLs, and NGENning them will provide me with more shared code in memory on terminal servers. However, my plan seems to have a flaw, and it's that I seem unable to find a working method to figure out a working set of addresses. What I thoug...

When is it acceptable to break CLS compliance?

I was wondering which edge cases exist that could make Common Language Specification compliance acceptable. Even when not intending to be accessed from other languages, I think that the tenets asserted by the CLSCompliantAttribute are good best practices. Do you have encountered / know of cases where YAGNI outweighs the best practices? ...

Entity Framework - Inheritance

I am just starting with Entity Framework and have the following problem: I have a Site entity which contains a navigation property Paragraphs. I have multiple entities (i.e. ImageParagraph, LinkListParagraph) that should be inherited form Paragraph. I would like to query for a Site object and access its Paragraphs and work with them d...

Problem with delagates after migrating .Net 1.1 project to 3.5

I've migrated a .Net legacy .Net project from .Net 1.1 to .Net 3.5 and when I try and run it I'm getting the following error: Cross-thread operation not valid: Control 'grpLogin' accessed from a thread other than the thread it was created on. When the a thread (Which I assume is not the UI thread) changes the enabled property...

Switching .NET 1.1 webservice to WCF safely?

Is it safe to switch a .NET 1.1 webservice to a WCF service, knowing that not all clients use .NET to access the service? So they use the SOAP/XML method. Can we switch to WCF without the clients having to change code? ...

Treat subclass as its superclass when only a member differs by its type

I have a Variable class and and 3 subclasses: VariableBool, VariableLong and VariableDouble. Each subclass defines only a value member of the type of the suffix. Now, I need to transfert objects based on these classes over WCF. I have multiple clients registering their variale to a server. Whenever a value changes on one client, it's ...

MonoRail redirect to # anchor

I'm using Castle Monorail with jQuery tabbed navigation. When handling a controller action, I would like to redirect to a view, and control which tab is visible. Therefore, I'd like to have my controller redirecting to a specific anchor in a view, something along the lines of: RedirectToAction("Edit", "id=1", "#roles")); Resulting in...

How to determine programmatically in c# that a type accepts null value or not?

I know merely checking for whether the type is not a value type is not sufficient. How can i account for those Nullable? DUPLICATE http://stackoverflow.com/questions/374651/how-to-check-if-an-object-is-nullable ...

Searching for the beginning of a string in an array in C#

I have a List containing a lot of paths. I have a specific path I want to check against this list to see if there are any paths there that uses this path, ie: f.StartsWith(r.FILENAME) && f != r.FILENAME What would be the fastest way of doing this? edit: Complete function from answer below: static bool ContainsFragment(string[] pat...

How can I change order of the displayed columns in Dynamic Data ?

Hi, For some of my Dynamic Data meta data tables I would like to control the order of the displayed columns. I have a custom page and I created a sub-directory named the same as my table. I copied the ListDetails.aspx and code file to the new directory. And changed AutoGenerateColumns to false(in Gridview) and AutoGenerateRows to fals...

Workflow Foundation Threading and WCF OperationContext

Hi, I am using the WorkFlowServiceHost(in .net 3.5) to host a State Machine Workflow. I use the WCF receive activities to handle calls into the workflow. I am using a WCF authorization policy to attach claims to the incoming requests based on info in the message headers. So, further down the chain I can use the ServiceSecurityContext...

Can you use Xceed Grid for .NET to display right-to-left scripts, e.g. Arabic

Can the Xceed Grid for .NET control be used to display right-to-left text? I can't find any documentation or samples to do this. Does anyone know if it is possible? Thanks. ...

DropDownList from object

How do you bind a DropDownlist DataText or DataValue field from a object. When the object in question is at a second level, e.g. the object to bind is not in the first level of the returned object Users.ContactDetails.Telephone, as the code below doesn't work: ddl.DataSource = dal.dal_Users.GetAllUsers(); ddl.DataTextField = "Telephon...

Migrating applications from Dev to QA to Prod

I have a number of webservices and clients (click-once deployment) that I am wondering how to deploy efficiently. We have a QA department that reviews and tests releases as well as an operations group that currently does the 'deployment' which basically consists of copying tested releases from QA boxes to Prod boxes. The process is quite...

Can a Crystal Report be edited in a .Net Windows interface?

Please could you provide some guidance for me? I am currently evaluating Crystal Reports 2008 for use within a major enterprise project. I have successfully used Crystal Reports Basic within Visual Studio, but we want a bit more functionality this time. Reports will be produced based on ADO.NET Xml datasets and will be saved to a SQL S...