Home
|
Tutorial
|
Articles
|
Forum
|
Interview Question
|
Code Snippets
|
News
|
Fun Zone
|
Poll
|
Web Links
|
Certification
|
Search
Welcome :
Guest
Sign In
Register
Win Surprise Gifts!!!
Congratulations!!!
Top 5 Contributors of the Month
satyapriyanayak
Narayanan
Thamilselvan J
Anna Harris
Eone James
Home
>>
Forum
>>
ASP.Net
>>
Post New Question
Subscribe to Forum
How to register .net Framework to IIS
Posted By:
Mahesh
Posted Date:
June 21, 2012
Points:
5
Category :
ASP.Net
How to register .net Framework to IIS
Responses
Author:
Mahesh
Company URL:
http://www.dotnetspark.com
Posted Date: June 21, 2012 Points: 20
Dim sCommand As String
Dim sAppPoolCommand As String
Dim sWinDir As String
sWinDir = System.Environment.ExpandEnvironmentVariables("%windir%")
sAppPoolCommand = sWinDir & "\system32\inetsrv\AppCmd add apppool /name:WebSite /managedRuntimeVersion:v2.0 /managedPipelineMode:Integrated /enable32BitAppOnWin64:True"
sCommand = sWinDir & "\system32\inetsrv\AppCmd ADD SITE /name:WebSite /id:1001 /bindings:http/*:81: /physicalPath:""" & msWebSitePhysicalDir & """" & _
" /ApplicationDefaults.applicationPool:WebSite"
Shell(sWinDir & "\system32\inetsrv\APPCMD stop site ""Default Web Site""", AppWinStyle.Hide, True)
Shell(sAppPoolCommand, AppWinStyle.Hide, True)
Shell(sCommand, AppWinStyle.Hide, True)
Shell(sWinDir & "\system32\inetsrv\AppCmd set config /section:directoryBrowse /enabled:true", AppWinStyle.Hide, True)
Shell(sWinDir & "\system32\inetsrv\AppCmd start site ""WebSite""", AppWinStyle.Hide, True)
%windir%\system32\inetsrv\AppCmd set apppool /apppool.name:WebSite /managedRuntimeVersion:v4.0
Post Reply
You must
Sign In
To post reply
Related Questions Related Questions
What is a framework?
Doubt on features of .NET Framework
.net framework 3.5 in windows server 2000
sorting framework
sorting framework
Latest Forum Questions From The Same Category
Need print button in vb.net with vs2008
Publishing web application in VS2008 giving errors where as application running fine
Should not required login prompt while using website with windows authentication
showing username based on the using machine name in c#
How to: Concatenate Multiple Strings
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Here
Quick Links For Forum Categories:
ASP.Net
Windows Application
.NET Framework
C#
VB.Net
ADO.Net
Sql Server
SharePoint
OOPs
Silverlight
IIS
JQuery
JavaScript/VBScript
Biztalk
WPF
Patten/Practices
WCF
Others
www.DotNetSpark.com
UnAnswered
All
Hall of Fame
Twitter
Terms of Service
Privacy Policy
Contact Us
Archives
Tell A Friend