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


Top 5 Contributors of the Month
Kaviya Balasubramanian
Velemoochi
Imran Ghani
Post New Web Links

Silverlight webpart not working...

Posted By:      Posted Date: September 20, 2010    Points: 0   Category :SharePoint
 

hi,

I have created a silver light Log In application  and added it into my Empty SharePoint Project. Also i created webpart for the silverlight application with the help of this link http://chrisforbesblogs.net/2010/08/11/deploying-a-silverlight-application-to-sharepoint-2010/

Now when i deployed the webpart i can see the webpart but when perform any operation i get the following error:

Microsoft JScript runtime error: Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at MahaleLoginNew.ServiceReference1.GetPasswordCompletedEventArgs.get_Result()
   at MahaleLoginNew.MainPage.Webservice_GetPasswordCompleted(Object sender, GetPasswordCompletedEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at MahaleLoginNew.ServiceReference1.ServiceClient.OnGetPasswordCompleted(Object state)

Not getting the way to solve it......

 




View Complete Post


More Related Resource Links

the problem of silverlight sildeshow webpart in sharepoint

  

I added this silverlight sildeshow webpart (http://www.sharepointevolved.com/blog/Lists/Posts/Post.aspx?List=0586f39d%2Dc3f2%2D4f6c%2Db61f%2D2a33a3fcd95c&ID=27) which  customized a SharePoint data form web part with XML and XSLT to my sharepoint site which uses Active Directory authentication. it looks great (I published the webpage). but after I logout the system account, and login as my regular account with Read permission. the silverlight webpart can't show up. I check the permission of the Picture Library. there is no problem. I can see the pictures in the Picture Library with my regular account.
Anybody has the same problem? how to fix it?

Thanks
Sean


the problem silverlight sildeshow webpart in sharepoint

  

I added this silverlight sildeshow webpart (http://www.sharepointevolved.com/blog/Lists/Posts/Post.aspx?List=0586f39d%2Dc3f2%2D4f6c%2Db61f%2D2a33a3fcd95c&ID=27) which  customized a SharePoint data form web part with XML and XSLT to my sharepoint site which uses Active Directory authentication. it looks great (I published the webpage). but after I logout the system account, and login as my regular account with Read permission. the silverlight webpart can't show up. I check the permission of the Picture Library. there is no problem. I can see the pictures in the Picture Library with my regular account.
Anybody has the same problem? how to fix it?

Thanks
Sean


silverlight sildeshow webpart in sharepoint

  

I added this silverlight sildeshow webpart (http://www.sharepointevolved.com/blog/Lists/Posts/Post.aspx?List=0586f39d%2Dc3f2%2D4f6c%2Db61f%2D2a33a3fcd95c&ID=27) which  customized a SharePoint data form web part with XML and XSLT to my sharepoint site which uses Active Directory authentication. it looks great (I published the webpage). but after I logout the system account, and login as my regular account with Read permission. the silverlight webpart can't show up. I check the permission of the Picture Library. there is no problem. I can see the pictures in the Picture Library with my regular account.
Anybody has the same problem? how to fix it?

Thanks
Sean


Silverlight ScrollIntoView not working with virtualizing panel.

  
Hi I have written a custom virtualizing panel which is working great so far. This panel is used on a list box. When I now call ScrollIntoView(item) on the list box, nothing happens. I have implemented the BringIndexIntoView() method on my virtualizing panel but it is never called. Is this a bug in Silverlight?

How to debug silverlight webpart in sharepoint 2010.?

  
Can i debug the zap in sharepoint.?

SharePoint 2010 - "My Inbox"(OWA) webpart not working with Exchange 2010

  
Hi, I'm trying to setup the webpart "My Inbox" (OWA) in SharePoint 2010. It works when connecting to OWA running exchange 2007, but failes with error 400 not found when connecting to OWA running Exchange 2010. The error appears after logging in.  I'm using this url: https://<exchangeserver>/owa I assume that this should be supported by Exchange 2010, but it seems to fail using this parameter /?cmd=contents. Any suggestions?   Best regards, Petter

Custom Webpart not working on "My Profile" page but works on all other pages. Linq Problem?

  
Hi, I created a publication site and in that site i created pages with specifique metadata (using a pagelayout with a custom content type)0. My webpart is getting data from those pages and displaying it. My webpart works on every page except on the "my profile" page(overview tab). I get the following error: Invalid Url: /TestSites/course I used the SPMETAL to create a class and i'm using this class to retrieve the data from the pages (with linq). The url i give to the entity is http://pcp/TestSites/course  this works fine on every site except on the my profile page. Can anybody help me? Here is the code i use to retrieve my data: EntitiesDataContext ctx = new EntitiesDataContext(courseSite); //Code below gets only the pages with a courses contentType. //EXCEPTION TRIGGERT ON THE FOLLOWING LINE IF IN PROFILE PAGE EntityList<Courses> course = ctx.GetList<Courses>("Pages"); //Writing the query to get the correct pages(with the course page layout only! var Query = from myCourse in course.ToList() where myCourse.CourseParticipants.Contains(myWeb.CurrentUser.LoginName) Select new{myTitle = myCourse.CourseTitle, myCompany = myCourse.Company, myPath = myCourse.Path, myName = myCourse.Name }; Thx.    

Possible bug: Calendar views browse month function not working when list is inserted as webpart.

  

Inserted a custom list with a calendar view on a page as webpart. Browse month function does not work, there is a postback but month is still the current month instead of the next or previous.

Is this a know issue/bug?


Silverlight Webpart enableHtmlAcces = True is this possible?

  

I am hosting a silverlight app in a silverlight webpart in 2010.  I need to set the param enableHtmlAccess="True" in the content.  I am able to do this if I put my own silverlight hosting code in a content control.  

 

Is it possible to set a param in the silverlight web part?  (again this is a <param name="enableHtmlAccess" value="True"/> that is a nested tag in the <object> tag the web part generates when building the page based on the web part.  The custom init params is not a solution it just passes those values into the application itself, this has to be set on the rendered html.

 


Secure Sharepoint 2010 with Silverlight Webpart not communicating with CRM.

  

We have a SharePoint 2010 Enterprise site using SSL. I have modified a webpart that uses Silverlight to connect to crm and output data from there.

The project works when I debug the Silverlight project. This was only after I implemented a clientaccesspolicy.xml on the CRM site. The problem I have is that when I try moving it to the SharePoint site or debugging the project that wraps the webpart, I get the same cross domain error. The error is as follows.

Unhandled Error in Silverlight 2 Application An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at CRMSLParts.CrmSdk.ExecuteCompletedEventArgs.get_Result()
   at CRMSLParts.AccountManager.service_ExecuteCompleted(Object sender, ExecuteCompletedEventArgs e)
   at CRMSLParts.CrmSdk.CrmServiceSoapClient.OnExecuteCompleted(Object state)
<my site here>
Line 0

This error when debugged in Visual Studio 2010 is as follows.

An error occurred while trying to make a request to URI 'http://<myCRMsiteHere>/MSCrmServices/2007/CrmService.asmx'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is

How to change a SharePoint list item Approval Status from Silverlight webpart

  

Hello, 

I'm facing the following problem:

I have an embedeed silverlight xap application inside a custom visual webpart, that access SharePoint data through Microsoft.SharePoint.Client.Silverlight classes, and I have to modify some fields from an item from a list that has "Require content approval" enabled. I update the item successfully, but its approval status is set to "Pending" afterwards. 

How can I re-approve the content programatically?

Some additional information:

  • SPList item has a moderation information field, but in Silverlight there is only "ListItem" which does not contain such field.
  • When I try to do "item["_moderationinformation"] = something", I receive a PropertyOrFieldNotInitializedException.
  • I can check for Item.ParentList.EnableModeration, but there is neither a field nor a method related to moderation on the item itself.
A possible solution would be to create and call a web service that approves the items, but I'd rather prefer to avoid hosting and calling a ws to cover this functionality.

Any help on this would be greatly appreciated.

Regards,

Ezequiel

 


WebPart Assembly deployed to GAC is not working

  

I've developed a web part using WSPBuilder and created a feature to deploy it

I managed to get the web part running on my web application using WSS_Minimal trust level in Web.Config, so there is no problem with the code (Anyway I'm adding a literal control with a fixed text in CreateChildControls()).

I knew that deploying to GAC does not require setting the trust level as the assembly deployed to GAC is fully trusted by CLR but when I change the trust level to any of (Minimal/Low/Medium/High) while deploying to GAC, I get the exception

"Security Exception
Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed"

so why I'm getting this exception when deploying to GAC while the assembly deployed should be FULLY trusted and not requiring a specific trust level as opposed to \BIN deployment.


THosE wHo doN'T apPreCiATe LiFe,

ReportViewer webpart is not working after SharePoint 2010 upgrade

  

After upgrading to SharePoint 2010 and Reporting Services 2008 (separate servers), all our web part pages that have the ReportViewer web parts in them are not working.  The error we are getting is "Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe."  All the reports are working on the report server but not through the web parts.  We used Visual Studio 2005 to create these reports and they all work in MOSS 2007 that also ran Reporting Services 2005.  If we delete the web part with the error and put in the ReportViewer web part manually on the page in SharePoint 2010, the reports do work.  But there are too many reports to be doing this manually for every web part page.  We already tried making changes to the Handler Mappings but it did not resolve the errors.  As far as we can tell, all the DLLs are in the right places.  Any help or suggestions would be greatly appreciated.  Thanks.


CMIS Intrigration with sharepoint 2007 silverlight sample is not working

  
I have downloaded a sample appliaction to intrigate cmis service with moss 2007 but it is not working.
http://msdn.microsoft.com/en-us/library/dd440954.aspx this site will give background of my problem

Sample Silverlight webpart is unable to fetch Folder, Uploaded Items e.t.c . Giving error : [HttpWebRequest_WebException_RemoteServer]
Argument:Not Found

But the sample is saving data(Creating Folder,uploading items) Unable to understand Service error of Appliaction error.

Please throw some light in it

How to access querystring in Client Object model [silverlight webpart]

  

can we access querystring in Client Object model [silverlight webpart]?

 


Working with User Names and Roles in Silverlight Applications

  

Security is a key component of applications and something that developers often struggle with to get right. How do you authenticate a user? How do you integrate roles and use them to show or hide different parts of a screen? These and other questions commonly come up as I talk with developers working on ASP.NET and Silverlight applications.

I was recently presenting a workshop on Silverlight at the DevConnections conference in Orlando and had a question from the audience on how I handle security roles in Silverlight applications. Since I had just implemented a security mechanism for a customer I gave a brief response but didn't have a sample application available to share to point people in the right direction. After the workshop was over I put together a sample application to demonstrate one potential approach for accessing user names and roles. I'll walk through the sample application in this post and highlight the key components.

The goal of the post isn't to dictate how to authenticate users since every application has unique requirements. However, I will discuss general techniques for accessing user names and working with roles to block access to views and show or hide controls.

 

Security Techniques

Silverlight applications can take advantage of Windows and Forms authentication techniques and can integrate user roles in

Content Editor Webpart not working in web part page

  

I Have a CEWP, i have written jquery for displaying the same.It works fine when i do the following:

Site Actions --> Edit page -->Add a Webpart --> CEWP --> and in the Source control editor, i paste the jquery. My jquery does a calculation by comparing two values A and B in a list. If A is greater, one image is shown, if it is less another image will be shown.When the user clicks the image the list gets opened and on the change in the values the image will be changed. This works perfectly when i do the above.

But when i create a Webpart page, it gets created in the Shared Documents site. And when i add a web part and does the same thing, my CEWP is not showing the correct image.

 

 


Lakshman

Categories: 
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