Thursday, 11 May 2017

Remove Brackets from Site Name after Opening Site in Visual Studio

Introduction:

Here, I will explain steps to remove brackets from Site name after opening site in Visual Studio IDE.

Description:

If you check site directory in Windows explorer then it will not contain any brackets in name. But, sometimes it happens that when you open site in Visual Studio then site name contains brackets with some number. For example, testing(1), studenterp(2), etc...

To remove unnecessary Brackets from Site name you can use following steps :

1. Go to, C:\Users\Administrator\Documents\IISExpress\config 

    - Here, C:\ is drive in which your operating system is installed.

    Note : If you have User created in your computer, then you need to select folder with Username instead of Administrator.

2. Open applicationhost.config file and go to, <sites> node and remove all <site> nodes containing same name as your site name in name attribute. Please ignore brackets in name attribute while checking name.

    For example,
         Site name : testing
         Remove all <site> node like, <site name="testing"></site>, <site name="testing(1)"></site>, etc...

3. Close your site and re open site in Visual Studio. Now, you will have proper site name.






No comments:

Post a Comment

Featured post

Send Attachment in Email using Gmail in ASP.NET C#

Introduction : In this topic, I will explain code to send attachment in email using Gmail in ASP.NET C#. Description : Usually, it is ...