httpmodule causes VS.NET to refuse to open solution!

  • Thread starter Thread starter Peter Row
  • Start date Start date
P

Peter Row

Hi,

Just in case anyone else has the following issue (unlikely but you never
know) here is the solution I eventually found after I was threatening myself
with a wipe and reload of my laptop.

VB6 to VB.NET web project Port.
We wanted all the code to run under .NET
However we use an ISAPI filter. According to posts my Microsoft bods it is
not possible to write these in .NET.
But it is as long as your ISAPI filter isn't that complex - with a few
drawbacks.

First off create a class that implements IHttpModule and setup the
appropriate bits in web.config.
Next in IIS add a mapping of *.* to be processed by the ASP.NET DLL. This is
done because usually things like
CSS and JPEGs etc... don't get processed by ASP.NET

In inQuire2.NET's case we could have URLs requested like:
http://www.mysite.com/res/3/mystyle.css
Before in inQuire2.COM+ the ISAPI filter would kick in and do a redirect to
another page that would actually
cause the file mystyle.css to be fetched out of the database.

But now with the HttpModule it receives a request as the above and without
redirecting gets the file and returns it.
So hence you have a speed increase because theres no redirect going on and
it's managed code so it can be debugged easily.

Drawback time !
1) The *.* mapping makes the setting of a default document for the site
pointless because this never reachs the site or gets used.

But the big time wasting killer is.....

2) If you close VS.NET 2002/3 and then try to reopen the project it will
then complain that the locations of http://localhost/yoursite and
c:\usr\mysite don't point to the same location even though they do and you
haven't changed anything. The reason for this is because of the *.* mapping
above screwing up .NET's wacky offline cache handshake stuff.

So to get around it you have to remove the *.* mapping before opening the
project, having opened it you can then add it back in.

Bye,
Peter Row
Oxford Computer Consultants Ltd
2 Cambridge Terrace
OXFORD
OX1 1RR

phone: 01865 793077
fax: 01865 793124
email: (e-mail address removed)
 
Your post went unanswered. Have you resolved this issue? If you still need
help, please post the original question with your request.
 
Hi,

You again, are you trying to flame all my posts or something?

My post was a solution to a problem which I restated in the same post!!!
It was in fact the solution to one of my other messages with the subject:

"F**KING BA****D VS.2003!!!! Can no longer open web project!!!! urgent help
needed"

Your response is pointless.
If you haven't got anything useful to say don't say anything.

Regards,
Peter

Alvin Bruney said:
Your post went unanswered. Have you resolved this issue? If you still need
help, please post the original question with your request.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Peter Row said:
Hi,

Just in case anyone else has the following issue (unlikely but you never
know) here is the solution I eventually found after I was threatening myself
with a wipe and reload of my laptop.

VB6 to VB.NET web project Port.
We wanted all the code to run under .NET
However we use an ISAPI filter. According to posts my Microsoft bods it is
not possible to write these in .NET.
But it is as long as your ISAPI filter isn't that complex - with a few
drawbacks.

First off create a class that implements IHttpModule and setup the
appropriate bits in web.config.
Next in IIS add a mapping of *.* to be processed by the ASP.NET DLL.
This
is
done because usually things like
CSS and JPEGs etc... don't get processed by ASP.NET

In inQuire2.NET's case we could have URLs requested like:
http://www.mysite.com/res/3/mystyle.css
Before in inQuire2.COM+ the ISAPI filter would kick in and do a redirect to
another page that would actually
cause the file mystyle.css to be fetched out of the database.

But now with the HttpModule it receives a request as the above and without
redirecting gets the file and returns it.
So hence you have a speed increase because theres no redirect going on and
it's managed code so it can be debugged easily.

Drawback time !
1) The *.* mapping makes the setting of a default document for the site
pointless because this never reachs the site or gets used.

But the big time wasting killer is.....

2) If you close VS.NET 2002/3 and then try to reopen the project it will
then complain that the locations of http://localhost/yoursite and
c:\usr\mysite don't point to the same location even though they do and you
haven't changed anything. The reason for this is because of the *.* mapping
above screwing up .NET's wacky offline cache handshake stuff.

