473,387 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

WebPartManager Import method

I am trying to import a webpart that has been developed as a standalone
project - single webpart class in an assembly.

I've read up on the web (Fredrik Normén's Blog etc) that it is possible to
import a web part by providing a .webpart file and having the assembly dll
copied to the /bin folder (or in the GAC).
This got me excited as it is just what I am after - delivering a portal
application and allowing others to develop and import their own webparts ....
I just cannot get the damn thing to work!! All I get is the error message I
specified in the .WebPart file out from the method call.

How can I debug what is going on here?

I've tried several things.

If I add the webpart class to the App_Code folder of the project I can use
the WebPartManager.AddWebPart method without a problem - but this is not what
I want, I need to be able to drop in assemblies and import the webparts
contained within.

I've tried stong naming the assembly, also putting it into the GAC.

Still does not work for me!?!!?!?

Please help!

--------------------------
Shaun Venus

emailid: sunevnuahs
domain: hotmail.com
--------------------------
Nov 19 '05 #1
0 1073

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: CBretana | last post by:
Is it possible to programmatically control the WebPartManager without being on a web page? I need to write a C# console app that will cycle through a set of objects and for each one, generate (for...
3
by: SlimFlem | last post by:
I am new to the WebPartManager stuff and am still learning how to set this up properly. I am creating instances of WebPart classes from loaded DLLs and add them to the Page's WebPartManager. If I...
9
by: SlimFlem | last post by:
Is this possible? My entire web site is being built dynamically using WebPart's and a lot of it will be anonymous. How do I load these parts dynamically using WebPartManager.AddWebPart() and not...
1
by: Prashant Majhwar | last post by:
I have created sample web Application. On the default page I drop webpartmanager control and then create a table and place webpartzones. Now when i am running it in development mode ...everything...
0
by: milmus tender | last post by:
Hi, I hope, that I post in the right newsgroup. Please tell me if not. I use the WebPartManager technology of ASP.NET 2.0 without sharepoint. I want to set per server side code a webpart as...
0
by: ryan.mclean | last post by:
Hi all, I am dynamically making the connection between two webparts when the consumer is added like so: Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
1
by: Jurjen de Groot | last post by:
Hi, I've been reading a book about webparts and am now trying some of the examples from the book, but I crash on the first, most simple (following) example : I create a new website in VS2005...
0
by: Jeff | last post by:
Hey asp.net 2.0 I wonder if a WebPartManager can mange webparts in different ContentPlaceHolders? I have a master page which contain 3 ContentPlaceHolders, I wonder if I can use a single...
0
by: =?Utf-8?B?TWljaGFlbA==?= | last post by:
Hello, I want to control my WebParts programmatically. I have it set up so I can load my WebParts from code. The user can move them around. But I want to clear what they have done the next time...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.