Error While Creating Web Application in SharePoint 2013

Error : While creating a new web application in SharePoint 2013 using central administration, I was getting the below error every time. "Internet Explorer cannot display the webpage".















Solution :
1- Go to IIS Manager.
2- Look for the application pool "DefaultAppPool"
3- Change the following 3 Process Model time settings
3a.Ping Maximum Response Time --> set to 400
3b.Shutdown Time Limit --> set to 400
3c.Startup Time Limit --> set to 400
4. reset the IIS. Try to create the web application once again.



Once the web application is created, you can revert the settings to 90 and finally do the IISRest Once again. I got the above information from the below post.
http://blogs.ibs.com/Duane.Odum/Lists/Posts/Post.aspx?ID=33

Find List details if you know the List IDs

if you only know the list id and want to know the other details of the list, below is the code to get that
protected void Page_Load(object sender, EventArgs e)
{
string[] _listArray = {"List ID 1", "List ID 2", "List ID 3"};
using (SPSite oSite = new SPSite("MySiteURL"))
{
SPWeb oWeb = oSite.OpenWeb();
SPListCollection allLists = oWeb.Lists;
foreach (SPList list in allLists)
{
foreach (string singleArraylist in _listArray)
{
if (list.ID.ToString().ToUpper() == singleArraylist.ToString().ToUpper())
{
Response.Write("List Name :\t" + list.Title + " List ID :" + list.ID + "");
}
}
}
}
}

Know the site template used for the SharePoint site

Using STSADM.EXE: It needs high level permissions. Means the user should be an administrator on the server. Below is the command we need to use for knowing the site template. stsadm.exe -o enumallwebs -database [content database name] for more details see the below link http://praveenbattula.blogspot.nl/2010/08/know-site-template-used-for-sharepoint.html

SharePoint 2003 to MOSS 2007 Upgrade: Database migration

I found a really nice article about database migration from SharePoint 2003 to MOSS 2007.

the blog post describe, how to take a backup of SP 2003 content database and migrate the same in MOSS 2007 with step by step instruction

http://farhanfaiz.wordpress.com/2008/05/23/sharepoint-upgrade-database-migration/

Decompile .net assembly ildasm

if you want to de compile a .net assembly (dll), you can use a visual studio option to de-complie it.

if you have visual studio installed in the machine. 

1- Go to Visual Studio Tools --> Visual Studio command prompt.
2- write ILDASM

it will open an interface where you can open your dotnet assembly and de-compile it. the best option to decompile any .net dll is .Net Reflector by red-gate. Please visit the below link to download the .Net reflector. It allows you to export the entire source code with in the assembly.

http://www.red-gate.com/products/dotnet-development/reflector/

Error : The attach operation cannot continue because another object in this farm already contains the same ID

In SharePoint 2013. I tried to remove the content DB from the web application by using the remove database option.
after this, I tried to add the content database to the same web application again, but I was continuously getting the error : "The attach operation cannot continue because another object in this farm already contains the same ID"

I found some powershell, through which you can get rid of this problem. it is for sure that the content DB is attached to the web application but some how it is not visible and that's why I was not able the content DB to the web application.

To check if the Database is already connected to the web application, use the below PS command.

Get-SPDatabase | where{$_.Name -eq “Name of your WEB Application“}

This PS will give you the result, if the content DB is already attached.the details provided by this command 
ID
Name
Web Application
Server
Current Site count.

Now you can take the ID of this content DB and use the below command to remove this DB from Web application.
Note: You can also use name but sometime name doesn't work properly.


Dismount-SPContentDatabase 12345678-90ab-cdef-1234-567890abcdef
http://technet.microsoft.com/en-us/library/ff607764.aspx
 
This way it will dismout the content DB and now you can add the 
content DB to the web application from central admin or use the below
command to mount it
Mount-SPContentDatabase “MyDatabase” -DatabaseServer "MyServer" -WebApplication http://sitename
http://technet.microsoft.com/en-us/library/ff607581.aspx


Get Started with Powershell for SharePoint

Below is the nice link to get start with SharePoint powershell..

simple-talk Link 

SharePoint 2010: Content Type Hubs

Sharepoint 2010 and 2013 has a new feature called "Content type hubs". where we can share the same content type between multiple web application. the use of this feature is to reuse the already created content type from one web application to another web application. 

below is the nice atricle about this.