I created a .NET 3.5 Web application using Visual Studio 2008. (It is basica开发者_开发技巧lly a text field, a button and a label field. When the button is pressed, the label field will display the text field content)
When I start debugging, everything work fine. However, when I deploy it on IIS 6, the button did not work at all.
I have give the folder (which I created using IIS Virtual Directory) IUSR account access (Read, 'List Folder Contents' and 'Read & Execute' - When I click the 'Read & Execute' permission checkbox, the checkbox for 'List Folder Contents' also get checked.).
Did I miss anything?
i think while running you are using Visual studio self host, not IIS. Can you please go to project properties -> Web tab and configure with IIS and verify? If the problem with IIS please try the ASP.NET configuration is done for your IIS. You don't need to enable any permission for the directory.
http://www.asp.net/learn/whitepapers/aspnet-and-iis6
Hope these helps..
Thanks Rafeeque,
Actually I used another command to perform the deploy.
reference: http://msdn.microsoft.com/en-us/library/ms229863%28v=vs.80%29.aspx
精彩评论