Lakini nyingine kupokea Tukio Ondoa Hitialfu hila

I’m sure I’m not the first person to come up with this. Hata hivyo, I haven’t noticed anyone publish a trick like this since I started paying close attention to the community last July. Hivyo, Nilidhani ningependa baada ya kuwa hii haraka na rahisi Debug ncha.

Mimi nina kazi ya receiver tukio hilo kuwa ilianza kuzalisha kosa hili katika 12 mzinga:

Hitilafu ya upakiaji na mbio tukio receiver Conchango.xyzzyEventReceiver katika xyzzy, Version = 1.0.0.0, Utamaduni = neutral, PublicKeyToken = blahbalhbalh. Additional information is below. : Kitu kumbukumbu si kuweka mfano wa kitu.

I didn’t know where I had introduced this bug because I had done too many things in one of my code/deploy/test cycles.

Nilijaribu ufumbuzi huu kupata PDB yangu katika huko pamoja na matumaini kwamba SharePoint ya 12 mzinga bila kuonyesha mpororo, but no luck. I don’t know if it’s possible and if someone does, tafadhali napenda kujua 🙂

Najua inawezekana kuandika ujumbe yako mwenyewe logi kwa 12 mzinga. Frankly, Nilitaka kitu kidogo kidogo inatisha na wepesi kutekeleza.

Ilitokea kwangu kwamba mimi naweza angalau kupata baadhi ya msingi kuwaeleza habari na kuambukizwa na re-kutupa isipokuwa generic kama hii:

  kujaribu {
    UpdateEditionDate(mali);
  }
  kukamata (Ubaguzi e)
  {
    kutupa mpya Ubaguzi("Dispatcher, UpdateEditionDate(): Ubaguzi: [" + e.ToString() + "].");
  }

Hii ilionyesha juu katika 12 mzinga thusly:

Hitilafu ya upakiaji na mbio tukio receiver Conchango.xyzzyEventReceiver katika xyzzy, Version = 1.0.0.0, Utamaduni = neutral, PublicKeyToken = blahblahblah. Additional information is below. : Dispatcher, UpdateEditionDate(): Ubaguzi: [System.NullReferenceException: Kitu kumbukumbu si kuweka mfano wa kitu. at Conchango.xyzzyManagementEventReceiver.UpdateEditionDate(SPItemEventProperties mali) at Conchango.xyzzyManagementEventReceiver.Dispatcher(SPItemEventProperties mali, Kamba eventDescription)].

Kwamba alinipa undani wote mimi zinahitajika kufuatilia kwamba tatizo fulani na mimi kutarajia matumizi yake mengi kwenda mbele.

</mwisho>

Kujiunga na blog yangu!

3 mawazo juu ya "Lakini nyingine kupokea Tukio Ondoa Hitialfu hila

  1. Anders Rask
    Mimi nilikuwa na mengi ya bahati siku za hivi karibuni debugging aina hii ya masuala na mchanganyiko wa SPTraceView na DebugView
    Debugview peke yake ni sana usefull pamoja. Unaweza bomba nje pato kutumia System.Diagnostics.Debug.WriteLine().
    Huna hata kuwa na kuondoa yao wakati wewe kutolewa kujenga, tangu pato tu ni yalisababisha katika Debug mode kujenga.
    SPTraceView is a tool created by Hristo Pavlov.
    Saa default yake kuweka itakuwa kuonyesha ULS matukio kuwaeleza yanapotokea. Na upatikanaji wa samaki pia ULS kuwaeleza matukio ambayo * haina * kufanya hivyo kwa logi uchunguzi!
    Lakini kwamba i afya haraka kama i kukimbia util. Whats bora zaidi ni kwamba unaweza bomba pato show up katika DebugView.
    Pia ina mengi ya makala nzuri kwa ajili ya kuchuja katika ngazi ya tukio, huduma nk.
    HTH
    Anders
    oh and nice seeing you in the bar at SPBP 🙂
    Kujibu

Kuondoka Reply

Anwani yako si kuchapishwa. Mashamba required ni alama *