Showing posts with label domain. Show all posts
Showing posts with label domain. Show all posts

Wednesday, March 28, 2012

Third Level Domain And ASP.NET 2.0

I need to write and test a new ASP.NET 2.0 application that uses third level
domains, like test.MyDomainName.Com. I just cannot figure out how to get the
new development server to allow this, if its even possible.

I have already tried http://test.localhost:2600/NewProject/Index.aspx, and
it does not like that. Then I added test.localhost to my host file to resolve
to 127.0.0.1 and tried the same URL again and it works, but ASP code of
Request.Url.Host only returns localhost. I have poked all around in the
properties in the request object as well as the request.url object and cannot
find anywhere were its picking up my domain prefix.

Anyone dealt with this before?

Thx in advance!

RossWhat you need to do is run a DNS server on your development server's box,
configure your test subdomain, and use IIS instead of VS 2005's internal server.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Ross Nornes" <RossNornes@.discussions.microsoft.comwrote in message
news:69D28053-658E-41F6-B778-D4BD2FFAD1E8@.microsoft.com...

Quote:

Originally Posted by

>I need to write and test a new ASP.NET 2.0 application that uses third level
domains, like test.MyDomainName.Com. I just cannot figure out how to get the
new development server to allow this, if its even possible.
>
I have already tried http://test.localhost:2600/NewProject/Index.aspx, and
it does not like that. Then I added test.localhost to my host file to resolve
to 127.0.0.1 and tried the same URL again and it works, but ASP code of
Request.Url.Host only returns localhost. I have poked all around in the
properties in the request object as well as the request.url object and cannot
find anywhere were its picking up my domain prefix.
>
Anyone dealt with this before?
>
Thx in advance!
>
Ross


Cool, thx for the reply Juan!

I figured it out now. People dont call these "third level domains" like I
do, I guess the more common term is "subdomain". :-) Go figure... Found lots
more info on Google after figuring that out...

Between your response and a few reponses to the subdomain google queries I
did, I took a little more simplistic approach since I did not want stand up a
DNS server on my box.

For anyone else wanting a solution, what I did was setup the Windows XP IIS
default website to point at my new ASP.NET 2.0 website I'm developing, I
edited my host file and created domains in there like test1.localhost.com,
test2.localhost.com and pointed them all at 127.0.0.1, then set up these test
subdomains as host headers in the default IIS website and bingo, I have a
functional test enviorment!

Thx!

Ross

"Juan T. Llibre" wrote:

Quote:

Originally Posted by

What you need to do is run a DNS server on your development server's box,
configure your test subdomain, and use IIS instead of VS 2005's internal server.
>
>
>
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
===================================
"Ross Nornes" <RossNornes@.discussions.microsoft.comwrote in message
news:69D28053-658E-41F6-B778-D4BD2FFAD1E8@.microsoft.com...

Quote:

Originally Posted by

I need to write and test a new ASP.NET 2.0 application that uses third level
domains, like test.MyDomainName.Com. I just cannot figure out how to get the
new development server to allow this, if its even possible.

I have already tried http://test.localhost:2600/NewProject/Index.aspx, and
it does not like that. Then I added test.localhost to my host file to resolve
to 127.0.0.1 and tried the same URL again and it works, but ASP code of
Request.Url.Host only returns localhost. I have poked all around in the
properties in the request object as well as the request.url object and cannot
find anywhere were its picking up my domain prefix.

Anyone dealt with this before?

Thx in advance!

Ross


>
>
>

Third-Part Cookies blocked by IE

Hi guys,

we are developing a webapplication which let user create their own
virtual website on their real domain.
in other word, users could create their virtual web-sites by this
application and app will recognize each website
by its domain.

we needed a passport system (like .Net Passport) to identify users in
all of these virtual web-sites (& various domains)
we build this system upon third-party cookies by making request from
each site to passportserver using import script tags.

now the problem is : IE 6.0, 7.0 won't let the web-applciation to
create thirdparty cookies by default and users have to add passport
server domain to TrustedZone,i heared that p3p could solve this
problem but id don't know how !? should we register our domains in
some database ? is it free ?

Thanks in advanceHi,

We only have this problem with IIS 6.0.

