.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

Error previewing images in the designer

Posted By:      Posted Date: August 27, 2010    Points: 0   Category :WPF
Hi, I'm an absolute beginner with WPF and tried to play around with some of the examples I found.   Here is the problem: I want to create an Image control as a child of the default Grid created by the designer and set its Source property in Xaml.   Here is my Xaml: <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> <Image Source="test.png"></Image> </Grid> </Window>     The image file exists in the project folder but the designer immediately gives me the following error:   Error 1 The file test.png is not part of the project or its 'Build Action' property is not set to 'Resource'. D:\CSharp\Test\WpfApplication1\Window1.xaml 6 16 WpfApplication1   When I add the file to the project and set its Build Action to Resource the image is displayed at runtime. The problem is the designer still insists on the above mentioned error and does not display anything except for the information:   Problem Loading   The document contains errors that must be fixed before the designer can be loaded. Reload the designer after you have fixed the errors. Reload the designer   What am I doing wrong?   (I am using Visual C# 2008 Expre

View Complete Post

More Related Resource Links

Error by insert new item in dataview sharepoint designer



doesn't any1 know the answer of my question?

i'm trying to create a data view with the edit, delete and insert function.

the edit and delete works fine. only the insert gives me this error:

The data source control failed to execute the insert command.

plz help?

Showing Designer error for Silverlight App when trying to access resource which contains code e.Resu

Environment is: Silverlight 4, VS Studio 2010. Designer is showing error in a Silverlight App when trying to access a resource as below. And there are no build or runtime errors. Extensive research found that, in the "InvestorsProvider" class I am using wcf services, which has a callback method. In the call back method I am using this statement "this.MyProperty = e.Result" where e.Result is ObservableCollection. If I remove the e.Result it is not showing any designer problem. <UserControl.Resources> <local:InvestorsProvider x:Name="investorsProvider"></local:InvestorsProvider> </UserControl.Resources> Here is the error System.Reflection.TargetInvocationException [Async_ExceptionOccurred]Arguments: Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50401.0&File=System.dll&Key=Async_ExceptionOccurred at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at SilverlightApplication9.ServiceReference1.GetInvestorsCompletedEventArgs.get_Result() in C:\Documents and Settings\mennis\my documents\visual studio 2010\Projects\SilverlightApplication9\SilverlightApplication9\Service References\ServiceReference1\Reference.cs:line 115 at SilverlightApplication9.Inves

The specified view is invalid error when browsing for images

