Aylıq Arxiv: Fevral 2008

Bazar Funny: “NOT ixrac üçün”

Geri ətrafında 1998, the company I worked for at the time received some funding to create a new e-commerce product. We had the full gamut of business requirements to meet. It had to be fast, son istifadəçilər üçün asan, çığıran, çox dil, və s.. Sad to say, Mən yəqin ki, o sərxoş gündən yerinə yetirmək üçün iş iddialı bir dəst kimi idi yoxdur.

This effort pre-dated Microsoft.NET. Plain vanilla ASP was still somewhat new (mənim şirkət və ya ən çox müəmmalı). "Brick and mortar" companies were doomed. Məhkum! This is to say that it was pioneering work. Not Hadron Collider ilk iş, lakin bizim kiçik dünya, iş öncülük edilib.

We were crazy busy. We were doing mini POC’s almost every day, bir mahiyyət vətəndaşlığı olmayan orta dövlət qorumaq üçün necə figuring, çox dil məsələləri həyata figuring, row-level security. We even had create a vocabulary to define basic terms (Mən dövlət davamlı üstünlük lakin nədənsə, the awkward "statefull" Bu gün qalib).

Biz dəlicəsinə bu məhsul keşfetmeye kimi, the marketing and sales people were out there trying to sell it. Somehow, they managed to sell it to our nightmare scenario. Even though we were designing and implementing an enterprise solution, we really didn’t expect the first customer to use every last feature we built into the product day zero. This customer needed multi-language, a radically different user interface from the "standard" system but with the same business logic. Multi-language was especially hard in this case, biz həmişə ispan və ya fransız diqqət çünki, lakin bu halda, o Çin idi (Hansı istifadə olunan texnologiya verilmiş bir cüt bayt character set və xüsusi rəftar edir).

Fast forward a few months and I’m on a Northwest airlines flight to Beijing. I’ve been so busy preparing for this trip that I have almost no idea what it’s like to go there. I had read a book once about how an American had been in China for several years and had learned the language. One day he was walking the city and asked some people for directions. The conversation went something this:

  • Amerika: "Could you tell me how to get to [XX] küçə?"
  • Çin: "Sorry, we don’t speak English".
  • Amerika: "Oh, yaxşı mən Mandarin danışmaq." və Çin dilində yenidən xahiş, lakin daha dəqiq (o ola bilər ki, ən yaxşı).
  • Çin: Çox nəzakətlə, "Sorry, we don’t speak English".

The conversation went on like that for bit and the American gave up in frustration. As he was leaving them he overheard one man speaking to the other, "I could have sworn he was asking for directions to [XX] küç."

I had picked up a few bits and pieces of other China-related quasi-information and "helpful advice":

  • A Korean co-worked told me that the I needed to be careful of the Chinese because "they would try to get me drunk and take advantage of you" pis iş qərarlar məni təzyiq hissi ilə.
  • Biz avtomobil idarə etmək buraxılmayıblar (Bu xüsusi olub üçün bir çaşqınlıq var idi, hüquqi tələb və ya müştərinin qayda).
  • Gömrük yaşayır üçün xüsusi qaydalar var idi.
  • Biz bir şey Amerika pul istifadə buraxılmayıblar.
  • You’re not supposed to leave tips. It’s insulting if you do.

Və nəhayət,, Mən nisbətən təzə xatirələr də var Tiananmen soyqırımı. When I was at college, I remember seeing real-time Usenet postings as the world looked on in horror.

Qısa, I was very nervous. I wasn’t just normal-nervous in the sense that I was delivering a solution that was orders of magnitude more complicated than anything I had ever done before. I was also worried about accidentally breaking a rule that could get me in trouble.

Bu barədə Ben 14 saat uçuş və biznes sinif idi, 14 saat damned uzun vaxt. Okuyarak özünüzü əyləndirmək üçün yalnız bir çox yolu var, watching movies or playing with the magnetized cutlery. Even a really good book is hard to read for several hours straight.

