Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
ASPProtect.NET Authentication Add-On Support Archives (Info Locked Info Locked)
 CJWSoft Support Info : ASPProtect.NET Authentication Add-On Support Archives
Subject Info: Error when testing testprotect.aspx A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
JasonCMX
New User
New User


Joined: September/08/2005
Location: United States
Online Status: Offline
Info: 12
Added: March/22/2007 at 1:22pm | IP Logged Quote JasonCMX

I thought I had followed the instructions correctly.
When testing the testprotect.aspx, I am receiving the following error:
 

 

Server Error in '/Secretdeal' 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: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:

Line 56:       <compilation debug="false" explicit="true" />
Line 57: 
Line 58:       <authentication mode="Forms">
Line 59:         <forms name=".aspprotect~net" loginUrl="/aspprotect/aspplogin.aspx" protection="All" timeout="60" />
Line 60:       </authentication>

Source File: d:\hosting\nabexnet\Secretdeal\aspprotect\web.config    Line: 58


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
Back to Top View JasonCMX's Profile Search for other info by JasonCMX
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: March/22/2007 at 1:30pm | IP Logged Quote cwilliams

ok, that error bascially means exactly what it says.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

It's a basic IIS/ASP.NET configuration issue of sorts.

It tells me one of the following..

The folder you are running the .NET Add-ON from is not set as it's own aplication in IIS...

or

You're trying to access things in one IIS application from another IIS application which is also a no-no in the world of ASP.NET and forms authentication


These are only guesses as you really haven't told me anything about how your IIS applications are set up or where you are running testprotect.aspx from in relation to where the .NET add on is.

Nor have you told me what version of the .NET DLL your using and what version asp.net your web is set in IIS to be associated with.

etc etc etc   the more details the better really

You'll also find a ton of info on that specific error by doing a google group search.. it is a general ASP.NET configuration/setup issue as I said, not specific to any application or code


For instance here are results I found by doing a quick search

http://groups.google.com/groups/search?hl=en&qt_s=1& q=%22It+is+an+error+to+use+a+section+registered+as+allowDefi nition%3DMachineToApplication+beyond+application+level.+This +error+can+be+caused+by+a+virtual+directory+not+being+config ured+as+an+application+in+IIS.%22

__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: March/22/2007 at 1:41pm | IP Logged Quote cwilliams

more or less you have to try different things until you get it working.. such is .NET



__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
flesso
Member
Member
Avatar

Joined: June/15/2006
Online Status: Offline
Info: 75
Added: March/22/2007 at 1:44pm | IP Logged Quote flesso

asp.net version is already there...

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210


__________________
Best Regards,
Josh Hold
Back to Top View flesso's Profile Search for other info by flesso
 
JasonCMX
New User
New User


Joined: September/08/2005
Location: United States
Online Status: Offline
Info: 12
Added: March/22/2007 at 2:04pm | IP Logged Quote JasonCMX

OK...

The site is hosted at godaddy.com with .NET 2.0.
The dll is .net 2.0 as well.

ASPProtect is installed in subdirectory /aspprotect.  This directory is where testprotect.aspx is located. 

Back to Top View JasonCMX's Profile Search for other info by JasonCMX
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: March/22/2007 at 7:25pm | IP Logged Quote cwilliams

Then that directory probably needs to be set as it's own application in IIS.. if that is where your putting the .NET files.


__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
JasonCMX
New User
New User


Joined: September/08/2005
Location: United States
Online Status: Offline
Info: 12
Added: March/23/2007 at 9:02am | IP Logged Quote JasonCMX

I don't have access to IIS Manager.
Back to Top View JasonCMX's Profile Search for other info by JasonCMX
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: March/23/2007 at 10:28am | IP Logged Quote cwilliams

Then put in a request or call them??

Running ASP.NET scripts is a little more involved... it's not like classic ASP where any old host will do..

I mean if your doing anything serious with ASP.NET you either need to be running your own server or hosting with a serious hosting company that understands how to support ASP.NET.

GoDaddy is not one of those companies. They won't do jack sh*t for you when you ask, they usually don't understand what your asking for..  the interfaces they give you to control your website are horrible... etc etc etc
GoDaddy hosting is all about quantity not quality... they just want and have as many customers as they can handle. If your doing static files they are fine. Anything else and they suck.

If you plan to do a lot with ASP.NET I suggest you get a real hosting company like www.alentus.com or www.1and1.com

I mean there isn't anything I can do if web server settings can not be taken care of and adjusted. ASP.NET is a much more complicated animal.

You can try running the .NET authentication files from the root of your web site. If things are properally set up as far as .NET goes it should run. That means proper permissions set for the /bin folder as well as IIS application settings... etc etc etc

Really, most people have no problem getting the .NET authentication running, but then again you have to have some .NET troubleshooting experience and be running things on a server where settings can be adjusted and checked when necessary.

You also might want to think about trying to get the .NET authentication code running on a local development machine and really understanding IIS settings before you try to get it running on a hosts machine.



__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 

Sorry, you can NOT post info.
This info has been locked by a info administrator.

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area


Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.powerasp.com,www.aspclassifieds.com,www.aspphotogallery.com,www.codewanker.com