So to get around it you have to remove the *.* mapping before opening the
project, having opened it you can then add it back in.

Bye,
Peter Row
Oxford Computer Consultants Ltd
2 Cambridge Terrace
OXFORD
OX1 1RR

phone: 01865 793077
fax: 01865 793124
email: (e-mail address removed)
 
Peter,
are you having a bad day? there's no need for this. if your problem was
solved simply say so or ignore the thread

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Peter Row said:
Hi,

You again, are you trying to flame all my posts or something?

My post was a solution to a problem which I restated in the same post!!!
It was in fact the solution to one of my other messages with the subject:

"F**KING BA****D VS.2003!!!! Can no longer open web project!!!! urgent help
needed"

Your response is pointless.
If you haven't got anything useful to say don't say anything.

Regards,
Peter

Alvin Bruney said:
Your post went unanswered. Have you resolved this issue? If you still need
help, please post the original question with your request.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Peter Row said:
Hi,

Just in case anyone else has the following issue (unlikely but you never
know) here is the solution I eventually found after I was threatening myself
with a wipe and reload of my laptop.

VB6 to VB.NET web project Port.
We wanted all the code to run under .NET
However we use an ISAPI filter. According to posts my Microsoft bods
it
is This redirect
to
 
Hi,

Why is there no need for this?

An MVP posting messages for no reason and from the sounds of his replies he
didn't
even read the original post in a thread of 1 message any way.

I guess Kevin Spencer who replied to the message with the subject
"First access to site displays MS junk, why?"
was correct. You are trying to pad your number of posts out.

The original post was a solution to a problem and it said so in the message
as well.
So this response that I'm replying to, made absolutely no sense.

My post may of been brutally frank, but the whole point of MS newsgroups
(as far as I am concerned) is to share knowledge and help people.

So when people reply who obviously didn't read the original post (or if they
did it totally went over there head) and then reply with utter garbage which
is of no use to man nor beast then they should expect a ticking off!!!

There is nothing worse than getting notified of a response to a post by
DeveloperDex only to find the response is no help at all (and doesn't even
try to help).

Regards,
Peter
Alvin Bruney said:
Peter,
are you having a bad day? there's no need for this. if your problem was
solved simply say so or ignore the thread

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Peter Row said:
Hi,

You again, are you trying to flame all my posts or something?

My post was a solution to a problem which I restated in the same post!!!
It was in fact the solution to one of my other messages with the subject:

"F**KING BA****D VS.2003!!!! Can no longer open web project!!!! urgent help
needed"

Your response is pointless.
If you haven't got anything useful to say don't say anything.

Regards,
Peter

Alvin Bruney said:
Your post went unanswered. Have you resolved this issue? If you still need
help, please post the original question with your request.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Hi,

Just in case anyone else has the following issue (unlikely but you never
know) here is the solution I eventually found after I was threatening
myself
with a wipe and reload of my laptop.

VB6 to VB.NET web project Port.
We wanted all the code to run under .NET
However we use an ISAPI filter. According to posts my Microsoft bods
it
is
not possible to write these in .NET.
But it is as long as your ISAPI filter isn't that complex - with a few
drawbacks.

First off create a class that implements IHttpModule and setup the
appropriate bits in web.config.
Next in IIS add a mapping of *.* to be processed by the ASP.NET DLL. This
is
done because usually things like
CSS and JPEGs etc... don't get processed by ASP.NET

In inQuire2.NET's case we could have URLs requested like:
http://www.mysite.com/res/3/mystyle.css
Before in inQuire2.COM+ the ISAPI filter would kick in and do a redirect
to
another page that would actually
cause the file mystyle.css to be fetched out of the database.

But now with the HttpModule it receives a request as the above and without
redirecting gets the file and returns it.
So hence you have a speed increase because theres no redirect going
on
and
it's managed code so it can be debugged easily.

Drawback time !
1) The *.* mapping makes the setting of a default document for the site
pointless because this never reachs the site or gets used.

But the big time wasting killer is.....

