473,468 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

HTTPModule breaks debugging. Help!

Hi guys

I'm working on a web app in VS2005 (.net 2.0.50727). All is working fine,
except when I add a HTTPModule to my web.config file, as follows...

<httpModules>
<add name="UrlRewrite" type="UrlRewrite" />
</httpModules>

If I do that, I get a really huge dialog box which basically says "Unable to
start debugging on the web server" followed by the page code of one of the
"Server error in application" pages. However, it's so long, I can't see what
that error is.

My HTTPModule compiles fine, and all code / vs / webserver is the same
machine.

I'm sure it's something silly, but I've no idea what...?!

Help appreciated, thanks!
Dan
Jul 8 '08 #1
4 2653
make sure that you don't rewrite requests for get_aspx_ver.aspx

"musosdev" <mu*******@community.nospamwrote in message
news:F3**********************************@microsof t.com...
Hi guys

I'm working on a web app in VS2005 (.net 2.0.50727). All is working fine,
except when I add a HTTPModule to my web.config file, as follows...

<httpModules>
<add name="UrlRewrite" type="UrlRewrite" />
</httpModules>

If I do that, I get a really huge dialog box which basically says "Unable
to
start debugging on the web server" followed by the page code of one of the
"Server error in application" pages. However, it's so long, I can't see
what
that error is.

My HTTPModule compiles fine, and all code / vs / webserver is the same
machine.

I'm sure it's something silly, but I've no idea what...?!

Help appreciated, thanks!
Dan

Jul 8 '08 #2
No rewriting occurs, I've commented out all the rewrite code, and still the
act of adding the HTTPModule in web.config breaks debugging. :(

.............?

"gerry" wrote:
make sure that you don't rewrite requests for get_aspx_ver.aspx

"musosdev" <mu*******@community.nospamwrote in message
news:F3**********************************@microsof t.com...
Hi guys

I'm working on a web app in VS2005 (.net 2.0.50727). All is working fine,
except when I add a HTTPModule to my web.config file, as follows...

<httpModules>
<add name="UrlRewrite" type="UrlRewrite" />
</httpModules>

If I do that, I get a really huge dialog box which basically says "Unable
to
start debugging on the web server" followed by the page code of one of the
"Server error in application" pages. However, it's so long, I can't see
what
that error is.

My HTTPModule compiles fine, and all code / vs / webserver is the same
machine.

I'm sure it's something silly, but I've no idea what...?!

Help appreciated, thanks!
Dan


Jul 8 '08 #3
can you run it without debugging ?
"musosdev" <mu*******@community.nospamwrote in message
news:D8**********************************@microsof t.com...
No rewriting occurs, I've commented out all the rewrite code, and still
the
act of adding the HTTPModule in web.config breaks debugging. :(

............?

"gerry" wrote:
>make sure that you don't rewrite requests for get_aspx_ver.aspx

"musosdev" <mu*******@community.nospamwrote in message
news:F3**********************************@microso ft.com...
Hi guys

I'm working on a web app in VS2005 (.net 2.0.50727). All is working
fine,
except when I add a HTTPModule to my web.config file, as follows...

<httpModules>
<add name="UrlRewrite" type="UrlRewrite" />
</httpModules>

If I do that, I get a really huge dialog box which basically says
"Unable
to
start debugging on the web server" followed by the page code of one of
the
"Server error in application" pages. However, it's so long, I can't see
what
that error is.

My HTTPModule compiles fine, and all code / vs / webserver is the same
machine.

I'm sure it's something silly, but I've no idea what...?!

Help appreciated, thanks!
Dan



Jul 8 '08 #4
Hi Gerry,

I can run it without debugging. That gave me a proper error message, which
was in fact very helpful.

Apparently, the way the web.config works has changed in relation to IIS7
(I'm running on Vista).

Adding the UrlRewrite module in the <server.webServersection as seems to
have cured the problem.

Thanks,
Dan

"gerry" wrote:
can you run it without debugging ?
"musosdev" <mu*******@community.nospamwrote in message
news:D8**********************************@microsof t.com...
No rewriting occurs, I've commented out all the rewrite code, and still
the
act of adding the HTTPModule in web.config breaks debugging. :(

............?

"gerry" wrote:
make sure that you don't rewrite requests for get_aspx_ver.aspx

"musosdev" <mu*******@community.nospamwrote in message
news:F3**********************************@microsof t.com...
Hi guys

I'm working on a web app in VS2005 (.net 2.0.50727). All is working
fine,
except when I add a HTTPModule to my web.config file, as follows...

<httpModules>
<add name="UrlRewrite" type="UrlRewrite" />
</httpModules>

If I do that, I get a really huge dialog box which basically says
"Unable
to
start debugging on the web server" followed by the page code of one of
the
"Server error in application" pages. However, it's so long, I can't see
what
that error is.

My HTTPModule compiles fine, and all code / vs / webserver is the same
machine.

I'm sure it's something silly, but I've no idea what...?!

Help appreciated, thanks!
Dan


Jul 9 '08 #5

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

Similar topics

10
by: Girish | last post by:
Ok, Ive been thinking about this problem for a while. I have 30 odd aspx pages (already built) on my website that I need to have some validation occur before the page should load. The validation...
2
by: msnews.microsoft.com | last post by:
I have a VB.NET project in VS.NET that isn't stopping on any breaks. I have debug mode configured: asp.net debugging checked. Any idea how to get breaks to work again? -Max
1
by: Ryan Cromwell | last post by:
I have written an httpModule for use in our test environment. If a user goes to http://testserver/SomeApplication/MyPage.aspx it will resolve to the latest version of that application deployed:...
7
by: nail | last post by:
Folks, I develop a HttpModule and it works correct, but one problem is occurs. After I register the httpmodule in the web.config, my pages (not testing http://localhost/site but...
4
by: Danny W | last post by:
Hi There! Is it possible to use HttpModule to replace the built-in ASP.NET Session object? I want to write a HttpModule that will handle storing and retrieving of session values from an external...
2
by: Simon-Pierre Jarry | last post by:
Hi, I created a custom HttpModule for managing the security of my application. in "Init" sub, I regsiter the events doing that : Public Sub Init(ByVal context As System.Web.HttpApplication)...
2
by: walter | last post by:
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug...
1
by: =?Utf-8?B?TmF2YW5lZXRoLksuTg==?= | last post by:
Hello, I am designing a HTTPModule that tracks and logs all pages visited by user. I am succeeded in that. Now to provide much better experience for the person who monitor's these logs, I need...
2
by: Jimi Schacht | last post by:
ok, so, i've got a web project in c#. I'm using IIS instead of dev server. The application builds fine until I add an httpmodule I intend to use for URL rewriting and it's entry in the web.config....
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.