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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

how to deploy a web part with additional files

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



I have built a visual web part and can deploy it / run it on my local environment.

It uses additional resources e.g. AjaxControlToolkit.

How do I build an installer that will allow me to edit the web.config as I install the web part.

I have looked at the wsp installer - but i think i need something with a bit more power. I know its possible as other compaines which sell sharepoint webparts are doing it - i just need pointing in the right direction.




View Complete Post

More Related Resource Links

Deploy folder for a .rdl files

In a win form app, i use a report viewer for local reporting, the troble is: I can't find a "Aplication relative folder" where to strore those .rdl files, so i can find them in a run time. Thks for any ideas. I'm using vb2010 express an sql 2008 expressDANIEL CABAÑAS LEÓN - I'M NOT AFRAID TO DIE, I'M NOT AFRAID TO LIVE

Deploy web part to production server


I develop my visual web part on a development machine running windows 7, SharePoint foundation server 2010 and visual studio 2010,  

I have SharePoint 2010 production server, and I deploy the web part as the instructions using the following line


stsadm -o addsolution -filename <yourfilename>.wsp

wsp files taking alot of time to deploy

In order to integrate SSRS 2008 with MOSS 2007, we added a server as a WFE on the farm. this wfe has SSRS 2008 configured. but after that the wsp files, though not giving any error... are taking more than 30 minutes to deploy and retract... the configuration of the farm is simple too. 2 front end, 1 search and 1 database. i have tried restarting the timer service and turning the timer service off on the wfe2 (where SSRS 2008 is also present).... any ideas?
Adnan Shamim

Content Query Web Part additional filters



I've been working on a SharePoint intranet implementation and have been trying to use the CQWP to aggregate a number of lists throughout our site on the homepage. I've been using the additional filters to try and filter out certain lists that I dont want to appear, however after making the changes the web part displays:

This query has returned no items. To configure the query for this Web Part, open the tool pane.
I've tried filtering by both the name and also the List ID. I use no custom fields in any lists and an example of the query I've been using is below:
List ID > Contains > {40F0922F-A058-4950-B769-0711932FB071} I have also tried the Is not equal to modifier.
If anyone could give me any help on structuring an additional filter and making it work it would be appreciated.

How to Deploy Content Editor Web part



I have a content editor web part on my development machine. I want to deploy that in production as a feature.

Is it possible? how?




how to deploy web part to production server



I have created a web part feature using the wsp builder. I tested the web part in the development server. But I am not sure, how to deploy the web part into the production server, which is a remote machine.

How to deploy a web part into production server?

Thank you

Deploy web part set to farm on a stand alone server


I have a Visual Web Part and I specified it for a web farm.

When I deploy to the server by copying the wsp file and loading it on another server that is stand alone, it tells me it can't read web farm solutions.

Is there a way to install it without rebuilding the package? I have Linq to SQL calls inside the web part.


I'm very new to SharePoint.



Add Additional Filters to Content Query Web Part


I created a Content Queery Web Part to display Articles from Pages library. I added two more columns to the Pages libraty called "Start Date" and "End Date".

The issue I have is those two fields do not show up in the Additional Filters drop down list box.

Anyone knows what I am missing?

thanks in advance,


Add Additional Filters to Content Query Web Part


I created a Content Query Web Part to display Articles from Pages library. I added two more columns to the Pages libraty called "Start Date" and "End Date".

The issue I have is those two fields do not show up in the Additional Filters drop down list box.

Anyone knows what I am missing?

thanks in advance,


Sharepoint 2010 WSP Deployment problem. Can't deploy new files.


We have found a problem with our deployment to a production server that runs Sharepoint 2010 Publishing Site Collection.

We are deploying WSP packaged from Visual Studio to Sharepoint Management Shell. It has worked like a charm in the past. We added a custom masterpage, css files, images and later we successfully added custom page layouts.

I also have SP running locally on my computer and everything works fine with no problem adding new files via deploying Feature. I can add them neatly into a document library or even create new folders from the Elements file.

However the problem arise when I deploy my WSP to the production server. I want to add a few JS files and a XSL file to the Style Library but the files won't get added to the document library. The deployment process goes smooth though with no errors and when I check my feature in Sharepoint Hive, the new files are there on the physical drive! However they won't get added to the virtual Document Library.

I can update existing files like the masterpage and CSS files so the feature that is deployed is working.

My guess is that either it has to do with permission problems or some bug in my code. But I did exactly as we have done before when deploying.

This is how my Elements.xml file looks like:


Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

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.

Multithreading in .NET Applications, Part 3

Multithreading is a powerful design tool for creating high-performance applications, especially those that require user interaction. Microsoft .NET has broken down the barriers that once existed in creating multithreaded applications. The last two installments of the .NET Nuts & Bolts column were

What's new in ASP.NET 4.0 - Part II - Routing in Webforms

This post covers one such feature which is Routing in Webforms. Although Routing was available even in .NET 3.5 SP1, (check this excellent post by Phil Haack on implementing Routing in ASP.NET 3.5 with .NET 3.5 SP1), it was kind of less known. Also the plumbing work was too much for getting it implemented.
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