Nəhayət, Mən proqram bir parça üzrə qablaşdırma materialı oxumaq üçün açılmış Mən müştəri üçün mənə əl balans idi, Netscape’s web server. I’m reading the hardware/software requirements, marketinq blurbs, Þirin şəkil baxan və birdən-birə, I zero in on the giant "NOT FOR EXPORT" xəbərdarlıq, haqqında bir şey 128 bit encryption. I stuffed the box back into my carry bag, üz-aşağı xəbərdarlıq (oldu ki, guya) və fikirlərin saxlamağa cəhd Midnight Express out of my head.

İndi geri Axtarıram, Mən narahat olmalı, əgər, ABŞ gedəndə, not when I was entering China 🙂 Nothing untoward happened and I still consider that to be the best and most memorable business trip I’ve had the pleasure of making.

</son>

Blog abunə!

Technorati Tags: ,

Həll: SPQuery Qovluq Axtar Vermiyor

This past week I was implementing an "evolving" solution for a client that uses BDC and SPQuery and ran into some difficulty using SPQuery against a document library containing folders. Aşağı xətt: assign "recursive" sorğu baxımından özelliğe.

Mənim ssenari:

  • Bazar ertəsi, Mən bir sənəd yüklə və bir meta data təchiz.
  • Aşağıdakı həftə, I upload a new document. Much of this new document’s meta data is based on the document I uploaded on Monday (which we call the "master document").
  • Istifadəçilər asanlıqla bir mövzu axtarış vasitəsilə ki, bazar ertəsi sənəd tapa bilərsiniz, belə ki, biz siyahısına BDC dostu interfeysi təmin edən bir web service fasad yaratdığınız.
  • A BDC data column provides a friendly user interface. (Bu daha çox dostluq Axtarış sütun üçün BDC istifadə edərək, mənim cəhd hissəsidir).

Son BDC fasad xidməti axtarış etmək bu kimi bir sorğu istifadə edir:

 // Bu CAML sorğu yaradan yardım üçün istifadə olunur U2U alət.
      oQuery.Query =
        "<Harada>";

      əgər (titleFilter.Length > 0)
        oQuery.Query   =
          "  <Və>";

      oQuery.Query   =
        "    <Və>" +
        "      <Geq>" +
        "        <FieldRef Name=\"DocumentId\" />" +
        "        <Value Type=\"Text\">" + MinID + "</Dəyər>" +
        "      </Geq>" +
        "      <Leq>" +
        "        <FieldRef Name=\"DocumentId\" />" +
        "        <Value Type=\"Text\">" + maxId + "</Dəyər>" +
        "      </Leq>" +
        "    </Və>";

      əgər (titleFilter.Length > 0)
        oQuery.Query   =
          "    <Ehtiva>" +
          "      <FieldRef Name=\"Title\" />" +
          "      <Value Type=\"Text\">" + titleFilter + "</Dəyər>" +
          "    </Ehtiva>" +
          "  </Və>";
      oQuery.Query   =
        "</Harada>";

Inkişaf ilkin mərhələsində, this worked great. Lakin, biz birdən-birə bəzi problemləri həll etmək üçün dizine qovluq tətbiq, my BDC picker wouldn’t return any results. I tracked this down to the fact that the SPQuery would never return any results. We used folders primarily to allow multiple files with the same name to be uploaded but with different meta data. When the file is uploaded, biz siyahısına maddə şəxsiyyət əsasında bir qovluq yarada və sonra orada faylın köçürülməsi (Mən bu barədə yazırdı burada; biz etdik qarışıq nəticələri bu yanaşma ilə deyil, bütövlükdə, yaxşı çalışır). The user don’t care about folders and in fact, don’t really understand that there are any folders. We have configured all the views on the library to show items without regard to folders.

I hit this problem twice as the technical implementation evolved and solved it differently each time. The first time, I wasn’t using the CONTAINS operator in the query. Without a CONTAINS operator, I was able to solve the problem by specifying the view on the SPQuery’s contructor. Instead of using the default constructor:

SPList oList = web.Lists["Documents"];

SPQuery oQuery = yeni SPQuery();

Mən əvəzinə görünüşü müəyyən bir konstruktor istifadə:

SPList oList = web.Lists["Documents"];

SPQuery oQuery = yeni SPQuery(oList.Views["All Documents"]);

