Peb yuav tsum tau mus ua tsis tau muaj rau tus "CreateSubscription cov" txujci nyob ib SSRS web muab kev pab uas yog hosted hauv ib FBA tswj NTXHUAB ib puag ncig ntawm ib lub qhov web kev cai. Peb tau ceev cia variations ntawm:
- 401: Tsis tso cai
- Kwv tsiv
Cov "kwv tsiv" lus sam twb nthuav ntau vim nws twb hais tias "kwv cov" (peb qhov kev pab SSRS) muaj "tsiv" mus login.aspx. Qhov no qhia meej meant peb muaj tej yam teeb meem authentication.
Pom tau kuv nws thiaj li hais tias kuv muaj bookmarked ib tug nkag teb chaws blog yog Robert Garret uas piav li cas yuav ua tau rau tus muaj lub ntsiab WSS/NTXHUAB web qhov kev pab nyob hauv ib lub chaw kawm FBA. Nco ntsoov tias kuv tsis tau txuas ncaj qha rau tsab xov xwm (li ntawm 06/09/08) vim nws xav authenticate. Qhov kuv muab txuas theem koj rau ib qho "cov posts" saib thiab koj kuj nrhiav ib tsab xov xwm ntawm searching "Accessing NTXHUAB Web pab siv ntaub Based Authentication".
Ntawm no yog cov chaws uas ua haujlwm rau peb:
ReportingService2006 Reye = null; // Authenticate Authentication auth = tshiab Authentication(); Yog hais tias (tshwm sim.ErrorCode == LoginErrorCode.NoError) ua tiag { Reye.CreateSubscription(qhia txog, extSettings, desc, eventType, matchData, parameters1); } ntes (Kos ex) { Console.WriteLine(ex.Message.ToString()); } |
Kuv nkag siab yam hauj lwm zoo li no:
- Peb cov qhov Web site yuav tsum hu mus rau qhov kev pab cuam authentication thiab hais, "Hav, Tony, Nws yog kuv!".
- Authentication qhov replies hais, "Hav, Kuv paub koj. Cov me nyuam no li cas? Ntawm no yog ib token."
- Peb hu tau tuaj rau qhov kev pab cuam SSRS thiab hais, "Tony xa kuv, Nov yog lub token."
</kawg>