.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

SPWebConfigModification not updating single web application

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :SharePoint

Hi All,

We are trying to add a provider in the web.config of a particular web application and have overridden the FeatureActivated event for this. The issue is that the code updates all the web.configs in the farm.

In order to apply the changes to a single web application, we've used the following code(going by the Microsoft article : http://msdn.microsoft.com/en-us/library/bb861909(v=office.12).aspx)

SPSite oSPSite = SPCon

View Complete Post

More Related Resource Links

Application Architecture in Windows Forms 2.0-Single-MDI Applications

Consider an MDI application like Microsoft Excel; files opened from the file system (by double-clicking) are all opened as separate child windows within the parent Excel window.7 For the first instance of an MDI application to open a new child window to display the file that was passed to the second instance of the application, the second instance must be able to communicate with the initial instance.

Multiple domains in single asp.net mvc application




I want to use my asp.net mvc application with multiple domains (maybe of hundreds),

so I have created custom Route class that matches requests including domain.

Each domain could has different routes, so the number of routes in RouteTable can be huge

(eg 500 domains, each 20 routes = 10000 routes in RouteTable).

I am considering how it will be efficient?


I have an idea to replace RouteTable.Routes (of type RouteCollection)

with custom one (of type Dictionary<string, RouteCollection>).

But how I can override default route matching mechanism with my custom mechanism which will be two step:

1) retrieve RouteCollection from dictionary based on domain name

2) retrieve specyfic Route object (standard route matching mechanism)

How can I do this?


Maybe someone has better idea for solving this problem?


Thanks in advance


Import Error: Could not process the file Documents/Application Deployment.mht as a Single File Web P

Hi there everyone, Version: Windows Sharepoint Services 3.0 with Cumulative Update June 29, 2010 applied. I am having issues importing an exported site into a different domain. I've overcome most of the issues and actually got most of the site to import, however, the import process get's stuck on import a Single File Web Page document from a document library. I believe the original cause of this error is http://support.microsoft.com/kb/980079 The issue I face now is, I already have a large number of .mht files in my document library which I do need to import into the test environment (or that I might need to restore in a DR scenario). Does anyone have any information on either: forcing the import commmand to "on error resume next" (ie. not stop processing when it encounters an error) fixing the already corrupt .mht files in the database easily The error text from the import command is: Error: Could not process the file Documents/Application Deployment.mht as a Single File Web Page document. at Microsoft.SharePoint.Library.SPRequest.CreateOrUpdateFileAndItem(String bstrUrl, String bstrWebRelativeUrl, Guid& docId, Object varDoc, Int32 docLength, Int32 exists, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Int32 iVersion, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String checkInComment, Int3

Use of having multiple Services for single silverlight application

Hi My project have 4 modules, I have decided to use single service with multiple interface (1 interface for 1 module, i.e totally 4 interfaces) and multiple partial class ( 4 partial class). Partial classes use this interface. But I have another thought of using multiple service ( 4 services, i.e for each module one service class (.svc)). Please let me know, which approach is right? 

Updating Windows XP to execute a WPF application

Hi, I developed a WPF 3.5 application on my Vista workstation. But it will not load on my friends XP workstation. He did not keep it up-to-date. So, what MS update patches do he needs? Thanks, King

Updating the Tailspin Spyworks Tutorial Application.

I'm planning an overdue update to the Tailspin Spyworks Tutorial and applicaiton. [ Click HERE for the Tailspin Spyworks Home Page ] I intend there to be two phases. 1.) Bug fixes And then in a subsequent release.. 2.) A few feature enhancements. I'll be reviewing all the comments and re-editing the .pdf. If you have any additional requests / suggestions please send them to me. [ Click HERE for my contact form . ] THANKS ! Read More......(read more)

Single Sign on - Manage settings for enterprise application definitions - Individual / Group



I am using Microsoft Single Sign On service in context to Sharepoint server 2007.

I want the external applications to use the single sign on service for authentication within a secure Enterprise portal environment.

Here the external application should be authenticated via single sign-on. But while configuring SSO in Share point central admin, it offers two methods of "Manage settings for enterprise application definitions" which is Individual and Group .

According to my requirements,

1. I need some set of users (may be a group of users) to make use of credential1 to authenticate the external application. so Group should be mapped to one common external credential1 .

