Re: Error loading class when developing web pages under folders
From: John (jcthREMOVETHISomas5_at_hotmail.com)
Date: 06/10/04
- Next message: masoud: "show images and texts in datagrid or other server controls"
- Previous message: T Cordon: "Reading Text"
- In reply to: John Saunders: "Re: Error loading class when developing web pages under folders"
- Next in thread: Duron: "Re: Error loading class when developing web pages under folders"
- Reply: Duron: "Re: Error loading class when developing web pages under folders"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Jun 2004 17:18:13 GMT
> "Duron" <johnnykhlee@seed.net.tw> wrote in message
> > Then, I copied Web.config into /Member. After this, if I try to run
> > /Member/Default.aspx, an error message says I have to make this folder
an
> > web application in IIS. I did so. But then the old error (can not load
> > namespace MySite._Default) occurs.
> >
> > I haven't done many things to Web.config except the following,
> >
> > <authentication mode="None">
> > </authentication>
> > <authorization>
> > <allow users="*" />
> > </authorization>
> >
> > The reason why I add Web.config to that folder is because I want the
root
> > folder be free to access while /Member needs certification. How do
people
> > normally do this in VS.NET?
I could be wrong (ultranewb, here), but I believe the reason you're getting
an error message that says you have to 'make the folder an application' in
IIS is because you're trying to specify authentication again in your second
web.config file. Authentication can only be set in the web.config file in
the root directory, as it pertains to the whole application. So just remove
the <authentication> tag pair from the config file in the subdirectory and
everything else should be fine - the authorization section does the work you
need. Or you can, as was suggested, use 'location' tags in a single
web.config file at root.
HTH
-John
- Next message: masoud: "show images and texts in datagrid or other server controls"
- Previous message: T Cordon: "Reading Text"
- In reply to: John Saunders: "Re: Error loading class when developing web pages under folders"
- Next in thread: Duron: "Re: Error loading class when developing web pages under folders"
- Reply: Duron: "Re: Error loading class when developing web pages under folders"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|