Asked by:
Deployment issue

Question
-
User1842222572 posted
I am trying to deploy my web application but getting error. Basically, I right-clicked on my project in VS 2012 and clicked on "publish web site". Then I added this website in IIS but when I browse the site am getting the error "page cannot be diplayed". Any idea what am doing wrong here? Thank you.
Tuesday, April 23, 2013 10:31 PM
All replies
-
User-1635195291 posted
Hi there,
If you dont mind will you please let me know which publishing method did you use and please clearly tell all the process that you followed to publish the site.
If you used File System method and then gave path to IIS site, Please let me know.
Thanks,
Jatin
Tuesday, April 23, 2013 10:51 PM -
User-1716253493 posted
try open it in server browser to see detailed error message
or try to change web.config
<customErrors mode="off"/>
<system.webServer> <httpErrors errorMode="Detailed" /> <asp scriptErrorSentToBrowser="true"/> <defaultDocument> <files> <remove value="default.aspx" /> <add value="default.aspx" /> </files> </defaultDocument> <system.webServer>
Tuesday, April 23, 2013 10:57 PM -
User1842222572 posted
It opens perfectly fine when I I hit Control-F5 while in the project. I have detailed the steps in my earlier post.
All I did was right-click on the project name and clicked publish web site. In IIS, created a new webiste and trying to point it to the folder where the published web site is.
Tuesday, April 23, 2013 11:02 PM -
User-1635195291 posted
Hi there,
In the IIS Manager you might need to change the application pools .net framework settings:
Jus above the the your site in IIS mange there is Application Pool.
Click on Application Pool
In the Middle pane of IIS Manager double click Your Website and and change >net Framework Version to v4.0.30319 and Pipeline Mode to Integrated.
This will hopefully help your cause.
Thanks,
Jatin
Please "MARK AS ANSWER" if found helpful.
Tuesday, April 23, 2013 11:11 PM -
User1842222572 posted
I tried that, no luck. It tests successfully in IIS when I lcick on test settings. Any other thoughts?
Tuesday, April 23, 2013 11:22 PM -
User-1716253493 posted
The problem look like not from the page, but from network conncetion
Posible causion
1. wrong address
2. firewall, disable firewall or add port exception
Tuesday, April 23, 2013 11:40 PM -
User1842222572 posted
I have another web applicaiton deployed and it is working. How do you suggest troubleshooting wrong address? What address are you referrign to?
Tuesday, April 23, 2013 11:42 PM -
User1842222572 posted
I htink the issue may be related to how the "publish" was done. In the folder that I specifed when I published the site, I am not seeing aspx or cs files. Please advise.
Tuesday, April 23, 2013 11:50 PM -
User-1635195291 posted
Have you selected Release Mode during publishing the sile system methods.
Give it one one more try with Release Mode.
Thanks
Jatin
Tuesday, April 23, 2013 11:53 PM -
User1842222572 posted
Thanks, but am not seeing release mode in project properties?
Tuesday, April 23, 2013 11:58 PM -
User-1635195291 posted
While you are publishing the site During the 3rd step Settings there is you need to change to Release in dropdown menu.
Wednesday, April 24, 2013 12:00 AM -
User1842222572 posted
I am using VS 2012, there is only one step(right-click and publish web site), it thn asks you the location, that's it. Let me know if am missing anyhting here.
Wednesday, April 24, 2013 12:02 AM -
User-166373564 posted
Hi sam
I am trying to deploy my web application but getting error.when I browse the site am getting the error "page cannot be diplayed".
Many deployment methods are available for you, you could consider use other deployment strategy, you could also have a try deploy a web project using One-Click publish in Visual Studio,
To configure deployment for a web project in Visual Studio, you create one or more publish profiles using the Publish Web wizard. A publish profile specifies the server you are deploying to, the credentials needed to log on to the server, the databases to deploy, and other deployment options. When you are ready to publish, you choose the profile you want to use and click the Publish button in the wizard or in the Web One Click Publish toolbar.
Please follow the detailed procedures, it will give some tips for you,
hope it helps you,
With regards
Monday, April 29, 2013 11:32 PM