2. I need rest of the users who does not belong to the above said user group should use individual external credentials mapped to Individual user .

I need both of these scenarios to be handles using a single Application definition created for my external application.

So suggest me an ideal way to achieve this mixed Individual and Group credential mapping in SSO



Thanks, Kesavamoorthi

Unable to set up a new Secure Store Service Application in a single-server installation


Problem: after initial SharePoint installation, I tried to add the Secure Store Service Application under "Manager Services Applications".  The process screen returns something like "The time job created.  But failed to start in one or more servers in the farm."  Further investigation found that in the SQL Server, the secure service account was not added under the Login user accounts.  The Secure_Store_Service_DB has been created, but not under the name of secure store service account.  In another word, the database was created but the action seems to be incomplete.

Background: this is a single server farm installation on Windows Server 2008 R2, SQL Server 2008 R2, with AD CS and AD DS, DNS roles enabled on the same box.  The configuration task was running with the farm admin account which is also a domain admin, and has dbcreator, securityadmin, and sysadmin roles in the SQL server.


Updating windows application using xml file


Ones I had an example for updating win application using xml. But I cannot find it. Can anyone help me out?


How I want to be my application updated:

- the application is installed on a client`s pc.

- the updates are avalilable on my server

- when the client starts the application (every time), the code goes on my server to check it out, if there is newer version then the application`s. 

- if there is any newer version, the code gets the files (xml) and do the update.

single sign on IIS 7 multiple application pool


We migrated our web server to window server 2008, IIS 7.

We have single sign on application - that we login through one application called "users" and then no need to login to other applications, they all use the same machine key and cookie.

it works fine when all then applications under the same application pool.

but we have one application that is asp.net 2005.  (the rest are asp.net 2003)

 the user application is in asp.net 2003 and that  other application is in asp.net 2005.

so each application is in a different application pool. -

one pool to asp.net 1.1 and other pool to asp.net 2.

when I run the asp.net 2005 application

I get the login page and after I  login  I get the following errer:

HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested Url: /users/Unauthorised.aspx


Important: If I switch the "user" application (the login) to work under the same pool as my asp.net 2005 application, then it works fine with the asp.net 2005 application,but I get the above error for the asp.net 2003 applications

All this happened after we swi

single master page shared in two web application



Is it possible to have a single master page used in two web app?

Or would it be possible to get the virtual path pointing to different app though I don't think so?


How to share a single workflow instance across diff pages of asp.net application..?



I am using WWF 3.0 with ASP.Net application with two pages of form submission and approval.

The submission form instantiates, starts the workflow and completes half part of the workflow. In the approval page the suspended workflow has to be resumed to get completed(throught HandleExternalEvent Activity). In this case how i can use the same workflow instance between two different aspx pages..?


Updating Data-Tier Application project after schema change has been made in SSMS

I have successfully created a Data-Tier Application project within visual studio. How do I update these scripts to reflect the changes made by a DBA in SSMS?  Also, on another project we use Entity Framework which drops and recreates the database from within the application. I would also like to import these changes into the Data-Tier Application project.
I can figure out how to import the database into the project the very first time. But after a change has been made using another tool, how do I synchronize the project in visual studio?
When I create a schema comparison that points from database -> project, it correctly analyzes the schema changes. Am I missing how to update the project with these changes?
Thanks, I really would like a solution to this so I can use Data-Tier Applications instead of a third party tool.

Source Revision Tool + Methodology for Single Page Application



My team is developing an ajax based "one page application" using several 3rd party controls. C# at the server side.

What is the recommanded tool (visual source safe? tortoise svn? tortoise hg? etc).

What is the methodology for team work with the tool (team leader responsible for check in's/ commit's and merges? developers are responsible for their user controls check in's? etc).

I'll greatly appreciate answer by someone with experience in such development.


Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

Integrating a Legacy Web Application in SharePoint

This month we will continue with the theme of deploying Microsoft's SharePoint as a company intranet by describing a method for integrating a legacy Web application inside a SharePoint site.

In many companies the intranet site is not just a home page with announcements. It houses Web applications used by many different departments. In last month's article, I built a page to search the employee table in Northwind (the sample database included in Microsoft's SQL Server). This month, I will move the Web pages used to add/remove records from the table into the SharePoint intranet.

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.
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