Bu problemi həll edirəm və nəticələr almaq başladı.

I then added the CONTAINS operator into the mix and it broke again. It turns out that the CONTAINS operator, indiyə qədər mən deyə bilərəm ki, bir sadə GEQ kimi məqsədi ilə eyni şəkildə işləmir / LEQ operators. I did some searching and learned that the query’s ViewAttributes should be set to "Recursive", kimi:

oQuery.ViewAttributes = "Scope=\"Recursive\"";

That solved the problem for CONTAINS. Faktiki olaraq, Bu da mənim orijinal axtarış problemi həll və mən recursive atributu ilk dəfə müəyyən etsəydi, Mən məsələ daxil olmazdı.

Bir görünüşü-based SPQuery bəzi operatorlar üçün çalışır ki, (GEQ/LEQ) və başqaları (Ehtiva), ƏĐG qovluq tərkibli sənəd kitabxanalar ilə bütün iş üçün görünmüyor ki, ilə coupled mənə SPQuery bəzi orthogonality məsələlər var iman gətirib.

Xüsusi Thanks:

  • Da yaxşı insanlar U2U və onların sorğu alət.
  • Michael Hoffer böyük "etməklə öyrənmə" blog, Şərh və cavablar.

</son>

Blog abunə!

MOSS KPI bug? Siyahısı Göstərici qovluqları ilə Document Kitabxana bağlıdır

UPDATE 02/29/08: I solved this problem by creating a folder and then assigning a content type to the folder which has the meta data I need for the KPIs. Mən burada bir az daha ətraflı ki, təsvir.

We have implemented a technical solution where users upload documents to a document library. An event receiver creates a directory and moves the file to that directory (Mən nə yazdı bənzər bir texnika istifadə edərək burada). We’ve successfully navigated around the potential issues caused by event receivers that rename uploaded files (mainly because users never start their document by clicking on "New" lakin əvəzinə yerli docs yaratmaq və onlara yüklemek).

The meta data for these documents includes a Yes/No site column called "Urgent" and another site column called "Status". We need to meet a business requirement that shows the percentage of "Urgent" documents whose status is "Pending".

Bunu etmək üçün adətən sadədir Mən SharePoint Beagle çox çox bu kimi bir şey təsvir ekran görüntüleri çox siz istəyirsinizsə ilə.

Xülaseyi-kəlam, Mən aşağıdakı etdi:

  • Create a view on the doc library called "Pending".
  • Qovluq yapısını ignore baxımından yapılandırın.
  • Bir KPI siyahısı yaradın.
  • Create an indicator in the list that points to the doc lib and that "Pending" keçirmək.

This simply does not work. The KPI shows my target (e.g. beş təcili sənədlər) but always shows the actual number of urgent documents as zero. Paradoxically, Siz ətraflı aşağı qazmaq əgər, it shows the five urgent documents in the list. I created a very simple scenario with two documents, one in a folder and one not. Here is the screen shot:

image

The above screen shot clearly shows there are two documents in the view but the "value" is one. The "CamlSchema" with blank document Id is in the root folder and the other is in a folder named "84".

Bu, hətta bir görünüşü müəyyən ki, mənə görünür, the KPI doesn’t honor the "show all items without folders" yaradılması və yerinə, kök qovluğa sınırlar özü.

Mən yanlış Ben əgər, mənə bir xətt düşmək və ya comment tərk edin.

</son>

Blog abunə!

Technorati Tags:

SPD Workflow “A User məlumat toplamaq”: Yaradılan Task Form Düzelt

I’m working on a project that uses five different SharePoint Designer work flows to handle some document approvals. SPD provides the "collect data from a user" hərəkət biz informasiya müxtəlif bit üçün istifadəçi təklif edə bilər ki,, Onlar təsdiq olmadığı kimi, bəzi şərhlər və bəlkə digər gecə şam yeməyi üçün onlar idi soruşması.