Hello All, Currently using MOSS 2007 publishing site and using the CMS elements to publish content to the web.  One of our users is experiencing a strange problem whereby when they try to insert an image into the Sharepoint content editor using the Insert Picture functionality they get the following error when trying to browse to an image: The specified view is invalid.   at Microsoft.Sharepoint.SPViewCollection.get_Item(String strDisplayName) at Microsoft.Sharepoint.Publishing.Internal.States.AssetPickerDetailState.InitGridView(GridView grid) at Microsoft.Sharepoint.Publishing.Internal.States.AssetPickerDetailState.Configure(SMObjectList objectlist) at Microsoft.Sharepoint.Publishing.Internal.WebControls.SMObjectList.Handle_LoadCompleteEvent(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Page.OnLoadComplete(EventArgs e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Only one user is experiencing this problem, others are fine. Does anyone have ANY ideas what is causing this issue or how to fix it? Thanks

Error creating Read Item or Read List operation in Sharepoint Designer 2010

In terms of high-level requirements, I need to pull in lists from a couple of different web apps.  To do this, I’m using SPD 2010 to create an External Content Type for the list of interest.  I’m able to create a SOAP Service or WCF Service connection just fine.  However, when I try to create the external content type and create a Read Item Operation on one of the GetList or any other Get* (or other Update methods for that matter) methods, I get the following error:"The method that your operation is based on has parameters with complex types that do not have default parameterless constructor.  This kind of data source methods cannot be used in Business Data Catalog."I tried defining an operation on the “AddAttachment” method, and that worked just fine.  I also tried providing default values to the listName and viewName parameters when creating the SOAP Service connection, but still get the error.  Same issue with a WCF Service connection as well. Does anyone know if this is a 2010 issue, or am I approaching this requirement incorrectly?  What are other approaches for connecting to lists that reside in a different web app than yours? 

Error in SharePoint Designer when converting to XSL

While using SharePoint Designer, I attempt to convert a web part "list view"  to XSL and i get the error:  "The server returned a non-specific error when trying to get data from the data source.  Check the format and content of your query and try again.  If the problem persists, contact the server administrator."  Was able to convert this same web part a week ago, and now I am getting this error.  I have restarted all of the servers and still receive this error.  The only thing I can think of is that there might be an issue with having too much data in the list.  Any ideas?

Error customizing Approval Workflow in SharePoint Designer

When attempting to customize OOTB Approval Workflow, message "Workflow is read only?"  Request copy errors with "Server could not complete your request" Details button produces blank.  Any clue?  I am the site collection administrator for the site and the secondary farm administrator.

Performancepoint designer error - Update View Failed

I've created a scorecard that uses dynamic members.   I'm no longer able to design it. When I click on 'Update' to retrieve the scorecard I get the following error:   The last attempt to update this view failed. Try retireving the view again by pressing Update in the Edit tab. If you are still not able to retrieve it, contact your administrator. Error Details: An unexpected system error has occured. Additional details have been logged for your administrator.   The event log says: An unexpected error occurred.  Error 56822. Exception details: System.ServiceModel.CommunicationException: The maximum message size quota for incoming messages (100000000) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. ---> System.ServiceModel.QuotaExceededException: The maximum message size quota for incoming messages (100000000) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.    --- End of inner exception stack trace --- Server stack trace:    at System.ServiceModel.Channels.HttpInput.ThrowMaxReceivedMessageSizeExceeded()    at System.ServiceModel.Channels.HttpInput.GetMessageBuffer()    at System.ServiceModel.Channels.HttpInput.ReadBufferedMessage(Stream inputStream)    at System.S

SharePoint Designer Error - Unexpected error on server associating the workflow

I am creating a multistep workflow with multiple Approval steps.  When I get to step 7 or the 7th Approval step and try to publish it, it states that "Errors were found when compiling the workflow.  The workflow files were saved but cannot be run."  With "Unexpected error on server associating the workflow" in the advanced section.  This same error occurs at other stages of the approvals as well.  If I put another process/action in the step, the workflow runs without any problem.  Thanks for the help! JeremyJeremy

VS 2010 Report Viewer Designer Error


Hi ,

I have installed VS2010 Ultimate version and placed a report viewer in a web form . When i try to design a report thru the report viewer i get this error.

Could not load file or assembly 'ZedGraph' version = , Culture = neutral , PublicKeyToken = 02a83cbd12fcd60 or one of its dependencies . The system cannot find the file specified .


Error - when creating externalContentType by SharePoint designer


Hello ,

- I have create a web Service by VisualStudio .

- Then I Publish it to IIS .Then I test it and eveything is fine .

-  I open SharePoint designer . Then Create ExternalContentType.

- I choose DataSourceType : wcf service .

- I set "ServiceMetaDataUrl" and "ServiceEndpointUrl"  :  http://serverIp:portNumber/service.asmx.

when Press ok  . I get the following error   "There was an error generationg xml document" .

How Can I solve this error .




Sharepoint Designer and Foundation version mismatch error


The company I am employed by has been running SharePoint 2010 successfully for several months now. Recently when anyone attempts to edit our main site using SharePoint designer they are prevented from doing so an given the following error message: "Server Error: The version of Microsoft SharePoint Foundation running on the server is more recent than the version of SharePoint Designer you are using. You need a more recent version of SharePoint Designer". We are running the most recent version that we can find available for download from Microsoft. The server administrator has attempted to roll back the most recent patches / updates to SP Foundation, rebooted the site collection, tried a fresh install of Designer and other obvious common solutions to no avail.

This is a massive impediment to our continued development of this product. How do we resolve this problem?


Designer: Error Generating the Task Form



I keep getting this error, no matter whether i "assign form to group" or "collect data from user"


Followed the most basic examples straight from MSDN and my book, however, still get error EVERYTIME!


here is a screenshot from a workflow I tried to create on my own. No ideas! Please help me, this is probably the most frustrating error I've ever encountered because it gives NO INFORMATION about how to fix it ...



Visual Studio 2010 WPF Designer loading error


I have the following error when I try to open my xaml file under Visual Studio 2010 WPF Designer :

An Unhandled Exception has occured


Method not found: 'Void Microsoft.Expression.DesignModel.Core.PlatformService.RegisterPlatform(System.String, System.String, System.String, Boolean)'.

Blend 4 trial is however able to open and display this file.

Under Windows 7 Professional x64.

Best regards.



SharePoint Designer 2007 - Customize List View - Error when saving view ASPX page


We have a custom list definition that includes custom site columns.  When we try to open one of the list view aspx pages in SharePoint to update the view query we get an error when trying to save the page in SharePoint Designer 2007.  We receive a warning that the operation will customize the page from the site definition, which is fine.  And then get a general "Server error: ServiceRequestorID" alert.  ServiceRequestorID is a custom site column used by the list definition.

ServiceRequestorID field definition:

<Field ID="{FA39D24D-AB40-4b1d-BD80-94ABE34A7578}" Name="ServiceRequestorID" DisplayName="Service Requestor ID" StaticName="

vs2010 silverlight designer error


Hi all,

After installing Visual Studio 2010 and Silverlight Tools for VS 2010, I tried to generate a new Silverlight project and got an error in the xaml designer. 

None of the .xaml files generated by VS can be opened in design mode.

I have the KB30319.348 installed. The error is reproduced below:



Value cannot be null.Parameter name: parentContext

at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext..ctor(IMetadataContext parentContext) at MS.Internal.Host.ProjectMetadataContext..ctor(IMetadataContext platformMetadata, AssemblyReferenceProvider referenceProvider) at MS.Internal.Host.ProjectMetadataContext.FromReferences(AssemblyReferenceProvider referenceProvider) at MS.Internal.Designer.VSDesigner.GetMetadataForDesignerContext(DesignerContext designerContext) at MS.Internal.Host.PersistenceSubsystem.Load() at MS.Internal.Host.Designer.Load() at MS.Internal.Designer.VSDesigner.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.Loa

SharePoint 2010: PPS Dashboard Designer cannot retrieve application. authentiation error


I am getting this error when I try to open the dashboard designer in Sharepoint 2010/PPS.  This is from the out of the box site collection found under http://mywebsite/site/Pages/ppssample.aspx

This used to work.  Whare are the best ways to go about troubleshooting this?

one note? i can connect great via my web server (remote desktop/locally on server) but not from my laptop from my desk.

 Following errors were detected during this operation.
 * [9/28/2010 3:41:01 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
  - Downloading https://mywebsite/_layouts/ppsma/1033/designer.application?Operation=OpenWebsite&SiteCollection=https://mywebsite/sites/myApp&SiteLocation= did not succeed.
  - Source: System.Deployment
  - Stack trace:
   at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
   at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
   at System.Deployment.Application.FileDownloader.Download(Subsc

Creating Hotspots in images error in Sharepoint Desinger


So we just installed and are testing out Sharepoint Foundation 2010 and we have come across an error when inserting an image into a page and then editing that page with Sharepoint Designer 2010 and trying to create a hotspot on the image and try to save the page we the following error:

Content in the embedded form field may be changed by the server to remove unsafe content. Do you want to reload your page to see the results of the save?

So if you click no, nothing happens but if you click yes it will save the page but will clear the hotspot. And this is a fresh and clean install of 2010 on a 2008 R2 x64 server.

Hope you can help. thanks in advance.


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