473,396 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

https and virtual directories

I've never done a login to a website so please bear with me. What is the
best way to go about this? Do I put all of the pages in a subdirectory that
I want secured and then put a different web.config file in there to specify
Forms authentication and deny all users? I tried to do that, but then I get
this error:

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.

So then I went into IIS and made that subdirectory a virtual directory. I
don't get that error, but no codebehind pages work then. I'm not sure why,
but then I get this error.

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 'realestate.members.WebForm2'.

Apparently the aspx page can't find the class in it's code-behind page. I
assume because it is it's own virtual directory and the path to the class
isn't correct. I've changed it to everything I could think of, but still no
go.

If anyone has any suggestions regarding this and possibly a good book that
deals with asp.net and ssl that would help, I would greatly appreciate it.

Dru

Nov 19 '05 #1
1 976
Hi Dru:

Back up and put the <authentication> element in the web.config in root
of your website - you can't use this in a subdirectory. You can use
the <authorization> element in a subdirectory.

You also need to undo making the sub-dir a v-dir. ASP.NET will think
the pages inside are in a different application and will try to load
compiled code from a bin directory that doesn't exist.

Make sense?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 15 Mar 2005 11:24:46 -0500, "Dru Snyder" <do**@neo.rr.com>
wrote:
I've never done a login to a website so please bear with me. What is the
best way to go about this? Do I put all of the pages in a subdirectory that
I want secured and then put a different web.config file in there to specify
Forms authentication and deny all users? I tried to do that, but then I get
this error:

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.

So then I went into IIS and made that subdirectory a virtual directory. I
don't get that error, but no codebehind pages work then. I'm not sure why,
but then I get this error.

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 'realestate.members.WebForm2'.

Apparently the aspx page can't find the class in it's code-behind page. I
assume because it is it's own virtual directory and the path to the class
isn't correct. I've changed it to everything I could think of, but still no
go.

If anyone has any suggestions regarding this and possibly a good book that
deals with asp.net and ssl that would help, I would greatly appreciate it.

Dru


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Gary Feldman | last post by:
I think I've found a deficiency in the design of urllib related to https. In order to complete an https connection, it appears that URLOpener and hence FancyURLOpener require the key and cert...
3
by: Pooja Renukdas | last post by:
Hello, I have this web site where only two pages have to be secure pages and I need to call them using https, but since I have my development server and my production web server, I dont want to...
2
by: Jeffry van de Vuurst | last post by:
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of you has some ideas about this. I'm using the...
14
by: david | last post by:
I have developed web forms including login by using ASP.NET via HTTP. Now I want to secure the connection from client to the server via HTTPS. How can I configure the server or something else to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.