More Related Resource Links

Has anyone had issues getting server-side validation on an Entity Framework required field (property) to work? The data type is a string (nvarchar). Server-side validation for required fields of other data types WORK fine. Only string fields have issues.
I get the following error on UpdateModel(obj); of my POST method within the controller.
Exception Details: System.Data.ConstraintException: This property cannot be set to a null value.Source Error: Line 4500: OnTextChanging(value);Line 4501: ReportPropertyChanging("Text");Line 4502: _Text = StructuralObject.SetValidValue(value, false);Line 4503: ReportPropertyChanged("Text");Line 4504: OnTextChanged();
I've even tried data annotations like this but it seems to get ignored. [MetadataType(typeof(ObjMD))] public partial class Obj {

I have a website which is running on a locally on IIS, and have noticed that I can display an image in /Image/MyImage.jpg from an aspx file in the web root directory with either of the following html:<img src="Image/MyImage.jpg...> or <img src="../Image/MyImage.jpg...>Even though these point to different locations, and <img src="../Image/MyImage.jpg...> is incorrect, they both work and the image is displayed correctly.I've looked into this, and in Application_BeginRequest(), HttpApplication.Context.Current.Request.Path is "/Image/MyImage.jpg" in both cases, which is correct.If I run the website on the local ASP.NET development environment (localhost), it never calls Application_BeginRequest() for the image, and only <img src="Image/MyImage.jpg...> works, which is what I would expect.How is the Request.Path variable set? I find it confusing that two different resource locations would cause the path in Request.Path to point to the same location.

How can I change the value of a foreign key field? E.g. in the Product list view instead of the value of the field Supplier.CompanyName I want to display the Supplier.Region. I searched my whole code to get a clue, googled for "change navigation property" and looked in the docs but unfortunately I did not find any hint. If you know where to find the answer, please let me know too the source of your knowledge!

We're building SSRS 2008 R2 reports using SSAS as data sources. There are several occaissions where the data types of certain dataset field values that represent cube measures are not numeric. As such, when these fields are used in an aggregate
function they throw an error. Is there a way to remedy this in the dataset?
Thanks for your help.

I am having a simple OOTB approval worflow associated to the simple document library. Task is created when an document is uploaded to the library. When I click the task item in task list, I see a blank field "Requested By" right below the
"Status" column and I am unable to understand from where this field is coming and how to populate this field. Any help would be great...

I am trying to bind the XML data to a datagrid from an XML file. I don't know why I am getting the message: "A field or property with the name 'User_x0020_Name' was not found on the selected data source."

The "User_x0020_Name" field does exist in the XML file. This is a portion of the XML file.

I have a project that works fine when I run it locally but when I put it on our new Windows 2008 running IIS 7 I get the following error. I have done some research and nothing seems to solve my issue. I am using VS 2010 and the entity framework and the error appears to occur when I am trying to bind data to the view?

Thanks in advance

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

I have added a binary property to the user profile. I update this field from a piece of c# code.
I get the error "binary field Property Not Editable: This property can only be modified by an administrator"
When I alter the service application and ad my account to the administrator group it works. The problem is that
I have to grant every user this right for this to work. Can anybody help me for this code to work without
having to add all the users to the service application administrators group?

I would like to setup a workflow so everytime a user adds a new document to a document library the workflow adjusts the documents permissions.

I've added a new field to the document library settings which I called "Owner". This field searches persons or groups in the active directory. The person of group that I fill in here has to get contribute-permissions for this document. This process needs
to be automatic so I think I have to build a workflow.

Who has got experience with this? Who can help me? Can I do this with the Sharepoint Designer?

Visibility property is a very powerful and yet often overlooked property available in both WPF and Silverlight. It enables you to set Visibility of certain UIElement objects to different states like: Visible, Collapsed and Hidden (not supported by Silverlight). This tutorial shows you how to use it and how to bind to Visibility property