Last post Oct 30, 2012 10:10 PM by Angie xu - MSFT
Oct 19, 2012 08:46 AM|d-cpt|LINK
I have a web app which is developed by using VS 2008 and runs as website on IIS 7.5 and a 64bit PC. It works fine. Recently, I moved the app to a new PC with the same VS 2008, win7 64bit, IIS 7.5. When I run it for debug - even w/ Start W/o Debugging, I
encountered these issues:
1. the app does not render the images or the css that use for some controls. If I open the web app as project - not as web site - it works.
2. after closing the browser, a second browser pops up to show the web app again.
Oct 19, 2012 09:28 PM|necro_mancer|LINK
if the application does not render any images, this is because of the fact that the app cannot find the path to the images on your new PC. Please avoid using absolute path to the image as this path may not exist on the new PC
Oct 20, 2012 07:12 AM|d-cpt|LINK
Thank you, Necro_Mancer. I don't use absolute path. The app web site on IIS runs under ASP.NET impersonation and connect under a system admin account. I will try to rebuild PC and reinstall IIS & VS2008.
Oct 25, 2012 11:34 PM|Angie xu - MSFT|LINK
You should follow the proper way to deploy application in IIS 7.5:
1. Just copy all project files to the web server and configure it to use ASP.NET version 2.0. In this scenario it will compile your application on the fly and this will cost you some performance, the good part is that you could very easily update your site,
just copy the new files.
2. From VS click with right mouse button on the project and choose Publish Web Site, after that you have a few options. In this scenario the performance is much better, because you precompiled your website before publishing, but you should precompiled and
deploy again the whole site if you have some changes.
At the same time there is a big difference when you want to deploy application on local machine and when you want to deploy it on a remote web server.
In case of local machine, you can easily store it on a local drive but if you want to deploy it. on a remote server, you should have a web site, you would need a FTP/FrontPage account, IP address of web server/FTP server etc.
You can connect remote server by FTPing web site using FTP account and publish the web site content.
You can use the same login details in VS to upload content on server
Oct 26, 2012 08:55 AM|d-cpt|LINK
Thank you for your reply. I will try your tips on deploying. However, I 've got the web app runs again by doing these steps:
- uninstall VS 2008
- delete everything on all Temp ASP.NET FIles folders
- remove IIS using appwiz.cpl
- delete inetpub folder
- activate ASP.NET 3.5 and IIS
- reinstall VS 2008 & VS 2008 SP1
- run WIndows Update for any hotfixes available out there
- open VS 2008 create new ASP.NET Web Site
- go to IIS, setting the new website for impersonation, authentication, etc.
- copy all items from the old web app to the new one
Thank you all again.
Oct 30, 2012 10:10 PM|Angie xu - MSFT|LINK
Congratulations! I’m glad to hear that you have solved this issue by yourself, and it is very appreciated to share your solution to us.
It will be helpful for others, and welcome to post your question on this forum in your future programming.