2) If you close VS.NET 2002/3 and then try to reopen the project it will
then complain that the locations of http://localhost/yoursite and
c:\usr\mysite don't point to the same location even though they do
and
you
haven't changed anything. The reason for this is because of the *.*
mapping
above screwing up .NET's wacky offline cache handshake stuff.

So to get around it you have to remove the *.* mapping before
opening
the
project, having opened it you can then add it back in.

Bye,
Peter Row
Oxford Computer Consultants Ltd
2 Cambridge Terrace
OXFORD
OX1 1RR

phone: 01865 793077
fax: 01865 793124
email: (e-mail address removed)
 
Actually, it's a much more noble cause than padding numbers. There's no such
thing in the MVP program as padding numbers. I'll take some time here to
address your ignorance.

It's my goal this year to see every question anwsered on the newsgroups I
monitor. Consequently, I look for unanswered emails at least two days old
and respond to them. That I thought yours was a question was a mistake on my
part. I'll exclude replied messages and those originating from Peter Row on
my next sweep.

Still, you have a right to descent because it is a public newsgroup. The
right to be rude is unwelcome though especially if you do not know or
understand the reason behind the action.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Peter Row said:
Hi,

Why is there no need for this?

An MVP posting messages for no reason and from the sounds of his replies he
didn't
even read the original post in a thread of 1 message any way.

I guess Kevin Spencer who replied to the message with the subject
"First access to site displays MS junk, why?"
was correct. You are trying to pad your number of posts out.

The original post was a solution to a problem and it said so in the message
as well.
So this response that I'm replying to, made absolutely no sense.

My post may of been brutally frank, but the whole point of MS newsgroups
(as far as I am concerned) is to share knowledge and help people.

So when people reply who obviously didn't read the original post (or if they
did it totally went over there head) and then reply with utter garbage which
is of no use to man nor beast then they should expect a ticking off!!!

There is nothing worse than getting notified of a response to a post by
DeveloperDex only to find the response is no help at all (and doesn't even
try to help).

Regards,
Peter
Alvin Bruney said:
Peter,
are you having a bad day? there's no need for this. if your problem was
solved simply say so or ignore the thread

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Peter Row said:
Hi,

You again, are you trying to flame all my posts or something?

My post was a solution to a problem which I restated in the same post!!!
It was in fact the solution to one of my other messages with the subject:

"F**KING BA****D VS.2003!!!! Can no longer open web project!!!! urgent help
needed"

Your response is pointless.
If you haven't got anything useful to say don't say anything.

Regards,
Peter

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
Your post went unanswered. Have you resolved this issue? If you
still
need
help, please post the original question with your request.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Hi,

Just in case anyone else has the following issue (unlikely but you never
know) here is the solution I eventually found after I was threatening
myself
with a wipe and reload of my laptop.

VB6 to VB.NET web project Port.
We wanted all the code to run under .NET
However we use an ISAPI filter. According to posts my Microsoft
bods
it
is
not possible to write these in .NET.
But it is as long as your ISAPI filter isn't that complex - with a few
drawbacks.

First off create a class that implements IHttpModule and setup the
appropriate bits in web.config.
Next in IIS add a mapping of *.* to be processed by the ASP.NET DLL.
This
is
done because usually things like
CSS and JPEGs etc... don't get processed by ASP.NET

In inQuire2.NET's case we could have URLs requested like:
http://www.mysite.com/res/3/mystyle.css
Before in inQuire2.COM+ the ISAPI filter would kick in and do a redirect
to
another page that would actually
cause the file mystyle.css to be fetched out of the database.

But now with the HttpModule it receives a request as the above and
without
redirecting gets the file and returns it.
So hence you have a speed increase because theres no redirect
going
on it
will
 
Hi,

Alvin Bruney said:
Actually, it's a much more noble cause than padding numbers. There's no such
thing in the MVP program as padding numbers. I'll take some time here to
address your ignorance.
Fair enough if I am wrong I apologise.
It's my goal this year to see every question anwsered on the newsgroups I
monitor. Consequently, I look for unanswered emails at least two days old
and respond to them. That I thought yours was a question was a mistake on my
part. I'll exclude replied messages and those originating from Peter Row on
my next sweep.
I have to repeat the basis of my annoyance here.
What is the point in replying to a post just to say "I notice you haven't
received a reply, post your question again".
Still, you have a right to descent because it is a public newsgroup. The
right to be rude is unwelcome though especially if you do not know or
understand the reason behind the action.
It depends on how you define being rude.

