If you are talking about the wwwroot folder then no.
<< Is the root a different app?>>
Not sure what you meant. The wwwroot folder has just its default files because this time I deleted the former SI folder ( that was inside wwwroot ) and decided to create
the SI folder in a different drive ( E ) and set it as virtual.
<<Are you using the default asp.net process account?>>
Not sure what you mean by that Jeff. The page the initiates the web site is Default.aspx if it is that what you meant.
I was thinking your error might not be related to the app you are working on if another app existed in the root of the site. I also thought if you had changed the ASP.NET process account you might need to change permissions in the web structure as well.
Neither seems the case for you by what you describe. But just in case, take a look at:
I still think this is a permission related issue, and the message as to which file may be misleading. Also, try a Hello World ASPX app to test this. If that works we need to look at what your app does, whether it uses SQL, if it access any files/folders
using another account besides the ASP.NET process account, etc.
The ASP.NET process account is the account that all your ASP.NET processes run under. It varies by operating system and cdan vary based on how you set up application pools, if any. If you're asking what it is I assume you haven't changed it, so the account
is either ASPNET on Windows XP or NETWORK SERVICE on Server 2003.
The link I posted has the exact permissions needed, and both how and where to set them. Quoting:
To add read, execute, and list access for the ASPNET account on the root Web site or on any virtual directory, follow these steps: 1. In Windows Explorer, browse to the folder that contains the root Web site (which is C:\Inetpub\Wwwroot
by default) or the virtual directory.
2. Right-click the folder, and then click Properties.
3. On the Security tab, click Add.
4. Type ComputerName\ASPNET (for example, on a computer named Webdev, type Webdev\ASPNET), and then click OK.
5. Allow the following permissions for the ASPNET account:
• Read & Execute
• List Folder Contents
• Read
6. Click OK to close the Properties dialog box and to save the changes.
Note that you need to do this on the folders that comprise the web site root and the folders where your virtual directory points to.
If a Hello World app does this, it's almost definitely file/folder permissions which need to be set.
<<To add read, execute, and list access for the ASPNET account on the root Web site or on any virtual directory, follow these steps: 1. In Windows Explorer, browse to the folder that contains the root Web site (which is C:\Inetpub\Wwwroot
by default) or the virtual directory.
2. Right-click the folder, and then click Properties.
3. On the Security tab, click Add.
4. Type ComputerName\ASPNET (for example, on a computer named Webdev, type Webdev\ASPNET), and then click OK.
5. Allow the following permissions for the ASPNET account:
• Read & Execute
• List Folder Contents
• Read
6. Click OK to close the Properties dialog box and to save the changes. >>
A - The problem is that there is no "Security tab" in Properties.
Instead it has a "Web Sharing" tab as you can see in this picture:
However when I tried to see the Default.aspx of "hello", I got this error message:
Server Error in '/si' Application.
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.3 Client was not authenticated
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.3 Client was not authenticated
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Oops, I pasted the wrong error message. Actually, the correct one is a repetition of the previous one:
Server Error in '/hello' Application.
Configuration Error
Description:
An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to 'c:\inetpub\wwwroot\web.config' because access is denied.
You turn off simple file sharing to allow you to set permissions. Now go back and follow the post on setting permissions. The security tab will be there this time.
There is no "recipe" for configuring a site because there are way too many variables. Some of what you are experiencing is basic Windows administration, not really related to configuring a web site but something you also need to know.
And there is a solution to making this work extremely easily. Use a hosting service.
<< You turn off simple file sharing to allow you to set permissions. Now go back and follow the post on setting permissions. The security tab will be there
this time.>>
I did this procedure and the “Hello” web site is
WORKING NOW !!!
However in the “SI” web site I am getting this
message error:
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.3 Client was not authenticated
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details:
System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.3 Client was not authenticated
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception
can be identified using the exception stack trace below.
Stack Trace:
[SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.3 Client was
not authenticated]
paradise_wol...
Member
448 Points
183 Posts
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 26, 2006 08:09 AM|LINK
Hi Jeff
<<Is there a web.config in he root?>>
If you are talking about the wwwroot folder then no.
<< Is the root a different app?>>
Not sure what you meant. The wwwroot folder has just its default files because this time I deleted the former SI folder ( that was inside wwwroot ) and decided to create the SI folder in a different drive ( E ) and set it as virtual.
<<Are you using the default asp.net process account?>>
Not sure what you mean by that Jeff. The page the initiates the web site is Default.aspx if it is that what you meant.
jeff@zina.co...
All-Star
87677 Points
11637 Posts
Moderator
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 26, 2006 10:55 AM|LINK
I was thinking your error might not be related to the app you are working on if another app existed in the root of the site. I also thought if you had changed the ASP.NET process account you might need to change permissions in the web structure as well. Neither seems the case for you by what you describe. But just in case, take a look at:
http://support.microsoft.com/kb/316721/
I still think this is a permission related issue, and the message as to which file may be misleading. Also, try a Hello World ASPX app to test this. If that works we need to look at what your app does, whether it uses SQL, if it access any files/folders using another account besides the ASP.NET process account, etc.
Also, what operating system is the server?
Jeff
paradise_wol...
Member
448 Points
183 Posts
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 26, 2006 12:53 PM|LINK
Hi Jeff
I am still learning ASP.NET. I am not sure about what you meant by “ASP.NET process account”.
The link you provide was not very helpful.
If you think that it is a “permission related issue” then what permissions exactly the SI folder must have and where to set them.
I tried a Hello World ASPX app and I received the same error message again.
The OS is Windows XP professional.
Here is some additional info that might give you some clues:
1-In the ASP.NET Configuration Settings of SI virtual directory, the Auhentication mode is set to “Forms”. Shouldn’t it be “Windows” ?
2- I don’t know how relevant this is but here is how “connectionStrings” is set in the web.config of “SI” web site:
<connectionStrings>
<add name="SIConnection" connectionString="Server=(local);Integrated Security=True;Database=SI" providerName="System.Data.SqlClient"/>
</connectionStrings>
jeff@zina.co...
All-Star
87677 Points
11637 Posts
Moderator
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 26, 2006 01:07 PM|LINK
The ASP.NET process account is the account that all your ASP.NET processes run under. It varies by operating system and cdan vary based on how you set up application pools, if any. If you're asking what it is I assume you haven't changed it, so the account is either ASPNET on Windows XP or NETWORK SERVICE on Server 2003.
The link I posted has the exact permissions needed, and both how and where to set them. Quoting:
To add read, execute, and list access for the ASPNET account on the root Web site or on any virtual directory, follow these steps: 1. In Windows Explorer, browse to the folder that contains the root Web site (which is C:\Inetpub\Wwwroot by default) or the virtual directory.
2. Right-click the folder, and then click Properties.
3. On the Security tab, click Add.
4. Type ComputerName\ASPNET (for example, on a computer named Webdev, type Webdev\ASPNET), and then click OK.
5. Allow the following permissions for the ASPNET account:
• Read & Execute
• List Folder Contents
• Read
6. Click OK to close the Properties dialog box and to save the changes.
Note that you need to do this on the folders that comprise the web site root and the folders where your virtual directory points to.
If a Hello World app does this, it's almost definitely file/folder permissions which need to be set.
Jeff
paradise_wol...
Member
448 Points
183 Posts
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 26, 2006 03:36 PM|LINK
Hi Jeff
<<To add read, execute, and list access for the ASPNET account on the root Web site or on any virtual directory, follow these steps: 1. In Windows Explorer, browse to the folder that contains the root Web site (which is C:\Inetpub\Wwwroot by default) or the virtual directory.
2. Right-click the folder, and then click Properties.
3. On the Security tab, click Add.
4. Type ComputerName\ASPNET (for example, on a computer named Webdev, type Webdev\ASPNET), and then click OK.
5. Allow the following permissions for the ASPNET account:
• Read & Execute
• List Folder Contents
• Read
6. Click OK to close the Properties dialog box and to save the changes. >>
A - The problem is that there is no "Security tab" in Properties.
Instead it has a "Web Sharing" tab as you can see in this picture:
http://www.dreamsart.pwp.blueyonder.co.uk/stratos/properties.gif
So I decided to set the options I found there for the "wwwwroot" folder like in this picture:
http://www.dreamsart.pwp.blueyonder.co.uk/stratos/websharing.gif
Regarding the Hello folder I set it like this picture :
http://www.dreamsart.pwp.blueyonder.co.uk/stratos/hellosettings.gif
However when I tried to see the Default.aspx of "hello", I got this error message:
Server Error in '/si' Application.
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.3 Client was not authenticated
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.3 Client was not authenticated
Source Error:
...
So what is the problem now, Jeff ?
paradise_wol...
Member
448 Points
183 Posts
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 26, 2006 03:52 PM|LINK
Hi Jeff
Oops, I pasted the wrong error message. Actually, the correct one is a repetition of the previous one:
Server Error in '/hello' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to 'c:\inetpub\wwwroot\web.config' because access is denied.
Source Error:
Source File: c:\inetpub\wwwroot\web.config Line: 0
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
jeff@zina.co...
All-Star
87677 Points
11637 Posts
Moderator
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 26, 2006 05:34 PM|LINK
Turn off simple file sharing:
http://support.microsoft.com/kb/307874/
Jeff
paradise_wol...
Member
448 Points
183 Posts
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 26, 2006 07:09 PM|LINK
Hi Jeff
I turned off simple file sharing and I am still getting the same error message !
Gosh ! I did not know that it was so hard to just publish an ASP.NET web site !
Jeff, is there some site that has the “recipe” for all correct settings and configurations necessary to a successful deployment of a web site ?
jeff@zina.co...
All-Star
87677 Points
11637 Posts
Moderator
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 26, 2006 07:44 PM|LINK
You turn off simple file sharing to allow you to set permissions. Now go back and follow the post on setting permissions. The security tab will be there this time.
There is no "recipe" for configuring a site because there are way too many variables. Some of what you are experiencing is basic Windows administration, not really related to configuring a web site but something you also need to know.
And there is a solution to making this work extremely easily. Use a hosting service.
Jeff
paradise_wol...
Member
448 Points
183 Posts
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 26, 2006 11:06 PM|LINK
Hi Jeff
<< You turn off simple file sharing to allow you to set permissions. Now go back and follow the post on setting permissions. The security tab will be there this time.>>
I did this procedure and the “Hello” web site is WORKING NOW !!!
However in the “SI” web site I am getting this message error:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Server Error in '/si' Application.
<div class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 1" align=center></div>
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.3 Client was not authenticated
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.3 Client was not authenticated
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.3 Client was not authenticated]
System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) +822504
System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from) +39
System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) +95
System.Net.Mail.SmtpClient.Send(MailMessage message) +2004
Utilities.SendErrorLogEmail(Exception ex) +208
GenericDataAccess.ExecuteSelectCommand(DbCommand command) +108
CatalogAccess.GetMainDocDetails() +29
UserControls_ShowMainDoc.PopulateControls() +12
UserControls_ShowMainDoc.Page_Load(Object sender, EventArgs e) +21
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
<div class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align=center></div>
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42