|
Home > Archive > Microsoft Content Management Server > November 2005 > CmsSslHttpModule
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| drazic19 2005-11-21, 5:51 pm |
| Hi,
I'm trying to implement this module in my site in order to create a
directory that is ssl protected. My only problem is how do i go about this?
its a simple .cs file. Where does it go? and how it is implemented on a
directory?
Thanks,
Michael
| |
| Stefan [MSFT] 2005-11-21, 5:51 pm |
| Hi Michael,
this module can help to protect channels not folders.
To use this module, please follow these steps:
- create a new C# class library project
- add this CS file to the project
- remove the class1.cs file
- build the project
Now move the dll to the bin directory of your template project.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"drazic19" <drazic19@discussions.microsoft.com> wrote in message
news:A5382108-3E27-4D39-8B25-4FF7FB1C5581@microsoft.com...
> Hi,
>
> I'm trying to implement this module in my site in order to create a
> directory that is ssl protected. My only problem is how do i go about
> this?
> its a simple .cs file. Where does it go? and how it is implemented on a
> directory?
>
> Thanks,
>
> Michael
| |
| drazic19 2005-11-22, 7:49 am |
| Hi Stefan,
Tried this and i get 3 compilation errors:
The type or namespace name 'ContentManagement' does not exist in the class
or namespace 'Microsoft' (are you missing an assembly reference?)
The type or namespace name 'IHttpModule' could not be found (are you missing
a using directive or an assembly reference?)
The type or namespace name 'HttpApplication' could not be found (are you
missing a using directive or an assembly reference?)
The first one obviously needs the cms publishing reference, what are the
other two that are needed?
Thanks,
Michael
p.s. it is a channel i need protecting not a directory. apologies for my bad
wording.
"Stefan [MSFT]" wrote:
> Hi Michael,
>
> this module can help to protect channels not folders.
> To use this module, please follow these steps:
>
> - create a new C# class library project
> - add this CS file to the project
> - remove the class1.cs file
> - build the project
>
> Now move the dll to the bin directory of your template project.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "drazic19" <drazic19@discussions.microsoft.com> wrote in message
> news:A5382108-3E27-4D39-8B25-4FF7FB1C5581@microsoft.com...
>
>
>
| |
| Stefan [MSFT] 2005-11-22, 7:49 am |
| Hi Michael,
ok, you need to add the MCMS assemblies to the project.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"drazic19" <drazic19@discussions.microsoft.com> wrote in message
news:63596F90-5EB7-4478-929E-F3D148AEC4D7@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> Tried this and i get 3 compilation errors:
>
> The type or namespace name 'ContentManagement' does not exist in the class
> or namespace 'Microsoft' (are you missing an assembly reference?)
>
> The type or namespace name 'IHttpModule' could not be found (are you
> missing
> a using directive or an assembly reference?)
>
> The type or namespace name 'HttpApplication' could not be found (are you
> missing a using directive or an assembly reference?)
>
> The first one obviously needs the cms publishing reference, what are the
> other two that are needed?
>
> Thanks,
>
> Michael
>
> p.s. it is a channel i need protecting not a directory. apologies for my
> bad
> wording.
>
> "Stefan [MSFT]" wrote:
>
| |
| drazic19 2005-11-22, 7:49 am |
| Hi Stefan,
Once the references were added all was well with regards to that. There was
however an error in the code line 45:
if (CmsHttpContext.Current!= null) // changed from cmsContext.Current
{
Thought i best point this one out incase you get any other queries.
Now i have the dll and have added it to my cms project, whats my next step?
how is it implemented on a channel?
Thanks,
Michael
"Stefan [MSFT]" wrote:
> Hi Michael,
>
> ok, you need to add the MCMS assemblies to the project.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "drazic19" <drazic19@discussions.microsoft.com> wrote in message
> news:63596F90-5EB7-4478-929E-F3D148AEC4D7@microsoft.com...
>
>
>
| |
| Stefan [MSFT] 2005-11-22, 5:54 pm |
| Hi Michael,
you are right, this is a bug.
But you should replace it as follows:
> if (cmsContext != null) // changed from cmsContext.Current
Otherwise the problem solved by the try catch block will show up again.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"drazic19" <drazic19@discussions.microsoft.com> wrote in message
news:92A0E8DC-1949-42C4-B34D-B5AEC6A97ED8@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> Once the references were added all was well with regards to that. There
> was
> however an error in the code line 45:
>
> if (CmsHttpContext.Current!= null) // changed from cmsContext.Current
> {
>
> Thought i best point this one out incase you get any other queries.
>
> Now i have the dll and have added it to my cms project, whats my next
> step?
> how is it implemented on a channel?
>
> Thanks,
>
> Michael
>
> "Stefan [MSFT]" wrote:
>
| |
| drazic19 2005-11-24, 7:48 am |
| Hi Stefan,
Sorry been working on other bits, but back on this now. I've made the change
so the code is correct and compiles fine. Now i have my dll what do i do with
it? add it to my cms project and add a reference but how do i get the cms to
see it and set which channel should be ssl?
Thanks,
Michael
"Stefan [MSFT]" wrote:
> Hi Michael,
>
> you are right, this is a bug.
> But you should replace it as follows:
>
>
> Otherwise the problem solved by the try catch block will show up again.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "drazic19" <drazic19@discussions.microsoft.com> wrote in message
> news:92A0E8DC-1949-42C4-B34D-B5AEC6A97ED8@microsoft.com...
>
>
>
| |
| Stefan [MSFT] 2005-11-24, 7:48 am |
| Hi Michael,
this is explained in step 5 and 6 of this whitepaper:
http://msdn.microsoft.com/library/d...EnablingSSL.asp
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"drazic19" <drazic19@discussions.microsoft.com> wrote in message
news:F2D484EE-98FB-483E-889E-9B576CF953C3@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> Sorry been working on other bits, but back on this now. I've made the
> change
> so the code is correct and compiles fine. Now i have my dll what do i do
> with
> it? add it to my cms project and add a reference but how do i get the cms
> to
> see it and set which channel should be ssl?
>
> Thanks,
>
> Michael
>
> "Stefan [MSFT]" wrote:
>
|
|
|
|
|