We configure the p3p.xml and the p3pconfig.xml correctly in the root
domain of our server.
We configured the P3P in the application begin request in
global.asax :
Context.Response.AddHeader("P3P", @."CP=""CAO PSA OUR""");

But the problem persist we have no solution, please tell me if you
find one.

Thanks,
Johnny

On 2 fv, 19:52, "Khafancoder" <khafanco...@.gmail.comwrote:

Quote:

Originally Posted by

Hi guys,
>
we are developing a webapplication which let user create their own
virtual website on their real domain.
in other word, users could create their virtual web-sites by this
application and app will recognize each website
by its domain.
>
we needed a passport system (like .Net Passport) to identify users in
all of these virtual web-sites (& various domains)
we build this system upon third-party cookies by making request from
each site to passportserver using import script tags.
>
now the problem is : IE 6.0, 7.0 won't let the web-applciation to
create thirdparty cookies by default and users have to add passport
server domain to TrustedZone,i heared that p3p could solve this
problem but id don't know how !? should we register our domains in
some database ? is it free ?
>
Thanks in advance


Hi Everybody,

The HTTP HEADERS were remove by IIS 6.0.

To solve the problem go to :
1) Properties on the web root
2) Click HTTP HEADERS tab
3) Custom Headers panel
4) Click Add...
Key : P3P
Value : CP="CAO PSA OUR"

Hope that will help some one.
Johnny

On 26 mar, 16:45, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:

Quote:

Originally Posted by

Hi,
>
We only have this problem with IIS 6.0.
>
We configure the p3p.xml and the p3pconfig.xml correctly in the root
domain of our server.
We configured the P3P in the application begin request in
global.asax :
Context.Response.AddHeader("P3P", @."CP=""CAO PSA OUR""");
>
But the problem persist we have no solution, please tell me if you
find one.
>
Thanks,
Johnny
>
On 2 fv, 19:52, "Khafancoder" <khafanco...@.gmail.comwrote:
>
>
>

Quote:

Originally Posted by

Hi guys,


>

Quote:

Originally Posted by

we are developing a webapplication which let user create their own
virtual website on their real domain.
in other word, users could create their virtual web-sites by this
application and app will recognize each website
by its domain.


>

Quote:

Originally Posted by

we needed a passport system (like .Net Passport) to identify users in
all of these virtual web-sites (& various domains)
we build this system upon third-party cookies by making request from
each site to passportserver using import script tags.


>

Quote:

Originally Posted by

now the problem is : IE 6.0, 7.0 won't let the web-applciation to
create thirdparty cookies by default and users have to add passport
server domain to TrustedZone,i heared that p3p could solve this
problem but id don't know how !? should we register our domains in
some database ? is it free ?


>

Quote:

Originally Posted by

Thanks in advance- Masquer le texte des messages prcdents -


>
- Afficher le texte des messages prcdents -


Better, just look at this url : http://support.microsoft.com/kb/324013/en-us
On 27 mar, 15:38, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:

Quote:

Originally Posted by

Hi Everybody,
>
The HTTP HEADERS were remove by IIS 6.0.
>
To solve the problem go to :
1) Properties on the web root
2) Click HTTP HEADERS tab
3) Custom Headers panel
4) Click Add...
Key : P3P
Value : CP="CAO PSA OUR"
>
Hope that will help some one.
Johnny
>
On 26 mar, 16:45, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:
>
>
>

Quote:

Originally Posted by

Hi,


>

Quote:

Originally Posted by

We only have this problem with IIS 6.0.


>

Quote:

Originally Posted by

We configure the p3p.xml and the p3pconfig.xml correctly in the root
domain of our server.
We configured the P3P in the application begin request in
global.asax :
Context.Response.AddHeader("P3P", @."CP=""CAO PSA OUR""");


>

Quote:

Originally Posted by

But the problem persist we have no solution, please tell me if you
find one.


>

Quote:

Originally Posted by

Thanks,
Johnny


>

Quote:

Originally Posted by

On 2 fv, 19:52, "Khafancoder" <khafanco...@.gmail.comwrote:


>

Quote:

Originally Posted by

Quote:

Originally Posted by

Hi guys,


