473,804 Members | 3,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

https Redirection not working in Vista IE7

1 New Member
Hi,
I have created a web application, and i need the total web site to be in https. So i have written the below code in the Page Init of the Master Page to automatically redirect the site from http to https (http://myserver.com to https://www.myserver.co m ).

public void Page_Init(Objec t O, EventArgs e)
{
if(this.Request .Url.Scheme.Equ als(Uri.UriSche meHttps))
{
if(this.Request .Url.Authority. ToString().ToLo wer() != "www.myserver.c om")
{
Response.Redire ct(Uri.UriSchem eHttps + Uri.SchemeDelim iter +"www."+ this.Request.Ur l.Authority + this.Request.Ur l.PathAndQuery) ;
}
}
else
{
if(this.Request .Url.Authority. ToString().ToLo wer() != "www.myserver.c om")
{
Response.Redire ct(Uri.UriSchem eHttps + Uri.SchemeDelim iter +"www."+ this.Request.Ur l.Authority + this.Request.Ur l.PathAndQuery) ;
}
else
{
Response.Redire ct(Uri.UriSchem eHttps + Uri.SchemeDelim iter + this.Request.Ur l.Authority + this.Request.Ur l.PathAndQuery) ;
}
}
}




This code works fine with IE6 and IE7. but when i tried to work with Vista IE7 am not able to view the page.. Am getting the below security error message
There is a problem with this website's security certificate.




This organization's certificate has been revoked.

Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.



But when i removed the above coding from the master page, it works fine with vista IE7 also, but this will not solve problem as i need to run my entire website in https. So anybody please help me how do i solve this problem in Window Vista IExplorer.



Regards

KMS
Feb 19 '08 #1
0 1325

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1186
by: DotNetJunkies User | last post by:
Hello everyone: Ok here is a very weird problem I am having and I hope that some of you can share some thoughts with me on this. First of all, let me start by listing what I have: 1.- Windows Server 2003 - Standard Edition 2.- IIS 6.0 I have 2 different web sites running on this box,
6
3340
by: Angelos | last post by:
Hello, For long time now I am trying to POST some variables from a form to a script and then that script POST them to another External page or payment gateway like worldpay. The reason I want to do that is because I want the user to enter his details in my website and then post them in Worldpay and continue any other steps he has to do to pay and then ofcourse using the callback function right back to the database if the transaction...
1
1485
by: Smokey Grindle | last post by:
is there any easy way to detect a http request on a domain and redirect it to a HTTPS one? thanks
13
2717
by: souissipro | last post by:
Hi, I have written a C program that does some of the functionalities mentionned in my previous topic posted some days ago. This shell should: 1- execute input commands from standard input, and also from a file conatining the commands 2- does the redirection of the input and output from and to files. 3- retrieve the environment variables like HOME,..
7
13454
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am trying to set this up using asp code and IIS configuration. But it seems not working. Here it is the way I am doing. In IIS I set up a virtual directory with secure communication, I checked require secure channel, require 128-bit encryption. In custom error, instead of using default message HTTP 403.4 - Forbidden: SSL required Internet Information Services in iishelp 403.4htm, I am trying to do redirect automatically. so I...
11
1973
by: IfThenElse | last post by:
Hello, Is there a set up in IIS 6.0 on W2K3 that can automatically switch my users from http to https. I know there are scripts that can be added to do that. But is there a universal setup in IIS to do so. if not will a future IIS provide that func.
2
2726
by: mindspring | last post by:
A pc that was created in MS office xp's Access 2002 has been working fine on a windows vista Ultimate pc that has MS OFfice Vista Edition. But all of the sudden it stopped working and gives this error, when a button is pressed. The button launches procedures to download and parse XML files. This error occurs when an event has failed to run because Microsoft Office Access cannot evaluate the location of the logic for the event. For...
1
1422
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, while it is fully an HTTPS site, I have tested it on a specific machine and some of the links will stay in HTTPS but others (specifically to the product pages) go to the HTTP protocol. This is not the way it is coded and, in fact, the status bar...
0
4353
by: Raven | last post by:
Hi, I have a problem with a server side redirect from a secure page to a non-secure page (same domain name, same folder) I have added some test code that can display the target URL and that containt http:// and yet it redirects to https:// example: I am on
0
9708
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10324
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.