Advertisement

05.10.2005 at 04:11PM PDT, ID: 21419723
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Adding a simple web part.

Tags: web, part, sharepoint
Hello experts,

I've been tasked with setting up some web parts so that our marketing dept can do whatever with the apps we write, but I've hit a snag.

As with any new task, I start with the easy one.

So I followed the instructions that Suraj Poozhiyil ( http://www.sharepointcustomization.com/resources/demos.htm ) from Microsoft shows to just build a simple Hello World web part.

Got the template in VS.Net, loaded in C# and VB (but I'm using C#)

Create the web part library, rename it to MyHelloWorld

Change output.Write(SPEncode.HtmlEncode(Text)); to output.Write('Howdy World");

Change the output directory to the bin directory on my sharepoint site (I have sharepoint and vs.net on the same box...and I have some confusion on this, as I'm not a share point guy...not sure I have the right directory...in IIS it shows my _vti_bin to be C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\isapi  which also has bin directory one step down, I have tried both of those and the inetpub\wwwroot\bin directory to no avail)

Build the app.

Go into sharepoint, edit page, import and browse to my MyHelloWorld.dwp, hit upload and then it displays on the tool bar.

However, when I try and drag it on the page I get "A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered on this site as safe."

According to the demo I watched...I did everything as told...so I dug a little further.

Using SA.exe I strongly named my assembly, dragged it to c:\windows\assembly got the key from the properties

edited my web.config file (the one in the home directory for my sharepoint site) with <SafeControl Assembly="MyHelloWorld, Version=1.0.0.1, Culture=neutral, PublicKeyToken=6b6979e152d8c840" Namespace="HelloWorldWebPart" TypeName="*" Safe="True" />

copied keypair.snk to the root of C: (and all 3 bin directories) and changed my assembly.cs to show c:\\keypair.snk for the location.

ever after all of this...still getting "A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered on this site as safe."

What am I missing?

Thanx in advance,

Brian
Start your free trial to view this solution
Question Stats
Zone: Networking
Question Asked By: aero-owner
Solution Provided By: _TAD_
Participating Experts: 3
Solution Grade: A
Views: 514
Translate:
Loading Advertisement...
05.11.2005 at 03:28PM PDT, ID: 13982568

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2005 at 03:28PM PDT, ID: 13982575

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2005 at 08:48PM PDT, ID: 14001131

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.26.2005 at 11:50AM PDT, ID: 14088968

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.26.2005 at 04:35PM PDT, ID: 14090961

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29