I think some one responding to my post telling me to post it again and in
doing so getting my hopes up that some one may actually have a solution
to a problem (see my other email you responded to "First access to site
displays MS junk, why?") is just a little bit rude.

So if you have a "have you tried doing XXX" or "I had the same problem
and I fixed it by doing X, Y, Z" response then great, but please don't
do what you did to my last 2 posts as it just gets peoples hopes up for
nothing.

Regards,
Peter
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Peter Row said:
Hi,

Why is there no need for this?

An MVP posting messages for no reason and from the sounds of his replies he
didn't
even read the original post in a thread of 1 message any way.

I guess Kevin Spencer who replied to the message with the subject
"First access to site displays MS junk, why?"
was correct. You are trying to pad your number of posts out.

The original post was a solution to a problem and it said so in the message
as well.
So this response that I'm replying to, made absolutely no sense.

My post may of been brutally frank, but the whole point of MS newsgroups
(as far as I am concerned) is to share knowledge and help people.

So when people reply who obviously didn't read the original post (or if they
did it totally went over there head) and then reply with utter garbage which
is of no use to man nor beast then they should expect a ticking off!!!

There is nothing worse than getting notified of a response to a post by
DeveloperDex only to find the response is no help at all (and doesn't even
try to help).

Regards,
Peter
Alvin Bruney said:
Peter,
are you having a bad day? there's no need for this. if your problem was
solved simply say so or ignore the thread

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Hi,

You again, are you trying to flame all my posts or something?

My post was a solution to a problem which I restated in the same post!!!
It was in fact the solution to one of my other messages with the subject:

"F**KING BA****D VS.2003!!!! Can no longer open web project!!!! urgent
help
needed"

Your response is pointless.
If you haven't got anything useful to say don't say anything.

Regards,
Peter

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
Your post went unanswered. Have you resolved this issue? If you still
need
help, please post the original question with your request.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Hi,

Just in case anyone else has the following issue (unlikely but you
never
know) here is the solution I eventually found after I was threatening
myself
with a wipe and reload of my laptop.

VB6 to VB.NET web project Port.
We wanted all the code to run under .NET
However we use an ISAPI filter. According to posts my Microsoft bods
it
is
not possible to write these in .NET.
But it is as long as your ISAPI filter isn't that complex - with
a
few
drawbacks.

First off create a class that implements IHttpModule and setup the
appropriate bits in web.config.
Next in IIS add a mapping of *.* to be processed by the ASP.NET DLL.
This
is
done because usually things like
CSS and JPEGs etc... don't get processed by ASP.NET

In inQuire2.NET's case we could have URLs requested like:
http://www.mysite.com/res/3/mystyle.css
Before in inQuire2.COM+ the ISAPI filter would kick in and do a
redirect
to
another page that would actually
cause the file mystyle.css to be fetched out of the database.

But now with the HttpModule it receives a request as the above and
without
redirecting gets the file and returns it.
So hence you have a speed increase because theres no redirect
going
on
and
it's managed code so it can be debugged easily.

Drawback time !
1) The *.* mapping makes the setting of a default document for the
site
pointless because this never reachs the site or gets used.

But the big time wasting killer is.....

2) If you close VS.NET 2002/3 and then try to reopen the project it
will
then complain that the locations of http://localhost/yoursite and
c:\usr\mysite don't point to the same location even though they
do
and
you
haven't changed anything. The reason for this is because of the *.*
mapping
above screwing up .NET's wacky offline cache handshake stuff.

So to get around it you have to remove the *.* mapping before opening
the
project, having opened it you can then add it back in.

Bye,
Peter Row
Oxford Computer Consultants Ltd
2 Cambridge Terrace
OXFORD
OX1 1RR

phone: 01865 793077
fax: 01865 793124
email: (e-mail address removed)
 
Back
Top