>

Quote:

Originally Posted by

Quote:

Originally Posted by

we are developing a webapplication which let user create their own
virtual website on their real domain.
in other word, users could create their virtual web-sites by this
application and app will recognize each website
by its domain.


>

Quote:

Originally Posted by

Quote:

Originally Posted by

we needed a passport system (like .Net Passport) to identify users in
all of these virtual web-sites (& various domains)
we build this system upon third-party cookies by making request from
each site to passportserver using import script tags.


>

Quote:

Originally Posted by

Quote:

Originally Posted by

now the problem is : IE 6.0, 7.0 won't let the web-applciation to
create thirdparty cookies by default and users have to add passport
server domain to TrustedZone,i heared that p3p could solve this
problem but id don't know how !? should we register our domains in
some database ? is it free ?


>

Quote:

Originally Posted by

Quote:

Originally Posted by

Thanks in advance- Masquer le texte des messages prcdents -


>

Quote:

Originally Posted by

- Afficher le texte des messages prcdents -- Masquer le texte desmessages prcdents -


>
- Afficher le texte des messages prcdents -


Well, I am doing it same way you did on my site
Response.AddHeader("P3P", @."CP=\"CAO PSA OUR\"");

And nothing gets removed by IIS. I have IIS 6.0 on Win2003

I was a bit confused when you said it's not working but had no idea why. You
can download tool called fiddler (www.fiddlertool.com/ )
This is Microsoft tool to spy on browser requests and watch what is actually
your server sends to browser (or vise versa)

George

"JohnnyKnoblauch" <jknoblauch@.ttinteractive.comwrote in message
news:1175002706.897361.89220@.b75g2000hsg.googlegro ups.com...
Hi Everybody,

The HTTP HEADERS were remove by IIS 6.0.

To solve the problem go to :
1) Properties on the web root
2) Click HTTP HEADERS tab
3) Custom Headers panel
4) Click Add...
Key : P3P
Value : CP="CAO PSA OUR"

Hope that will help some one.
Johnny

On 26 mar, 16:45, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:

Quote:

Originally Posted by

Hi,
>
We only have this problem with IIS 6.0.
>
We configure the p3p.xml and the p3pconfig.xml correctly in the root
domain of our server.
We configured the P3P in the application begin request in
global.asax :
Context.Response.AddHeader("P3P", @."CP=""CAO PSA OUR""");
>
But the problem persist we have no solution, please tell me if you
find one.
>
Thanks,
Johnny
>
On 2 fv, 19:52, "Khafancoder" <khafanco...@.gmail.comwrote:
>
>
>

Quote:

Originally Posted by

Hi guys,


>

Quote:

Originally Posted by

we are developing a webapplication which let user create their own
virtual website on their real domain.
in other word, users could create their virtual web-sites by this
application and app will recognize each website
by its domain.


>

Quote:

Originally Posted by

we needed a passport system (like .Net Passport) to identify users in
all of these virtual web-sites (& various domains)
we build this system upon third-party cookies by making request from
each site to passportserver using import script tags.


>

Quote:

Originally Posted by

now the problem is : IE 6.0, 7.0 won't let the web-applciation to
create thirdparty cookies by default and users have to add passport
server domain to TrustedZone,i heared that p3p could solve this
problem but id don't know how !? should we register our domains in
some database ? is it free ?


>

Quote:

Originally Posted by

Thanks in advance- Masquer le texte des messages prcdents -


>
- Afficher le texte des messages prcdents -

Third-Part Cookies blocked by IE

