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


Post New Web Links

Web part wont show up and says its unsafe

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

Greetings.

I am following this http://sarangasl.blogspot.com/2009/09/custom-sharepoint-webparts.html to program my first web part.
I follow it thoroughly just changing the assembly and class names to mine.
I did everything said.
At the step "choose web part from list" there is no such web part in the list to choose from.
And if i try to click on mysomething.webpart file i uploaded (link is http://moss2k7-2:5001/_layouts/WPPrevw.aspx?ID=10), i will get the message:

???-????? ??? ???м??? ?????????? ???-???м?, ????????????? ?? ???? ????????, ?????м???? ?????????? ??? ?м???????????. ???? ??? ?? ??????????????? ??? ??????????.

Yes i know its in russian. Miscrosoft should learn to use international error messages or at least add error codes that can be used to get the message in english. It compains that web part isnt registered as safe or something.

Well, i double checked everything.

my web.config file that is at C:\inetpub\wwwroot\wss\VirtualDirectories\80 contains

 

 <SafeControls>
	<SafeControl Assembly="BirthdayWebPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ef5bb117910a9115&quo


View Complete Post


More Related Resource Links

Unable to Show Edit item Links in Data Form Web Part

  
I have a DFWP connected to custom list and the boxes to Show Edit Item Links, Show Delete item links and Show Insert Item links are grayed out so that they can not be checked. This works fine when I use a DFWP connected to a standard list (i.e., Contacts). Is there something special that needs to be done to activate this functionality?ThanksDean

Content Query Web Part (CQWP) fails to show picture items from a document/picture library in an anon

  
I have a Picture Library and am trying to use the CQWP to display a list of items in the library.  The web part shows the items fine in authenticated mode, but it fails to show the items to anonymous users. The error log message is: Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.SetDocumentIconUrlAndOnClickString(SPWeb web, DataRow row, String strDefaultItemOpen, Boolean fSetDocIcon, Boolean fSetOnClick, String fileRefColumnRef, String progIdColumnRef, String fsobjTypeColumnRef, String permMaskColumnRef)     at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.PreProcessForDocumentIconAndOnClickAttribute()     at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.AddContentQueryData()     at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.GetXPathNavigator(String viewPath)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) I'm running SP 2010.  I've tried various scenarios including: 1. Using the default publishing template. 2. Using the blank site template with publishing and lock down features enabled. 3. Us

Site Aggregator web part does not show new tab

  
HI we have two sharepoint2010 sites on both when we add a new Site Aggregator web part we don't see the add new tab. I used this webpart quite a bit in 2007 and now in 2010 its not working.  is there some thing i have i have enable i am logging in as the site admin.   Thanks    

Web Part Page doesn't show current navigation

  
Hi! I'm having a problem with the navigation of web part page in Sharepoint 2010. For starters I need to say that I am a web designer and learning to brand Sharepoint 2010 wich means I'm not that tech-savvy so bear with me. We have created an intranet publishing site with Sharepoint 2010 and I have designed a custom master page with styles through Visual Studio 2010. The intranet site looks fine with the new design and I got navigation working with fly out menus, semantic subpages etc. The problem is: when I create a normal page the current sub-navigation is shown and it even shows my created web part page and all is fine, but once I go to this web part page, the left/sub-navigation disappears and I have no idea how to bring it back. The web part page uses the same master file as every other page. Everything with the the layout stays the same as my masterpage, except for the menu wich disappear so I thought it might be some property missing on the sub-navigation. Or do I need to edit something in the web part page layout in the gallery?: Master Page Gallery > BlankWebPartPage.aspx If so can I do it from Visual Studio? Here is the code for the left navigation menu: <!-- styles needed to have left nav to the left of the main area --> <div id="s4-leftpanel" class="s4-notdlg"> <!-- The quick launch bar / left navigation

unsafe web part when searching site in designer 2007

  
I am searching for a guid in the web site which the SharePoint logs allege that the server can not find.  All I get is an error message whose details state "A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered as safe on this site."  I don't know what page is causing the error.  I don't know which of the multitudinous webparts is causing the error.  I need to know how to find out so I can fix it sot I can resolve the major error.ERJ MCSD MCDBA

User Filter web part: how to show items with no value in it

  
I want to set up a document library View that shows the current user all items with their Department name in a column, as well as those items that don't yet have a Department name. I thought I could do this with the User Filter web part, but I am struggeling to show the items that don't yet have a department name. The problem I have is this: I created a view called "My department's items". I use the User Filter web part on it to show the user all items that have got the user's department name in a column. However, when a user forgets to fill out the department name after uploading a file, or even when they upload the file but then cancel filling out the compulsory fields, the uploaded file disappears from the "My department's items" view (because the department column is empty). How can I set up a filter to show all files that match the current user's department name as well as those that don't have a department name yet? Thanks.

How to: textbox text should show only the last part of the string

  
Hi, I have a textbox that shows info. (filename) When the filename is smaller than the width of the textbox all is fine, but when the filename is longer, i would like to show the last part of the filename in stead of the first part (default). Is this possible?

Form that is part of workflow wont open in form library

  
Hi, 

I am having an issue with my form. I have created a sharepoint sequential workflow using visual studio and as a task the user has to fill out an infopath form. When the form is submitted as part of the workflow is then saved to a form library. My issue is when I try to open the form in the form library I get the message "The form has been closed". 

I have check the Central Admin/Manage Form Templates and my form is here, status="Ready" and workflow enabled. But my form doesnt exist in the sitecollection/FormTemplate library. So I believe that when I try to open the form in the browser that template cant be found. Why I say that is when I open the form with the info path client, I get the message "The form was created with a new version of the form template. InfoPath cannot find the new version. Do you want to open with an older one" 
Question:
If a infopath form is part of a workflow and it be saved in a form library and then open, if so how?
Am I publishing the form incorrectly - I publish to network location. Then install my feature.
Do I need to associated the form template with the form library or should the feature installation take care of this?