The forms are perfectly functional. They are tied to a task list as a content type. Onlar 100% system-generated. This is their strength and weakness. If we can live with the default form, then we’re good to go. Lakin, we don’t have too much control over how SPD creates the form. If we don’t like that default behavior, biz bu ətrafında almaq üçün müxtəlif tövsiyələr müraciət etmək lazımdır (məsələn, bir vəzifə prioritet qəbulu).

Mən baxımından xüsusiyyətləri açılır ki, bu məsələ formaları linki təmin etmək üçün lazım (dispform.asxp) of the "related item" in a new window. This provides one-click access to the meta data of the related item. This is what I mean:

image

Təşəkkürlə, we can do that and it’s not very hard. Broadly speaking, SPD yanğın, navigate to the directory that houses the workflow files and open the ASPX file you want to modify. These are just classic XSL transform instructions and if you’ve mucked about with itemstyle.xsl, axtarış və ya digər XSL ssenarilər, this will be easy for you. Faktiki olaraq, Oluşturulan forma axtarış əsas nəticələri web hissəsi nisbətən riayət etmək qədər asandır bəri mən ümumiyyətlə asan hesab (və ya nightmarish CWQP).

Əlbəttə, there is one major pitfall. SPD’s workflow editor expects full control over that file. If you modify it, SPD will happily overwrite your changes give the right set of circumstances. I did two quick tests to see how bad this could get. They both presuppose that you’ve crafted a valid SPD workflow that uses the "collect data from a user" addım.

Sınaq 1:

  • Əl ilə Aspx faylı dəyişdirin.
  • Test (Sizin dəyişikliklər düzgün xilas və bir şey qırmaq olmadığını yoxlamaq).
  • Ki, iş açmaq və əlaqəli olmayan hərəkət et (such as "log to history").
  • Ki, iş Saxla.

Nəticə: Bu halda, SPD yenidən yaratmaq şəklində vermədi.

Sınaq 2:

  • Eyni etməyin #1 except directly modify the "collect data from a user" fəaliyyət.

Nəticə: Bu sıfırdan şəklində yenidən yaradır, Sizin dəyişikliklər artıq yazılı.

Final Qeydlər:

  • Ən azı iki SPD tədbirlər bu kimi formaları yaratmaq: "Collect Data From a User" and "Assign To Do Item". Both of these actions’ formaları əl dəyişdirilə bilər.
  • Mən dispform.aspx mənim link əldə edə idi, çünki, bu halda, the relate item always has its ID embedded in the related item’s URL. I was able to extract it and then build an <a href> based on it to provide the one-click meta data access feature. It’s unlikely that your URL follows this rule. There may be other ways to get the ID of the related item but I have not had to cross that bridge, mən uçurum digər tərəfdən olur, əgər bilmirəm.
  • Mən araşdırmaq etməyib, də şablon faylı bir növ olduqda amma sürpriz olmaz 12 Mən SPD default formaları yaradır necə təsir dəyişə bilər ki, Hive (biz alert şablonları dəyişə bilərsiniz çox kimi).

</son>

Blog abunə!

Technorati Tags: ,

Edirsiniz “Naməlum Error” Bir Stack İz daha Mesajlarım Həqiqətən Better?

Mən necə üçün Madhur blog post oxuyurdum iz göstərir qalaq imkan və indi merak alıram: niyə biz həmişə bir yığın iz göstərmək yoxdur?

Kim ki, qayda ilə gəldi və nə biz bunu əməl edirsiniz?

End users will know something is wrong in either case. At least with a stack trace, onlar nəzarət-printscreen basın bilərsiniz, copy/paste into an email and send it to IT. That would clearly reduce the time and effort required to solve the issue.

</son>

Technorati Tags:

Bazar (Utancaq) Məzəli: “Mənim Ad Paul Galvin edir”

Il əvvəl bir dəstə, my boss asked me to train some users on a product called Results. Results is an end user reporting tool. It’s roughly analogous to SQL Server Reporting Service or Crystal. O zaman, yaşıl borular yayınlanması üçün nəzərdə tutulmuşdur (e.g. Wyse 50 terminal) connected to a Unix box via telnet.

My default answer to any question that starts with "Can you … " is "Yes" and that’s where all the trouble started.

