473,320 Members | 1,900 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,320 software developers and data experts.

Switching from http to https and back

Hi,

I'm presently upgrading a v1.1 ASP.NET app to v2. Parts of site run under
SSL and parts don't, and the site uses this code:

http://www.codeproject.com/aspnet/WebPageSecurity.asp

to switch between them - works perfectly.

Setting up which files and/or folders need to run under https is a simple
matter of adding some web.config settings. The code appears to run perfectly
well under v2, but gives lots of warnings when the site is compiled. The
relevant settings in web.config are as follows:

<?xml version="1.0"?>
<configuration>
<configSections>
<section name="secureWebPages"
type="Hyper.Web.Security.SecureWebPageSectionHandl er, WebPageSecurity"
allowLocation="false"/>
</configSections>
<secureWebPages>
<directory path="security"/>
</secureWebPages>
<system.web>
<httpModules>
<add name="SecureWebPage"
type="Hyper.Web.Security.SecureWebPageModule, WebPageSecurity"/>
</httpModules>
</system.web>
</configuration>

The warnings messages are:

Could not find schema information for the element 'secureWebPages'.
Could not find schema information for the element 'directory'.
Could not find schema information for the attribute 'path'.

As I said, the assembly appears to work perfectly under v2 of the Framework,
so:

1) Do I need to be concerned about the warning messages?

2) Is there a way to specify the settings in web.config which the assembly
needs which will not generate the warning messages?

3) There doesn't appear to be a v2 version of the assembly available, but is
there a "native" v2 way of achieving the same functionality?

Any assistance gratefully received.

Mark
Jan 5 '06 #1
2 5988
Mark,

I'm afraid that I don't know how to eliminate the warnings, but (and anyone
please correct me if I'm wrong) I don't think you need to worry about them.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi,

I'm presently upgrading a v1.1 ASP.NET app to v2. Parts of site run under
SSL and parts don't, and the site uses this code:

http://www.codeproject.com/aspnet/WebPageSecurity.asp

to switch between them - works perfectly.

Setting up which files and/or folders need to run under https is a simple
matter of adding some web.config settings. The code appears to run
perfectly well under v2, but gives lots of warnings when the site is
compiled. The relevant settings in web.config are as follows:

<?xml version="1.0"?>
<configuration>
<configSections>
<section name="secureWebPages"
type="Hyper.Web.Security.SecureWebPageSectionHandl er, WebPageSecurity"
allowLocation="false"/>
</configSections>
<secureWebPages>
<directory path="security"/>
</secureWebPages>
<system.web>
<httpModules>
<add name="SecureWebPage"
type="Hyper.Web.Security.SecureWebPageModule, WebPageSecurity"/>
</httpModules>
</system.web>
</configuration>

The warnings messages are:

Could not find schema information for the element 'secureWebPages'.
Could not find schema information for the element 'directory'.
Could not find schema information for the attribute 'path'.

As I said, the assembly appears to work perfectly under v2 of the
Framework, so:

1) Do I need to be concerned about the warning messages?

2) Is there a way to specify the settings in web.config which the assembly
needs which will not generate the warning messages?

3) There doesn't appear to be a v2 version of the assembly available, but
is there a "native" v2 way of achieving the same functionality?

Any assistance gratefully received.

Mark

Jan 6 '06 #2
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:el****************@TK2MSFTNGP11.phx.gbl...
I'm afraid that I don't know how to eliminate the warnings, but (and
anyone please correct me if I'm wrong) I don't think you need to worry
about them.


Thanks for that - like I said, my initial testing shows that it works
perfectly in v2 despite the warnings from VS.NET 2005.

I'd still be interested to know if there's a different / better way of
achieving this in ASP.NET 2...
Jan 6 '06 #3

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

Similar topics

1
by: fartsniff | last post by:
hello all. currently, this is how a line of my form is setup (names have been changed to protect the innocent ;) <form action="/modules.php?name=buyme&file=index&func=gimmecash" method="post">...
1
by: Kenneth Keeley | last post by:
Hi I wish to have a web site that has most of the pages as normal HTTP pages but has some areas that use HTTPS. I want to have it that if a user selects a link to a HTTPS page that they go there...
6
by: Astra | last post by:
Hi All I've noticed on quite a few ASP sites that when they have a 'MyAccount' section they transfer the site to https and then when you have logged into your account successfully and gone back...
3
by: MattB | last post by:
I've seen some different suggestions about this, and I'm wondering if there's a common way to do it. I have an app I'll be distributing, so we can't hardcode a absolute URL in it. I've seen an...
1
by: Iulian Ionescu | last post by:
I have a page (http://www.something.com/) and a secure page (https://secure.something.com) and the secure.something.com points to http://www.something.com/secure/ All works ok, but, when I...
1
by: cbright | last post by:
I have a very weird problem with our site at https://store.canoegame.com. For many users the site is working as it should however for a few it is not. One of the bigger problems is the fact that,...
6
by: hpatel | last post by:
Hi, I maintain a website for my organization. Recently, for a login page, I started using HTTPS. It works fine with HTTPS. The problem I face is : When a user goes to login page, he sees the...
9
by: LVP | last post by:
Hello, What are the ways to switch from http to https. Is there a way internal to IIS 6.0 or x.xx? Some configuration? Is there a way via DNS? I have seen Scripts in VB and JavaScript ...
4
by: bob | last post by:
Hi, Newbie question. I have a logon Web Form which, once the server has validated the logon, I want to open up a main form. i.e. In a windows app I would write something like if(logon) {...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.