473,387 Members | 1,495 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.

WebParts - Export/Import cycle

I've got a test harness I've been building and playing with to manage
ASP.NET web parts. One thing I've noticed is that I do not seem to be able
to reimport the webparts I've exported back on to the same page.

I added a web part from the declarative catalog. I exported the web part.
I tried to import the web part and when I tried to actually add the control
to the page, I got a generic error that it couldn't be added.

Has anyone seen this behavior?

Rob

--
Robert L. Bogue, MS MVP, MCSE, MCSA:Security, Etc.
Blog: http://www.thorprojects.com/blog
May 26 '06 #1
3 2391
Hello Rob,

Thank you for posting.

As for the ASP.NET 2.0 WebPart exporting/importing issue you mentioned, I
think it is likely a webpart or page specific issue. Based on my local
testing , I can correctly export an WebPart control and import it again. Is
the error message indicate that the problem is with the webpart file?
Based on my experience, if the exported webpart file is accidently
corrupted, the runtime will throw exception when importing the
webpart(through the webpart file. Also, are you exporting a custom
developed webpart (inherited from base part class) or just use a
usercontrol (or other server control) wrapped generic webpart?

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 29 '06 #2
There's no indication of what the error is. It's one of those lovely
generic error messages that I've become used to.

The control is a Server/Web control derived from WebPart. The .WebPart file
appears to be correct as far as that goes. However, it just doesn't want to
load it dynamically.

Is there a way to troubleshoot the Import catalog?

Rob

--
Robert L. Bogue, MS MVP, MCSE, MCSA:Security, Etc.
Blog: http://www.thorprojects.com/blog
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:fN**************@TK2MSFTNGXA01.phx.gbl...
Hello Rob,

Thank you for posting.

As for the ASP.NET 2.0 WebPart exporting/importing issue you mentioned, I
think it is likely a webpart or page specific issue. Based on my local
testing , I can correctly export an WebPart control and import it again.
Is
the error message indicate that the problem is with the webpart file?
Based on my experience, if the exported webpart file is accidently
corrupted, the runtime will throw exception when importing the
webpart(through the webpart file. Also, are you exporting a custom
developed webpart (inherited from base part class) or just use a
usercontrol (or other server control) wrapped generic webpart?

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 31 '06 #3
Thanks for your response Rob,

Then, it'll be quite hard to address the point. So far I haven't got any
specific troubleshooting interface for importCatalog control. However, if
you have a live debugger like windbg, we may get the underlying exception
and the callstack at the problem thread.
BTW, I think this should be an environment or control specific issue since
this is a quite common scenrio.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 31 '06 #4

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

Similar topics

0
by: John F Dutcher | last post by:
Having 'cloned' an existing python script that imports 'string' and uses "string.rstrip()" without incident... I am at a loss to explain why the new 'cloned' script (brief sample below)...
5
by: Maria L. | last post by:
Hi, I need to export the content of a DataGrid (in Windows application in C#), into an Excel spreadsheet. Anyone knows how to do this? Any code snippets would help! thanks a lot, Maria
2
by: Siu | last post by:
Hi, I use the following code to export and import a file Excel from resp. into a Web page with the following code: //EXPORT Response.Clear(); Response.Buffer = true; Response.ContentType =...
3
by: Iavor Raytchev | last post by:
Hello, We a situation with a central database that contains the data that needs to be presented at N off-line terminals (N can be 5 000 can be 15 000). Each terminal presents unique data. The...
4
by: Sahil Malik [MVP C#] | last post by:
I have a few Q's about ASP.NET 2.0 webparts - 1. Will these be easily upgradeable to the next version of sharepoint? 2. Is there an easy way for me to reuse any third party custom control inside...
0
by: mpradeep_mani | last post by:
Hello group, I want to know if there is a way to export a webpart from a page and import the same webpart to another page... The thing is , by using the inbuilt feature of importing and exporting...
0
by: Aaron C. Roberts | last post by:
Hi there: I am working with ASP.NET 2.0 and I've implemented a WebPartPanel control to server as a wrapper for my WebPart enabled site. The wrapper has a custom omplementation of the HelpVerb...
3
by: Bart Van Hemelen | last post by:
I'm working on a project where the user of a site will receive custom content, depending on a set of parameters. The content will all be contained in UserControls (.ascx), that will be used as...
2
by: mike_dba | last post by:
I am attempting to move data between 2 DB2 Linux databases using a pipe. I can't seem to get it working. Any assistance is appreciated. I first issue: mkfifo -m777 mypipe db2 "connect to...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.