Home All Groups Group Topic Archive Search About

Need bin directory in my web to add httpmodule

Author
6 Sep 2006 10:43 PM
JJA
I'm trying to implement global unhandled exception handling with an
HTTPModule as described at
http://www.codeproject.com/aspnet/ASPNETExceptionHandling.asp.

I've downloaded and looked at the demo solution which creates a .dll in
its \bin folder and now I am wanting to follow the instruction that
says:

"...means you can retrofit unhandled exception handling to any ASP.NET
website with ease -- just copy the ASPUnhandledException.dll file to
the \bin folder".

BUT - my website does not have a \bin folder (even when I click "show
all files").

When I try to create one manually via clicking "add ASP.NET folder", it
creates one but then I try to copy in the ASPUnhandledException.dll
from the \bin in the demo solution to the bin folder in the website and
I get this error message:

"The source files for this operation cannot be found in this solution".


My web site is in progress but I have run it many times. Why would I
not have a \bin folder? How can I create one that I can then add this
..dll to it.

Author
7 Sep 2006 12:48 AM
Jon Paal
just open windows explorer, navigate to the website root and create a folder called "bin"
paste the dll into the bin folder


Show quoteHide quote
"JJA" <jo***@cbmiweb.com> wrote in message news:1157582636.649494.167880@b28g2000cwb.googlegroups.com...
> I'm trying to implement global unhandled exception handling with an
> HTTPModule as described at
> http://www.codeproject.com/aspnet/ASPNETExceptionHandling.asp.
>
> I've downloaded and looked at the demo solution which creates a .dll in
> its \bin folder and now I am wanting to follow the instruction that
> says:
>
> "...means you can retrofit unhandled exception handling to any ASP.NET
> website with ease -- just copy the ASPUnhandledException.dll file to
> the \bin folder".
>
> BUT - my website does not have a \bin folder (even when I click "show
> all files").
>
> When I try to create one manually via clicking "add ASP.NET folder", it
> creates one but then I try to copy in the ASPUnhandledException.dll
> from the \bin in the demo solution to the bin folder in the website and
> I get this error message:
>
> "The source files for this operation cannot be found in this solution".
>
>
> My web site is in progress but I have run it many times. Why would I
> not have a \bin folder? How can I create one that I can then add this
> .dll to it.
>
Are all your drivers up to date? click for free checkup

Author
7 Sep 2006 1:35 AM
Karl Seguin [MVP]
If you are using 2005, simply right click on your project, pick "add
Reference", browse to the DLL, and click on it. That should automatically
copy the dll to your bin folder when you run/compile.

Karl

Show quoteHide quote
"JJA" <jo***@cbmiweb.com> wrote in message
news:1157582636.649494.167880@b28g2000cwb.googlegroups.com...
> I'm trying to implement global unhandled exception handling with an
> HTTPModule as described at
> http://www.codeproject.com/aspnet/ASPNETExceptionHandling.asp.
>
> I've downloaded and looked at the demo solution which creates a .dll in
> its \bin folder and now I am wanting to follow the instruction that
> says:
>
> "...means you can retrofit unhandled exception handling to any ASP.NET
> website with ease -- just copy the ASPUnhandledException.dll file to
> the \bin folder".
>
> BUT - my website does not have a \bin folder (even when I click "show
> all files").
>
> When I try to create one manually via clicking "add ASP.NET folder", it
> creates one but then I try to copy in the ASPUnhandledException.dll
> from the \bin in the demo solution to the bin folder in the website and
> I get this error message:
>
> "The source files for this operation cannot be found in this solution".
>
>
> My web site is in progress but I have run it many times. Why would I
> not have a \bin folder? How can I create one that I can then add this
> .dll to it.
>
Author
7 Sep 2006 3:30 PM
JJA
Thanks guys. I tried both your suggestions and this worked fine.

I introduced an unhandled error in my Page_Load sub in my default.aspx
and this exception handler kicked in a worked beautifully.

Bookmark and Share