.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

Web Part Namespace & Deployment Question

Posted By:      Posted Date: August 26, 2010    Points: 0   Category :SharePoint


I have a web part deployment and development question. Probably newbie questions..

For web parts which will only be used in certain web applications, I can definitely see creating custom CAS policies etc.. and deploying the dll only to the Bin of the Web Application, but what is the best practice for deploying a Farm wide web part that everyone will use?

I assume it goes in the GAC, and additionally, are there any best practices as far as the namespaces for web parts when they are going into the GAC?

For example, if I go into the Assembly folder and look at all the assemblies in the GAC, is it "okay" to have various globally deployed web part assemblies in there? Like, "MyCustomWebPart" sitting in there with the other sharepoint assemblies? Seems messy to me, but if these are "one-off" web parts that won't have a bunch of classes within a single namespace, it seems like what needs to be done.

Hopefully that was clear enough!

View Complete Post

More Related Resource Links

Web Part Versioning and Deployment (properties only)


Suppose I have a 3<sup>rd</sup> party Web Part (source code provided, with Web Part deployed as a Feature) that’s installed and used in several Sites within a Site Collection.  I want to make changes not to the source code (which would require updating the assembly and deploying the changes as an updated Feature/Solution Package), but to property values of the Web Part that exist.  Say the WP exists on 10 pages, and I want to change the WP’s Title property from “Amazing Vendor Web Part” to “My New Title”.


First, would this be considered an “out-of-band” patch?  Not that it matters terribly how to label this…


