Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Correct syntax in web.config (EventMappings-tag)

Reply
Thread Tools

Correct syntax in web.config (EventMappings-tag)

 
 
K Viltersten
Guest
Posts: n/a
 
      07-21-2009
I see in my web.config that i have the following
passage.

<eventMappings>
<add
name="All Errors"
type="System.Web.Management.WebBaseErrorEvent"
startEventCode="0"
endEventCode="2147483647"/>
...

It has been suggested to me that i might want to
rewrite it to the following form.

<add
name="All Errors"
type="System.Web.Management.WebBaseErrorEvent,
System.Web,
Version=2.0.0.0,
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
startEventCode="0"
endEventCode="2147483647"/>

While i have no problems adapting to the other
way, i'm reluctant to the idea of putting in
things not neccessary. How crucial is the extra
information that i've been omiting this far?

--
Regards
K Viltersten
----------------------------------------
May all spammers die an agonizing death;
have no burial places; their souls be
chased by demons in Gehenna from one room
to another for all eternity and beyond.

 
Reply With Quote
 
 
 
 
Coskun Sunali [MVP]
Guest
Posts: n/a
 
      07-22-2009
Hi Viltersten,

There is no difference between two of the configurations. They will work the
same way. The only change is that, in the second example, you explicitly set
what assembly contains the System.Web.Management.WebBaseErrorEvent class.

The idea behind setting it explicitly is coming over the ambiguity problems
you may have if the same namespace-class couple is found in another
assembly.

Hope it helps.

--
Coskun Sunali
Microsoft MVP - ASP.NET
http://sunali.com
http://propeople.dk

"K Viltersten" <> wrote in message
news:...
> I see in my web.config that i have the following passage.
>
> <eventMappings>
> <add name="All Errors"
> type="System.Web.Management.WebBaseErrorEvent"
> startEventCode="0" endEventCode="2147483647"/>
> ...
>
> It has been suggested to me that i might want to
> rewrite it to the following form.
>
> <add name="All Errors" type="System.Web.Management.WebBaseErrorEvent,
> System.Web, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a" startEventCode="0"
> endEventCode="2147483647"/>
>
> While i have no problems adapting to the other way, i'm reluctant to the
> idea of putting in
> things not neccessary. How crucial is the extra
> information that i've been omiting this far?
>
> --
> Regards
> K Viltersten
> ----------------------------------------
> May all spammers die an agonizing death;
> have no burial places; their souls be
> chased by demons in Gehenna from one room
> to another for all eternity and beyond.
>

 
Reply With Quote
 
 
 
 
K Viltersten
Guest
Posts: n/a
 
      07-24-2009
Got it. Thanks!

--

Regards
Konrad Viltersten
--------------------------------
May all spammers die an agonizing death;
have no burial places; their souls be
chased by demons in Gehenna from one room
to another for all eternity and beyond.







> There is no difference between two of the configurations. They will work
> the same way. The only change is that, in the second example, you
> explicitly set what assembly contains the
> System.Web.Management.WebBaseErrorEvent class.
>
> The idea behind setting it explicitly is coming over the ambiguity
> problems you may have if the same namespace-class couple is found in
> another assembly.
>
> Hope it helps.
>
> --
> Coskun Sunali
> Microsoft MVP - ASP.NET
> http://sunali.com
> http://propeople.dk
>
> "K Viltersten" <> wrote in message
> news:...
>> I see in my web.config that i have the following passage.
>>
>> <eventMappings>
>> <add name="All Errors"
>> type="System.Web.Management.WebBaseErrorEvent"
>> startEventCode="0" endEventCode="2147483647"/>
>> ...
>>
>> It has been suggested to me that i might want to
>> rewrite it to the following form.
>>
>> <add name="All Errors" type="System.Web.Management.WebBaseErrorEvent,
>> System.Web, Version=2.0.0.0, Culture=neutral,
>> PublicKeyToken=b03f5f7f11d50a3a" startEventCode="0"
>> endEventCode="2147483647"/>
>>
>> While i have no problems adapting to the other way, i'm reluctant to the
>> idea of putting in
>> things not neccessary. How crucial is the extra
>> information that i've been omiting this far?




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
simulation result is correct but synthesis result is not correct J.Ram VHDL 7 12-03-2008 01:26 PM
Uploaded File Empty but in correct folder with correct name froil Perl Misc 12 03-02-2006 01:21 PM
Correct White Balance Doesn't Mean Correct Color?? jim evans Digital Photography 28 12-27-2005 05:10 AM
correct or not correct? Dan HTML 7 10-02-2003 10:16 PM
To correct my program. please, check to find errors and correct me. joon Java 1 07-08-2003 06:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57