The client was a chemical company out in southern California and had just about wrapped up a major ERP implementation based on QAD’s MFG/PRO. The implementation plan now called for training power end users on the Results product.

I wasn’t a big user of this tool and had certainly never trained anyone before. Lakin, Mən digər təlim dərsləri bir sıra keçirilmiş və mənim ayaqları tez idi, so I was not too worried. Dennis, real tam zaman Results təlimatçı, had given me his training material. İndi geri Axtarıram, it’s really quite absurd. I didn’t know the product well, had never been formally trained on it and had certainly never taught it. What business did I have training anyone on it?

Maddi şeyi mürəkkəbləşdirmək üçün, I was asked to go and meet someone in Chicago as part of a pre-sales engagement along the way. The plan was to fly out of New Jersey, Chicago getmək, meet for an hour with prospect and then continue on to California.

Yaxşı, I got to Chicago and the sales guy on my team had made some mistake and never confirmed the meeting. Belə, I showed up and the prospect wasn’t there. Awesome. I pack up and leave and continue on to CA. Somewhere during this process, I find out that the client is learning less than 24 hours before my arrival that "Paul Galvin" is teaching the class, not Dennis. The client loves Dennis. They want to know "who is this Paul Galvin person?" "Why should we trust him?" "Why should we pay for him?" Dennis obviously didn’t subscribe to my "erkən pis xəbər vermək" philosophy. Awesome.

I arrive at the airport and for some incredibly stupid reason, I had checked my luggage. I made it to LAX but my luggage did not. Mənim üçün, losing luggage is a lot like going through the seven stages of grief. Eventually I make it to the hotel, with no luggage, tired, hungry and wearing my (by now, very crumpled) business suit. It takes a long time to travel from Newark — to O’Hare — to a client — back to O’Hare — and finally to LAX.

I finally find myself sitting in the hotel room, munching on a snickers bar, exhausted and trying to drum up the energy to scan through the training material again so that I won’t look like a complete ass in front of the class. This was a bit of a low point for me at the time.

Mən növbəti gün oyandı, did my best to smooth out my suit so that I didn’t look like Willy Loman on a bad day and headed on over to the client. As is so often the case, şəxsən o gözəl idi, polite and very pleasant. This stood in stark contrast to her extremely angry emails/voicemails from the previous day. She leads me about 3 miles through building after building to a sectioned off area in a giant chemical warehouse where we will conduct the class for the next three days. The 15 və ya 20 tələbələr yavaş-yavaş toplaşmaq, most them still expecting Dennis.

Mən həmişə özümü tanıdıb mənim təlim dərsləri başlamaq, giving some background and writing my contact information on the white board. As I’m saying, "Good morning, my name is Paul Galvin", I write my name, email and phone number up on the white board in big letters so that everyone can see it clearly. I address the fact that I’m replacing Dennis and I assure them that I am a suitable replacement, və s.. I have everyone briefly tell me their name and what they want to achieve out of the class so that I can tailor things to their specific requirements as I go along. The usual stuff.

We wrap that up and fire up the projector. I go to erase my contact info and … I had written it in permanent marker. I was so embarrassed. In my mind’s eye, it looked like this: There is this "Paul Galvin" person, last minute replacement for our beloved Dennis. He’s wearing a crumpled up business suit and unshaven. He has just written his name huge letters on our white board in daimi marker. What a sight!

Bu, bütün məsud başa çatdı, lakin. This was a chemical company, hər şeydən sonra. A grizzled veteran employee pulled something off the shelf and, yəqin ki, EPA qaydalarının pozulması ilə, cleared the board. I managed to stay 1/2 day ahead of the class throughout the course and they gave me a good review in the end. This cemented my "pinch hitter" reputation at my company. My luggage arrived the first day, mən daha düzgün gün iki və üç.

Mən evə, qırmızı göz alaraq kimi, I was contemplating "lessons learned". There was plenty to contemplate. Communication is key. Tell clients about changes in plan. Don’t ever check your luggage at the airport if you can possibly avoid it. Bring spare "stuff" in case you do check your luggage and it doens’t make it. I think the most important lesson I learned, lakin, was this: always test a marker in the lower left-hand corner of a white board before writing, in huge letters, "Paul Galvin".