Second, would the ideal approach be to simply add code within a Feature Receiver in that Web Parts VS project (the Feat

Namespace Question


I have googled this question, but it is pretty specific and hard to find an anwser. I currently follow the MyCompanyName.Namespace pattern for namespaces. The question is this, how does one determine visually that one namespace is a library and the other is an application. For example:

Library of Web Controls: MyCompanyName.Web.UI.WebControls

ASP.Net Application: MyCompanyName.ApplicationName.UI

How does everyone else do this?

Custom Web Part deployment with class library reference

Hi All, We have class library as a project in our solution as well as a web part project. Our web part simply references and executes a service utility class in the class library and outputs it into a label. The deployment is successful but when attempting to add the web part to the page, it comes out with a error page saying "File Not Found" with a correlation ID and date/time reference. Once we take out the code that executes the utility class, it deploys fine and we're able to add it to the page without any issues. It seems evident that any reference to our class library causes this "File Not Found" issue... but we're not sure how to implement this solution. Any ideas? Do we add the class library dll directly into the GAC?  If so, how? Is there another reference we have to implement in the AssemblyInfo.cs?  If so, what does that look like? Any help is appreciated. Thanks, Eric

Visual Web Part Deployment

I have Visual WebPart that developed using VS 2010. Now I want to deploy that web Part in different server. There VS 2010 is not installed. When I using the command "Package" in VS 2010 one .wsp file is created in bin folder. But using that .wsp I can't do the following task: 1. Add safe control entry. 2. Place .ascx file in "Control Template" folder. can anybody tell me what is the process of deployment in VS2010 and SharePoint from One server to another. In VS2008 one setup.bat file was created that I can use for first time to create safe control entry and other staff but there is no so such file is created in VS 2010. Can anybody halp me on that.  Thanks tat --- Follow me @ http://moss-inside.blogspot.com/

Third part plug-in deployment in web application?

I developed a Java Applet for asp.net c# web application, my question is : How should I deploy this Java Applet in my  msi file , I hope that one expert can give me detailed steps for how to put the java applet into msi file?Thanks.

Sharepoint chart web part question



I'm playing with Sharepoint Enterprise 2010 chart web parts, and am having problems producing a roll-up chart. In particular, I have a Sharepoint list of the form:

6/20/2010, Apple
6/25/2010, Banana
7/1/2010, Apple
7/2/2010, Grape
7/5/2010, Banana

I'd like to produce a bar chart where the X axis contains the category (Apple, Banana), and the Y axis contains a count of the number of occurrences in the list. Is that possible with the built-in chart web part, or do I need to go to a third-party product? After playing with it for quite some time (and browsing the web), it doesn't appear possible.



Page Viewer Web Part question


Dear collegs ,

I have one question and hope that you can help me.

Namely, I added one Page Viewer Web Part to one SharePoint web page. Before that on my IIS I created one local web site with this link : http://localhost/Test/Home.html.

Inside my Page Viewer Web Part first I chosee Web Page and than in field Link enter link from my IIS : http://localhost/Test/Home.html.

When I open that SharePoint page than inside SharePoint I got http://localhost/Test/Home.html what is good.

That IIS web site have more pages, for example page Customer1 with the link http://localhost/Test/Home/Customer1.html.

What I would like to ask you, is possible from outside to open Page Customer 1 (http://localhost/Test/Home/Customer1.html ) inside Page Viewer Web Part without that must first open http://localhost/Test/Home/Customer1.html.

Other words, when click on some link to open directly Customer1 web page inside above created Page Viewer Web Part.



Survey ListView Web Part - For One Question Surveys


Hey all,


I want to create a really simple ListView Web Part for one question surveys, all it does is show the question and the user can answer it. After being answered the web part should show results.

This is similar to the current listview web part rendering apart from the Listviewwebpart starts with a 'summary' screen which i hate, the user has to click 'respond to survey' before they can proceed and i'd really just like the question on the page

Has anyone got any idea how I can achieve this without framing the URL that the respond to survey links the user to?

Many thanks,


Displaying a one-question survey in a web part


Hey all,

I'm trying to display a one-question survey in a web part. I don't want to ever have to use designer when my site's deployed though, I want it to simply display the latest one-question survey, in a web part. So the user creates a survey, and the web part changes automatically - ideally it would show the first question but I could live with the 'standard' survey view with a 'respond to survey' link, even though it's a bit fugly

I've just had a big chat about this here: http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/14380447-c13f-4365-8423-554595c4b726

The web part resulting from that discussion seems really tailored to the one list and as a result doesn't meet my needs :-(

Any thoughts? Cookies up for grabs :-)

Beginner Question on reporting service and deployment


Today is the first day that I am trying to create a simple report using SQL Server Reporting services. I god some issues and couple of questions and would like to ask here

1. I created a report model (with two relational tables). Can I create a report based on this report model? The reason, I like to give this model to users so that they can do their customize reports by drag and drop fields (This is similar to creating Universe in the Business object)

2. I created a test report in 'report server project' Using Visual studio (Which comes with SQL Server 2005 reporting service installation). When I try to run that report, it is asking me to define 'TargetServerURL'. I gave the same machine that I am  url (http://srv-test/reportserver), but still I am getting error. Is this the way that I should define? Or should I configure a new server with reporting services installed for deployment?

I know these questions are kind of stupid questions, but as a beginner, I need some basic help to start







Dreaming a world without any war in anywhere

Deployment Issue - A Complete Newbie Question


I'm attempting to create my first Analysis Server database.  This is being done in SQL Server 2008.  Please don't assume anything, I'm really learning as I go along and am thinking I'm doing something "obvious" wrong...

So far I've created a Data Warehouse DB that contains my dimension and fact tables - this was created on an OLTP/Database Engine Server (Server name e275rd4).  Using VS 2008, I created an Analysis Services Project and was able to successfully build out my dimensions and cube DB.  The problem I'm having is in trying to deploy this to my Analysis Server DB (server e275bidev02).  When I first tried to deploy, my impersonation properties were incorrect, it was asking for a user name/password.  I changed this property to inherit, and now I'm getting an error on the very first dimension it's trying to create.  The error message is:

Error 4 OLE DB error: OLE DB or ODBC error: Invalid column name 'dimLocationID'.; 42S22.  0 0 
Error 5 Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Dim Location', Name of 'Dim Location' was being processed.  0 0 
Error 6 Errors in the OLAP storage engine: An error occurred while the 'Dim Location ID' attribute of the '

SSAS Deployment and Scheduled Processing Question

So, I originally asked a question about how to deploy a cube to production, and I'm finally at the point where it is deployed, and everything seems to work. However, my SSIS packages are now feeding data into my relational DB (the source of my cube) on a daily basis. How does the cube get refreshed with the new data? I assume I'm not going to deploy every night, and I'm not making any structural changes. So how do I schedule the cube to be refreshed with new data?

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