0
votes
1answer
45 views

Creating SPSiteCollection, top level site programmatically

I have been given a task to create an event that dynamically creates new site collections on our sharepoint webApp. Thing is using Central Admin I can create "http://testsite.com/sites/newSite_1" and ...
0
votes
0answers
59 views

HTTPModule Init method calling multiple times in sharepoint

I want to execute a piece of code on application start. As application_start not available in share point, so i have written my own custom HTTPModule and in Init method i have written the code. But ...
1
vote
2answers
147 views

How to get all SharePoint Web Applications in the Central Administration Page from code behind

How can I have the list of all existing SharePoint Web Applications and their site collections from code behind .
0
votes
0answers
246 views

Error while attaching content db to a different server

I got back up of content db from a demo server and trying to attach it to a newly created web application in my personal copy of same demo server but not up to date. however I am getting this error, ...
0
votes
2answers
153 views

How to programmatically determine if anonymous access is enabled for a SharePoint 2010 Web Application using C#?

In Central Administration\Manage Web Applications, there is the ability to enable anonymous access on a web application through the authentication providers. Is there a way to programmatically ...
0
votes
0answers
23 views

How to programatically delete an item when delete item is not enabled at a Web Application Level

At a Web Application level you can turn off the ability for a user to delete an item. If you do turn it off at that level is it possible to delete a file through a workflow or through custom code?
0
votes
3answers
108 views

Get default WebApplication in a farm

I have a question about getting the default WebApplication in the farm - how do I do it? I need to, because my timer job must be completed only for one WebApplication. PS: I'm using SharePoint 2010