</son>

Technorati Tags: ,

Perspektivlər: SharePoint vs. Böyük Hadron Collider

Due to some oddball United Airlines flights I took in the mid 90’s, I somehow ended up with an offer to transform "unused miles" into about a dozen free magazine subscriptions. That is how I ended up subscribing to Scientific American magazine.

Proqram / konsaltinq nəfər, we encounter many difficult business requirements in our career. Most the time, Biz həmin tələblərə cavab sevgi və əslində, it’s probably why we think this career is the best in the world. I occasionally wonder just what in the world would I have done with myself if I had been born at any other time in history. How terrible would it be to miss out on the kinds of work I get to do now, dünya tarixində bu vaxt və yer? I think: olduqca dəhşətli.

Bu illər ərzində, some of the requirements I’ve faced have been extremely challenging to meet. Complex SharePoint stuff, building web processing frameworks based on non-web-friendly technology, complex BizTalk orchestrations and the like. We can all (hopefully) look proudly back on our career and say, "yeah, that was a hard one to solve, but in the end I pwned that sumbitch!" Yaxşı hələ, even more interesting and fun challenges await.

I personally think that my resume, in this respect, is pretty deep and I’m pretty proud of it (though I know my wife will never understand 1/20th of it). But this week, I was reading an article about the Large Hadron Collider in my Scientific American magazine and had one of those rare humbling moments where I realized that despite my "giant" status in certain circles or how deep I think my well of experience, there are real giants in completely different worlds.

The people on the LHC team have some really thorny issues to manage. Consider the Moon. I don’t really think much about the Moon (though I’ve been very suspicious about it since I learned it’s slowing the Earth’s rotation, which can’t be a good thing for us Humans in the long term). Lakin, the LHC team does have to worry. LHC’s measuring devices are so sensitive that they are affected by the Moon’s (Earth-rotation-slowing-and-eventually-killing-all-life) gravity. That’s a heck of a requirement to meet — produce correct measurements despite the Moon’s interference.

I was pondering that issue when I read this sentence: "The first level will receive and analyze data from only a subset of all the detector’s components, from which it can pick out promising events based on isolated factors such as whether an energetic muon was spotted flying out at a large angle from the beam axis." Really … ? I don’t play in that kind of sandbox and never will.

Next time I’m out with some friends, I’m going to raise a toast to the good people working on the LHC, hope they don’t successfully weigh the Higgs boson particle and curse the Moon. I suggest you do the same. It will be quite the toast 🙂

</son>

Technorati Tags:

Evil Microsoft URL

I do a Google search:

image

I click on the link highlighted above ("Download details: Windows SharePoint…").

Mən bu almaq:

image

Note the URL.

Looks pretty suspicious to me. I don’t know if I should laugh, chuckle or call a priest.

</son>

Technorati Tags:

Quick nümayişi: SharePoint sistemi Mərkəzi Tutum Planner

I just fired up the capacity planning tool that’s all the rage these days.

I found it easy to use and quickly modeled a client environment I worked on this past summer.

With some trepidation, I pressed the final OK button and it recommended something that is pretty similar to what we gave our client (we actually threw in a second application server for future excel use). I take that to be a good sign and increases my confidence in the tool.

It seems pretty powerful stuff a much better starting point than a blank page.

I like that lets you get into some good detail about the environment. How many users, how you project they will use the system (publishing, collaboration, və s.), branch office and connectivity / network capacity between them and the mama server. Good stuff.

It asks broad based questions and then lets you tweak the details for a pretty granular model of your environment.

I hesitated downloading it because I have so many other things to look at it, read and try to digest. I’m glad I did.

It’s an easy two-step process. Download system center capacity planner and then download the SharePoint models. It runs nicely on Windows XP.

Based on my quick impression, I don’t see how it might account for:

  • Axtar: Total documents, maybe types of documents, languages.
  • Excel server: how much, əgər?
  • Forms server: how much, əgər?
  • BDC: how much, əgər.

Those may be modeled and I just didn’t see them in the 10 minute review.

I will definitely use it at my next client.

