Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Make the wwwroot another directory


Message #1 by "Marcel Vogel" <marcel@n...> on Sun, 24 Feb 2002 00:43:11 +0100
Hi,



I want to make my wwwroot in another directory.



I have changed in IIS the wwwroot to /my documents/my projects/

I have setup the aspnet account to read/execute/list in that directory



But if I run a project from IE I get this error:



Access denied to 'C:\Documents and Settings\Marcel Vogel\My Documents\My

Projects\Test\' directory. Failed to start monitoring directory changes.



Is there someone here that tried the same, but with good results?



Marcel.



Message #2 by "Darrell Houle" <dchoule@t...> on Sat, 23 Feb 2002 18:05:18 -0700
You should ensure your permissions for the directory are correct.



-----Original Message-----

From: Marcel Vogel [mailto:marcel@n...]

Sent: Saturday, February 23, 2002 4:43 PM

To: aspx_beginners

Subject: [aspx_beginners] Make the wwwroot another directory





Hi,



I want to make my wwwroot in another directory.



I have changed in IIS the wwwroot to /my documents/my projects/

I have setup the aspnet account to read/execute/list in that directory



But if I run a project from IE I get this error:



Access denied to 'C:\Documents and Settings\Marcel Vogel\My Documents\My

Projects\Test\' directory. Failed to start monitoring directory changes.



Is there someone here that tried the same, but with good results?



Marcel.








$subst('Email.Unsub').



Message #3 by "Marcel Vogel" <marcel@n...> on Sun, 24 Feb 2002 10:56:08 +0100
As far as I know I've setup the same permissions as the wwwroot

directory,

So that must be allright.



Marcel.





-----Original Message-----

From: Darrell Houle [mailto:dchoule@t...] 

Sent: Sunday, February 24, 2002 2:05 AM

To: aspx_beginners

Subject: [aspx_beginners] RE: Make the wwwroot another directory





You should ensure your permissions for the directory are correct.



-----Original Message-----

From: Marcel Vogel [mailto:marcel@n...]

Sent: Saturday, February 23, 2002 4:43 PM

To: aspx_beginners

Subject: [aspx_beginners] Make the wwwroot another directory





Hi,



I want to make my wwwroot in another directory.



I have changed in IIS the wwwroot to /my documents/my projects/

I have setup the aspnet account to read/execute/list in that directory



But if I run a project from IE I get this error:



Access denied to 'C:\Documents and Settings\Marcel Vogel\My Documents\My

Projects\Test\' directory. Failed to start monitoring directory changes.



Is there someone here that tried the same, but with good results?



Marcel.








$subst('Email.Unsub').








$subst('Email.Unsub').



Message #4 by nguyentriminh@y... on Mon, 25 Feb 2002 04:46:20
Marcel,



> As far as I know I've setup the same permissions as the wwwroot

> directory,

> So that must be allright.



Try changing the machine.config file.

See: http://p2p.wrox.com/view.asp?list=aspx_beginners&id=149602



That was the most common error for all of us,

Minh.



Message #5 by "Marcel Vogel" <marcel@n...> on Mon, 25 Feb 2002 09:58:15 +0100
Hi,



I did that, now if I make a new project and type "test" in the

webform1.aspx file I get this error:



Server Error in '/Test2' Application.

------------------------------------------------------------------------

--------



Parser Error 

Description: An error occurred during the parsing of a resource required

to service this request. Please review the following specific parse

error details and modify your source file appropriately. 



Parser Error Message: Could not load type 'Test2.Global'.



Source Error: 





Line 1:  <%@ Application Codebehind="Global.asax.cs"

Inherits="Test2.Global" %>



 



Source File: C:\Documents and Settings\Marcel Vogel\My Documents\My

Projects\Test2\global.asax    Line: 1 





------------------------------------------------------------------------

--------

Version Information: Microsoft .NET Framework Version:1.0.3705.0;

ASP.NET Version:1.0.3705.0 









-----Original Message-----

From: nguyentriminh@y... [mailto:nguyentriminh@y...] 

Sent: Monday, February 25, 2002 4:46 AM

To: aspx_beginners

Subject: [aspx_beginners] RE: Make the wwwroot another directory





Marcel,



> As far as I know I've setup the same permissions as the wwwroot

> directory,

> So that must be allright.



Try changing the machine.config file.

See: http://p2p.wrox.com/view.asp?list=aspx_beginners&id=149602



That was the most common error for all of us,

Minh.








$subst('Email.Unsub').



Message #6 by "Minh T. Nguyen" <nguyentriminh@y...> on Mon, 25 Feb 2002 07:14:36 -0800
Marcel,



	Make sure you have the correct namespace in all your class files

and make sure you have the public available class named "Global" in the

Global.asax.cs file. Apparently it can't find the class Test2.Global.

Your Global.asax.cs should start something like this:



using System;

using System.Collections;

using System.ComponentModel;

using System.Web;

using System.Web.SessionState;



namespace Test2

{

	/// <summary>

	/// Summary description for Global.

	/// </summary>

	public class Global : System.Web.HttpApplication

	{





...







Good luck,

Minh.



-----Original Message-----

From: Marcel Vogel [mailto:marcel@n...] 

Sent: Monday, February 25, 2002 12:58 AM

To: aspx_beginners

Subject: [aspx_beginners] RE: Make the wwwroot another directory





Hi,



I did that, now if I make a new project and type "test" in the

webform1.aspx file I get this error:



Server Error in '/Test2' Application.

------------------------------------------------------------------------

--------



Parser Error 

Description: An error occurred during the parsing of a resource required

to service this request. Please review the following specific parse

error details and modify your source file appropriately. 



Parser Error Message: Could not load type 'Test2.Global'.



Source Error: 





Line 1:  <%@ Application Codebehind="Global.asax.cs"

Inherits="Test2.Global" %>



 



Source File: C:\Documents and Settings\Marcel Vogel\My Documents\My

Projects\Test2\global.asax    Line: 1 





------------------------------------------------------------------------

--------

Version Information: Microsoft .NET Framework Version:1.0.3705.0;

ASP.NET Version:1.0.3705.0 







_________________________________________________________



Do You Yahoo!?



Get your free @yahoo.com address at http://mail.yahoo.com








  Return to Index