Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 01, 2013 04:09 PM by calibur
Jan 01, 2013 02:24 PM|LINK
I have created a batch file to start the web server (IIS Express). The site is configured to run on port 48000.
When the site has started, I get the IIS icon in the system tray and it displays the site in the list of sites available. However, I would like the batch file to open the site in the browser as well.
I tried :: START iexplore http://localhost:48000, but this line isnt opening the site.
Jan 01, 2013 02:29 PM|LINK
can you show the complete batch file please?
Jan 01, 2013 02:32 PM|LINK
Jan 01, 2013 02:59 PM|LINK
REM : Install WEBPI
REM : Install PreReqs
cd %programfiles%\microsoft\web platform installer
START "" /WAIT /MIN WebPICMD.exe /Install /Products:SQLCE_4_0,IISExpress_7_5 /AcceptEULA
REM : Copy Config file into web server config
REM cd "%userprofile%\My Documents\IISExpress\config"
REM : The install files will be on the memory stick - Drive letters Important!!!
REM xcopy /y "F:\DITStudentManagerSupportFiles\applicationhost.config" "%userprofile%\My Documents\IISExpress\config"
REM : Start Web Server
START "" /MIN "%programfiles%\IIS Express\iisexpress.exe" /site:DITStudentManager
REM : Start Site
START iexplore http://localhost:48000
Jan 01, 2013 03:08 PM|LINK
Jan 01, 2013 03:32 PM|LINK
I am on a 64bit machine. I tried on a 32bit Win 7 machine and the webserver isnt even starting up. How do I keep the batch file window open. I Have Echo On but the cmd window is closing at end of batch
Jan 01, 2013 03:36 PM|LINK
Jan 01, 2013 03:40 PM|LINK
OK- no errors reported by bat file BUT - i ran the commands from the cmd line and I am getting this error:
ApplicationDefaults already assigned.
This is an issue with the ApplicationHost.config file. Not sure what default is causing the issue
Jan 01, 2013 04:09 PM|LINK
OK - fixed the defaultapplication issue - and its working now on both machines.