A first chance exception of type 'System.Net.WebException' occurred in System.dll

1,541 views
Skip to first unread message

devm...@hotmail.com

unread,
Jan 8, 2012, 7:05:41 AM1/8/12
to rav...@googlegroups.com
Hi, 
i have lately noticed that my debugging is so slow to start up, then i tried to enable all messages in Output window in VS and i found that maybe 50 or 60 of this message is showing up, i have tried to create 2 identical project, one with RavenDB and the other without it, and have noticed that the one without Raven DB is debugging fast normally and don't have those messages, so am i doing something wrong ?

Oren Eini (Ayende Rahien)

unread,
Jan 8, 2012, 7:40:35 AM1/8/12
to rav...@googlegroups.com
Those are things that are handled internally, for example, checking if replication is enabled, etc.

devm...@hotmail.com

unread,
Jan 8, 2012, 9:14:22 AM1/8/12
to rav...@googlegroups.com
thank you Ayende, 
but why it is slowing down debugging initialization ?

Oren Eini (Ayende Rahien)

unread,
Jan 9, 2012, 12:06:16 PM1/9/12
to rav...@googlegroups.com
Probably because you are marked that as stop on there, or something like that

devm...@hotmail.com

unread,
Jan 9, 2012, 3:59:29 PM1/9/12
to rav...@googlegroups.com
thank you for keeping answering my questions, 
but i dont understand what you mean by marked as stop there? 
i have no break points at all.

Itamar Syn-Hershko

unread,
Jan 9, 2012, 5:45:16 PM1/9/12
to rav...@googlegroups.com
What is your setup, and what are those errors?

Usually just writing those notices on screen (in the output window) takes most of the time, perhaps this is what you are experiencing?

devm...@hotmail.com

unread,
Jan 10, 2012, 8:31:23 AM1/10/12
to rav...@googlegroups.com
Itmar, 
tanks for replying,
my setup is ASP MVC 3 Project, RaenDB from Nuget,

i disabled those messages from output window, but still everything is so slow, usually wen i refresh a webpage or want to it break point it is so fast, now it takes 15 to 20 seconds.

devm...@hotmail.com

unread,
Jan 10, 2012, 8:33:27 AM1/10/12
to rav...@googlegroups.com
it seems that the break point or page refresh wont happen until all those exceptions are written or done being parsed by debugger, so i think the slowness is caused by ravendb?

Oren Eini (Ayende Rahien)

unread,
Jan 10, 2012, 10:32:04 AM1/10/12
to rav...@googlegroups.com
Not likely, go to the exception dialog (ctrl+alt+e) and check what is marked there (you can uncheck all), it shouldhelp

devm...@hotmail.com

unread,
Jan 10, 2012, 6:11:43 PM1/10/12
to rav...@googlegroups.com
Ayende thanks for the tip, i never knew about it, but still any operation related to Raven will slow down the debugger, i have set a break into debugger on the web exception and found this is is the message:

The remote server returned an error: (304) Not Modified.

and why my app debugging is slow, it is because i inject Ravensession into the base controller like RacoonBlog, so basically any operation on my site will trigger this exception.

Itamar Syn-Hershko

unread,
Jan 10, 2012, 6:16:42 PM1/10/12
to rav...@googlegroups.com
That shouldn't really matter, injection isn't that expensive. The 304 is triggered by some Load or Query operation, probably more than one, that you are doing my guess is in the base controller. You should probably consider moving it out of there or using aggressive caching

Also, we don't do injection anymore in RaccoonBlog, see:

devm...@hotmail.com

unread,
Jan 11, 2012, 11:35:47 PM1/11/12
to rav...@googlegroups.com
Itmar, 
thank you so much for always giving me hints and possible solutions, 
yes i am doing it in the controller, i will look into the links and do it per your advice 

Reply all
Reply to author
Forward
0 new messages