Saturday, December 02, 2006 3:00 PM Jan Tielens

Deploying the Return of the SmartPart

To deploy the Return of the SmartPart to your SharePoint 2007 environment, you have two possibilities:

  • Automatic deployment using the SharePoint Solutions Framework
  • Manual deployment by copying and editing a couple of files

Deploying using the SharePoint Solutions Framework is probably the best thing to do, taken into account scalability and manageability. You can find the complete installation guide in the redistributable which you can download from the GotDotNet workspace (in the Releases section).

You can also watch a screencast which shows you both installation methods:

Filed under: ,

Comments

# re: Deploying the Return of the SmartPart

Sunday, December 03, 2006 4:10 AM by SMHMayboudi

Dear Sir,

It is a very  nice idea and I hope it is very useful.

Yours faithfully, SeyedMohammadHossein Mayboudi

# re: Deploying the Return of the SmartPart

Friday, December 08, 2006 1:02 PM by vapor

I'd like to use a smart part to load an object. Can your smart part do this? The specific object is the OWC version 11. With ordinary web parts, i'd load the object like so response.write("<object clsid... however that object is disabled in sharepoint. I'm looking for a solution to this.

# re: Deploying the Return of the SmartPart

Monday, December 11, 2006 6:30 PM by Natha

Can you please tell me where can i find the resource for hosting an usercontrol on sharepoint using your control which has a code behind file.

# re: Deploying the Return of the SmartPart

Wednesday, December 20, 2006 2:43 PM by Deborah French

Why are you doing the return of smartpart with the son of smart part doesnt work?

# re: Deploying the Return of the SmartPart

Monday, January 15, 2007 11:58 PM by han

hi,

thanks for the wonder return sun of smart which work wonderfully with my wss 3.0. Just my 2 cents thought, i wonder if it possible not to upload my control as well my source code the UserControls?Or is there any documents regarding this issue?

Please advise

# re: Deploying the Return of the SmartPart

Thursday, January 18, 2007 7:04 AM by Dave Anderson, Stavanger, Norge

Thanks for the screen cast, very useful!

# re: Deploying the Return of the SmartPart

Saturday, April 07, 2007 11:40 AM by bryan

@Natha,

This tripped me up too, but you need to deploy a folder called "UserControls" to the base wwwroot folder of your sharepoint site (where the web.config lives).  once there the WP will read from that location and list any User Controls (ascx) files in the folder.

# re: Deploying the Return of the SmartPart

Wednesday, June 06, 2007 4:41 AM by Randy,

I just wanted to thank all the folks that worked on SmartPart as well as the AJAX SmartPart.  Jan this must have been a lot of work so thanks again for shring this great piece of work with us!

# re: Deploying the Return of the SmartPart

Wednesday, June 06, 2007 12:05 PM by Ed Johanson

Our server admin (with admin rights on the server) cannot drag and drop the ReturnOfSmartPart.dll into the GAC, or run the GACUTIL.  THe Assembly directory appears to be marked as ReadOnly.  We can "uncheck" the ReadOnly attribute, but it resets itself.  Anyone run across or solve this?

# re: Deploying the Return of the SmartPart

Tuesday, June 26, 2007 1:30 AM by Balaji

I am getting this Error once i deployed the Return of smartpart

Error: unable to load ~\/UserControls\HelloSmartPart.ascx

Details: The file /UserControls/HelloSmartPart.ascx does not exist.

I do have the Dll registered to GAC and Created a folder "UserControls".

Any Suggestions plz...

# re: Deploying the Return of the SmartPart

Monday, July 02, 2007 1:13 PM by Patrick Reagan

It looks like GotDotNet workspace is going out of business.  Does anyone know where I can download a copy of the Return of the SmartPart?

# re: Deploying the Return of the SmartPart

Tuesday, July 10, 2007 6:25 AM by Engy

I have it long ago. I can send it to u, if u still need it.

I have a question here: I need to use the smartpart to embed an InfoPath 2007 form. Any idea how to do that???????

# re: Deploying the Return of the SmartPart

Thursday, July 12, 2007 12:38 PM by ultragc

I am interested in testing this as well but GotDotNet no longer

has it.  Can someone email me a copy please?

ultragc@hotmail.com.

Thanks in advance.

# re: Deploying the Return of the SmartPart

Wednesday, July 25, 2007 6:45 AM by ugin

# re: Deploying the Return of the SmartPart

Wednesday, July 25, 2007 7:33 PM by Bryan

I am getting an error that someone else asked about earlier.

"I am getting this Error once i deployed the Return of smartpart

Error: unable to load ~\/UserControls\HelloSmartPart.ascx

Details: The file /UserControls/HelloSmartPart.ascx does not exist.

I do have the Dll registered to GAC and Created a folder "UserControls"."

Has anyone figured this out or know how I can fix this?

# re: Deploying the Return of the SmartPart

Thursday, August 09, 2007 3:57 PM by Harsh Bhasin

Jan

Very! Very! impressive work. The manual installation document is outdated though. The version number of ReturnOfSmartPart is listed as 1.0.0.0 when it should be 1.1.0.0. Also the install document leaves out registering Ajax version of the web part as "safe". I have listed the changes needed below:

1. Under section Manual Installation

Change

<SafeControl Assembly="ReturnOfSmartPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" Namespace="SmartPart" TypeName="SmartPart" Safe="True" />

to:

<SafeControl Assembly="ReturnOfSmartPart, Version=1.1.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" Namespace="SmartPart" TypeName="SmartPart" Safe="True" />

~~~~~~~~~~~~~~~~~~~~

2. Under Optional: Add an assembly reference in web.config:

Change:

  <add assembly="ReturnOfSmartPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" />

to:

     <add assembly="ReturnOfSmartPart, Version=1.1.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" />

~~~~~~~~~~~~~~~~~

3. Register AjaxSmartPart as safe in web.config

<SafeControl Assembly="ReturnOfSmartPart, Version=1.1.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" Namespace="SmartPart" TypeName="AJAXSmartPart" Safe="True" />

# re: Deploying the Return of the SmartPart

Tuesday, August 21, 2007 8:58 AM by Michel

> I am getting an error that someone else asked about earlier.

> "I am getting this Error once i deployed the Return of smartpart

> Error: unable to load ~\/UserControls\HelloSmartPart.ascx

> Details: The file /UserControls/HelloSmartPart.ascx does not exist.

> I do have the Dll registered to GAC and Created a folder "UserControls"."

> Has anyone figured this out or know how I can fix this?

I had the same problem and solved this through the SharePoint Central Administration by Retracting the solution and then Deploying it again.

(Operations --> Solution Management --> returnofsmartpartv1_2.wsp : Retract Solution and Deploy)

No "real" solution, but it worked for me.

# re: Deploying the Return of the SmartPart

Tuesday, September 11, 2007 11:59 AM by Victory

It looks like GotDotNet workspace is going out of business.  Does anyone know where I can download a copy of the Return of the SmartPart?

email address is     vic3_success@yahoo.com

                              vic3_logic@hotmail.com

Please, kindly help if any one has it

# re: Deploying the Return of the SmartPart

Tuesday, September 18, 2007 1:39 PM by Brent

I'm having the same problem: Error: unable to load ~\/UserControls\HelloSmartPart.ascx

I've tried retracting/removing the solution and starting over again but no luck. I would seem this "/UserControls" location isn't getting created. I'd simply make this location but I don't know if it is supposed to be a virtual directory, WSS list, or a folder in the file system. Any thoughts folks?

# re: Deploying the Return of the SmartPart

Wednesday, October 17, 2007 2:17 AM by Jeff

anyone got a solution for the  unable to load ~\/UserControls\BasicDemo.ascx issue yet

# re: Deploying the Return of the SmartPart

Wednesday, October 17, 2007 10:15 PM by Jeff

in regards to the unable to load ~\/UserControls\BasicDemo.ascx error remember to deploy the dll to the bin folder under the website structure - documentation doesn't say it but it will be the cause of 80% of this error

# re: Deploying the Return of the SmartPart

Monday, November 12, 2007 12:54 AM by Patrick

Jan,Can i use this smartpart with a dropdownlist control

I have a sample of yours were you had a Gridview control and you connected  3 Gridview controls together .

I tried using the same sample using 2 DropDowlist control.Any time i try connecting them i get the webpart error..

Can you provide more samples or documentation on how to use this very nice control.

Thanks

naijacoder@hotmail.com

# re: Deploying the Return of the SmartPart

Friday, November 23, 2007 12:59 PM by Scott Braconnier

You style of instruction was very easy to follow and at a nice pace. I'm in the process of testing it right now.

# re: Deploying the Return of the SmartPart

Friday, January 11, 2008 6:36 AM by unnope r.

Can User Control  have  Form for Submit?  When I choose by .ascx

It error like..  

The "SmartPart" Web Part appears to be causing a problem. A page can have only one server-side Form tag.

Any Suggestion  Plz.

# re: Deploying the Return of the SmartPart

Monday, January 21, 2008 9:26 AM by isis

anyone got a solution for the  unable to load ~\/UserControls\BasicDemo.ascx issue yet?

I have copied the dll to the bin directory and i have the ascx files in the User Control folder. It is still not working.

# SmartPart for SharePoint - ASP.NET AJAX Support - Jan Tielens&#8217; Bloggings | Rickey Whitworths Blog

Pingback from  SmartPart for SharePoint - ASP.NET AJAX Support - Jan Tielens&#8217; Bloggings | Rickey Whitworths Blog

# Business Blog - webdesignmarketing, SEO, website design, internet marketing

Pingback from  Business Blog - webdesignmarketing, SEO, website design, internet marketing

# Sharepoint, workflow, WSS, Infopath, MOSS 2007, web part, ASP.NET

Pingback from  Sharepoint, workflow, WSS, Infopath, MOSS 2007,  web part, ASP.NET