If I were not a consultant and instead working for a real company :), I’d model my current environment and see how the tool’s recommended model matches up against reality. That would be pretty neat. It could lead to some good infrastructure discussion.

</son>

Həll: Haqqında System.IO.FileNotFoundException “SPSite = yeni SPSite(url)”

UPDATE: Burada MSDN Bu sual təqdim olunub (http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=2808543&SiteID=1&mode=1) and Michael Washam of Microsoft responded with a concise answer.

Mən kimi fəaliyyət üçün bir web service yaratdı BDC dostu fasad to a SharePoint list. When I used this from my development environment, o çalışır. Yeni bir server, bu miqrasiya zaman, Mən bu səhv baş verdi:

System.IO.FileNotFoundException: Web tətbiq http://localhost/sandbox tapılmadı. Düzgün URL yazdığınız doğrulayın. URL mövcud content xidmət olmalıdır, sistem administratoru nəzərdə tutulan tətbiqi bir yeni sorğu URL mapping əlavə etmək üçün lazım ola bilər. Microsoft.SharePoint.SPSite at .. ctor(SPFarm təsərrüfatı, Uri requestUri, Boolean contextSite, UserToken SPUserToken) Microsoft.SharePoint.SPSite at .. ctor(String requestUrl) Conchango.xyzzy.GetExistingDocument da(String minId, String maxId, String Title Filter) C:\Documents and Settings Paul My Documents Visual Studio 2005 Layihələr XYZZY BDC_DocReview BDC_DocReview DocReviewFacade.asmx.cs:xətt 69

Burada xətt 69:

istifadə (SPSite site = Yeni SPSite("http://localhost/sandbox"))

Mən URL müxtəlif varyasyonları cəhd, server real adını istifadə edərək, o cümlədən, onun IP ünvanı, URL haqqında arxada slashes, və s.. I always got that error.

Mən istifadə Google to research it. Lots of people face this issue, bu və ya varyasyonları, lakin heç kim həll görünürdü.

Kələkbaz MOSS çek mənə bu baş verməyib ki, belə bir ətraflı səhv təmin 12 hive logs. Nəhayət, haqqında 24 saat sonra həmkarım mən bunu tövsiyə, Mən İşaretli 12 Hive log və bu tapılmadı:

Yerli təsərrüfat əldə etmək istəyərkən bir istisna baş:
System.Security.SecurityException: Tələb defteri girişi icazə verilmir.
System.ThrowHelper.ThrowSecurityException da(ExceptionResource resurs) da
(String adı, Boolean yazılabilir) da
(String adı) da
() da
() da
(SPFarm& təsərrüfat, Boolean& isJoined)
Uğursuz olduğunu Məclis zonası:  MyComputer

Bu tədqiqat yeni imkanlarını açdı, Belə ki, Google geri idi. Bu məni gətirib Forum: http://forums.codecharge.com / posts.php?= 67135 post_id. That didn’t really help me but it did start making me think there was a database and/or security issue. I soldiered on and Andrew Connell-nin post finally triggered the thought that I should make sure that the application pool’s identity account had appropriate access to the database. I thought it already did. Lakin, həmkarım getdi və SQL üçün app hovuz şəxsiyyət hesab tam giriş imkanı verdi.

O dəyişiklik tezliklə, everything started working.

Növbəti Nə yaxşı olduğunu ifadə edərək, haiku şer:

Problemləri öz əlləri qaldırmaq.
You swing and miss. Try again.
Müvəffəqiyyət! But how? Niyə?

O kimi tək şeyi tərk etmək istəmirdi, minimum icazə vermək üstünlük (və yəqin ki, bir giriş blog yazılı bir göz ilə; Mən punch onun döymək, muhahahahaha!).

O qədər app hovuz şəxsiyyət hesabı ardıcıl icazələrin silindi … there was no longer any explicit permission for the app pool identity account at all. The web service continued to work just fine.

We went and rebooted the servers. Everything continued to work fine.

Belə, Recap üçün: we gave the app pool identity full access and then took it away. The web service started working and never stopped working. Bizarre.

Çalışmışdır ki, niyə hər kəs bilir, əgər, Şərh tərk edin.

</son>