Publishing a Web Application
-
I have created a simple web application and published it to the local host, running fine there. Now when i upload the same files present in the Inetpub/wwwroot folder, to my FTP Site and open the Default.aspx page, it shows the html code instead of the application. Any Idea whats going wrong?
-
I have created a simple web application and published it to the local host, running fine there. Now when i upload the same files present in the Inetpub/wwwroot folder, to my FTP Site and open the Default.aspx page, it shows the html code instead of the application. Any Idea whats going wrong?
Razanust wrote:
Any Idea whats going wrong?
Yes!
Razanust wrote:
when i upload the same files present in the Inetpub/wwwroot folder, to my FTP Site and open the Default.aspx page, it shows the html code instead of the application
You need to host the files (uploaded on your FTP) on some webserver using IIS in order to make it work as it was when you published it in your system. Publishing once doesn't mean you can carry along published files anywhere and it would work. Read/Know how does a web application work - when you write 'www.codeproject.com' in your browser url, how does you see the homepage. How & What happens in between thing.
-
I have created a simple web application and published it to the local host, running fine there. Now when i upload the same files present in the Inetpub/wwwroot folder, to my FTP Site and open the Default.aspx page, it shows the html code instead of the application. Any Idea whats going wrong?
Razanust wrote:
Now when i upload the same files present in the Inetpub/wwwroot folder, to my FTP Site and open the Default.aspx page, it shows the html code instead of the application.
You need to host your sites on IIS. I have wrote couple of articles on IIS, here is the archive links from my blog post, you may found them interesting. http://www.codeproject.com/Articles/106504/IIS-Articles-Archives.aspx[^]
Cheers ! Abhijit Jana | MVP Visit My Blog Abhijit's World of .NET | Follow Me @ twitter | Disclaimer