Hi guys,
we are developing a webapplication which let user create their own
virtual website on their real domain.
in other word, users could create their virtual web-sites by this
application and app will recognize each website
by its domain.
we needed a passport system (like .Net Passport) to identify users in
all of these virtual web-sites (& various domains)
we build this system upon third-party cookies by making request from
each site to passportserver using import script tags.
now the problem is : IE 6.0, 7.0 won't let the web-applciation to
create thirdparty cookies by default and users have to add passport
server domain to TrustedZone,i heared that p3p could solve this
problem but id don't know how !? should we register our domains in
some database ? is it free ?
Thanks in advanceHi,
We only have this problem with IIS 6.0.
We configure the p3p.xml and the p3pconfig.xml correctly in the root
domain of our server.
We configured the P3P in the application begin request in
global.asax :
Context.Response.AddHeader("P3P", @."CP=3D""CAO PSA OUR""");
But the problem persist we have no solution, please tell me if you
find one.
Thanks,
Johnny
On 2 f=E9v, 19:52, "Khafancoder" <khafanco...@.gmail.com> wrote:
> Hi guys,
> we are developing a webapplication which let user create their own
> virtual website on their real domain.
> in other word, users could create their virtual web-sites by this
> application and app will recognize each website
> by its domain.
> we needed a passport system (like .Net Passport) to identify users in
> all of these virtual web-sites (& various domains)
> we build this system upon third-party cookies by making request from
> each site to passportserver using import script tags.
> now the problem is : IE 6.0, 7.0 won't let the web-applciation to
> create thirdparty cookies by default and users have to add passport
> server domain to TrustedZone,i heared that p3p could solve this
> problem but id don't know how !? should we register our domains in
> some database ? is it free ?
> Thanks in advance
Hi Everybody,
The HTTP HEADERS were remove by IIS 6.0.
To solve the problem go to :
1) Properties on the web root
2) Click HTTP HEADERS tab
3) Custom Headers panel
4) Click Add...
Key : P3P
Value : CP=3D"CAO PSA OUR"
Hope that will help some one.
Johnny
On 26 mar, 16:45, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:
> Hi,
> We only have this problem with IIS 6.0.
> We configure the p3p.xml and the p3pconfig.xml correctly in the root
> domain of our server.
> We configured the P3P in the application begin request in
> global.asax :
> Context.Response.AddHeader("P3P", @."CP=3D""CAO PSA OUR""");
> But the problem persist we have no solution, please tell me if you
> find one.
> Thanks,
> Johnny
> On 2 f=E9v, 19:52, "Khafancoder" <khafanco...@.gmail.com> wrote:
>
>
>
>
>
>
> - Afficher le texte des messages pr=E9c=E9dents -
Better, just look at this url : http://support.microsoft.com/kb/324013/en-us
On 27 mar, 15:38, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:
> Hi Everybody,
> The HTTP HEADERS were remove by IIS 6.0.
> To solve the problem go to :
> 1) Properties on the web root
> 2) Click HTTP HEADERS tab
> 3) Custom Headers panel
> 4) Click Add...
> Key : P3P
> Value : CP=3D"CAO PSA OUR"
> Hope that will help some one.
> Johnny
> On 26 mar, 16:45, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
messages pr=E9c=E9dents -
> - Afficher le texte des messages pr=E9c=E9dents -
Well, I am doing it same way you did on my site
Response.AddHeader("P3P", @."CP=\"CAO PSA OUR\"");
And nothing gets removed by IIS. I have IIS 6.0 on Win2003
I was a bit when you said it's not working but had no idea why. You
can download tool called fiddler (www.fiddlertool.com/ )
This is Microsoft tool to spy on browser requests and watch what is actually
your server sends to browser (or vise versa)
George
"JohnnyKnoblauch" <jknoblauch@.ttinteractive.com> wrote in message
news:1175002706.897361.89220@.b75g2000hsg.googlegroups.com...
Hi Everybody,
The HTTP HEADERS were remove by IIS 6.0.
To solve the problem go to :
1) Properties on the web root
2) Click HTTP HEADERS tab
3) Custom Headers panel
4) Click Add...
Key : P3P
Value : CP="CAO PSA OUR"
Hope that will help some one.
Johnny
On 26 mar, 16:45, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:
> Hi,
> We only have this problem with IIS 6.0.
> We configure the p3p.xml and the p3pconfig.xml correctly in the root
> domain of our server.
> We configured the P3P in the application begin request in
> global.asax :
> Context.Response.AddHeader("P3P", @."CP=""CAO PSA OUR""");
> But the problem persist we have no solution, please tell me if you
> find one.
> Thanks,
> Johnny
> On 2 fv, 19:52, "Khafancoder" <khafanco...@.gmail.com> wrote:
>
>
>
>
>
>
> - Afficher le texte des messages prcdents -