Notes:

- FormTemplate Library doesnt appear in site settings, I

Excel services wont display in web part, fails with a Event ID 5239

  
After upgrade to SP2 and current Cum SP, no sites in my portal taking advantage of Excel services can function.

checked event log and found the following

Event Type: Error
Event Source: Office SharePoint Server
Event Category: Excel Services Web Front End 
Event ID: 5239
Date: 10/15/2010
Time: 1:50:52 PM
User: N/A
Computer: BLAHBLAHBLAH
Description:
There was an error in communicating with Excel Calculation Services http://BLAHBLAHBLAH:56737/SharedServices1/ExcelCalculationServer/ExcelService.asmx exception: The request failed with HTTP status 403: Forbidden.
[Session: (null)
User: SHAREPOINT\system].

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Any help is greatly appreciated, thanks.


data view web part unable to show data from list in subsite

  

Hello all,

In 2007, I never had any issues with doing this. In 2010, I created a web part that looks at the Pages list and pulls a few columns and as long as I am within the site, it works fine. But I need to call information from the Pages list in a subsite and display that information on the parent site default page.

In 2007, I made this work by changing ListID to ListName and DefaultValue="Pages" and then change the WebURL to DefaultValue="/SubsiteName/" then place it anywhere and it found it. Now if I change the ListID to ListName and default value to Pages I get an error that the web part cannot be imported. if I try using the actual ListID and change the WebURL to the subsite, I get an error that the web part is looking for a list that does not exist. This worked so easily in 2007.

Any one able to tell me what's going on? Or have a solution?


data view web part unable to show data from list in subsite

  

Hello all,

In 2007, I never had any issues with doing this. In 2010, I created a web part that looks at the Pages list and pulls a few columns and as long as I am within the site, it works fine. But I need to call information from the Pages list in a subsite and display that information on the parent site default page.

In 2007, I made this work by changing ListID to ListName and DefaultValue="Pages" and then change the WebURL to DefaultValue="/SubsiteName/" then place it anywhere and it found it. Now if I change the ListID to ListName and default value to Pages I get an error that the web part cannot be imported. if I try using the actual ListID and change the WebURL to the subsite, I get an error that the web part is looking for a list that does not exist. This worked so easily in 2007.

Any one able to tell me what's going on? Or have a solution?


asp DataGrid wont show time(7) type

  

 I need help in resolving this issue, my datagrid will display time column only if its datetime2(7) type but not for time(7). same issue with data type, it wont display only the date. i am not using column binding for formatting because i have multiple tables where a user chooses to view with a selection from a dropdownlist. so does datagrid not support sql 2008 new data types? or am i missing something here.


show part of the Cube data in SSRS report prompts

  

Hi,

I have generated one report in SSRS 2008 report designer, and one prompt was added in it. when I am running this report, selecting the data from prompts, it shows all the Cube data for this field.

But I want only a small part from cube data, how can I make this? Thanks!

Regards.


Connie Zhu

Show custom error message inside SharePoint Business Data List web part?

  
I am using SharePoint 2007 Business Data List web part to show external information retrieved from my simple web service. Is there ability to show custom error message on Business Data List web part?

WPF: If Heineken did MVVM Frameworks Part 4

  
MVVM is to have an instance of a particular Model (say currentPerson) inside my ViewModel (say PeopleViewModel) which is exposed to the View (say PeopleView). The View binds and edits the Model directly.

This definitely flies in the face of what most people consider to be the holy grail of MVVM pattern, but it's a fairly new pattern, so people are still finding their way with it every day, and this works for me very well. The reason I do what I do, is for the following reasons:

1.I have always had the luxury of being able to write my own UI specific Model classes. I would even do this if I was using some other Model classes first, such as LINQ to SQL or LINQ to Entity Framework. As these classes don't have everything a proper WPF Model class needs in my humble opinion. Though, they are pretty good, as they are Partial classes and use INotifyPropertyChanged/DataContract etc etc
2.I am a pragmatist and I do not like writing code for the sake of writing code. I have seen some MVVM apps where the author has had a Model with 50 properties on it, that are simply repeated in the ViewModel abstraction, where the ViewModel added nothing. On that day I decided I would never do that unless I have to.
3.I honestly see no harm in writing directly to the Model from the View, JUST SO LONG AS if the Model is InValid its data NEVER makes its way to the database. I honestly see no pro

Building Layered Web Applications with Microsoft ASP.NET 2.0 - Part 1

  
"Building Layered Web Applications" that shows you how to build N-Layer applications with Microsoft ASP.NET 2.0. These articles teach you how to design, build and use custom business objects in your web application. The target audience for this series are developers that are ready to make the switch from using SqlDataSource controls to ObjectDataSource controls with custom business objects. Experience with ASP.NET 2 and C# is necessary while some knowledge about object oriented design certainly helps. The design I am going to show you in these articles is a simplified version of a design you would use in a real world application. It doesn't feature all the necessary functionality your application needs, but instead focuses on the underlying concepts.

Hello World to C# Threading Part 1

  
In this post we will see how we can implement simple threading. Why do we need threading? When you want you application to do more then one thing at same time, then you need to implement threading. One usual and common scenario would be when your application needs to get data from some other resource like web services and you don't want you application GUI to be freeze during this time. In that sort of case you will run the code to access web services in separate thread so your application GUI won't freeze. The System.Threading namespace .NET provide interfaces to implement multi threading.
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