כוידעשלעך אַרטשיוועס: פעברואַר 2008

זונטיק מאָדנע: “NOT FOR EXPORT”

Back around 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, easy for end users, flashy, multi-language, אאז"ו ו. Sad to say, I probably haven’t had as an ambitious set of work to accomplish since those heady days.

This effort pre-dated Microsoft.NET. Plain vanilla ASP was still somewhat new (or least very unfamiliar to my company). "Brick and mortar" companies were doomed. Doomed! This is to say that it was pioneering work. Not Hadron Collider pioneering work, but for us in our little world, it was pioneering work.

We were crazy busy. We were doing mini POC’s almost every day, figuring out how to maintain state in an inherently stateless medium, figuring out multi-language issues, row-level security. We even had create a vocabulary to define basic terms (I preferred state-persistent but for some reason, the awkward "statefull" won the day).

As we were madly inventing this product, 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, because we always focused on Spanish or French, but in this case, it was Chinese (which is a double-byte character set and required special handling given the technology we used).

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:

  • American: "Could you tell me how to get to [XX] street?"
  • Chinese: "Sorry, we don’t speak English".
  • American: "Oh, well I speak Mandarin." and he asked them again in Chinese, but more clearly (as best he could).
  • Chinese: Very politely, "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] street."

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" in the sense of pressuring me into bad business decisions.
  • We were not allowed to drive cars (there was some confusion as to whether this was a custom, a legal requirement or just the client’s rule).
  • There were special rules for going through customs.
  • We were not allowed to use American money for anything.
  • You’re not supposed to leave tips. It’s insulting if you do.

און לעסאָף, I had relatively fresh memories the Tiananmen massacre. When I was at college, I remember seeing real-time Usenet postings as the world looked on in horror.

In short, 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.

I’m on this 14 hour flight and though it was business class, 14 hours is a damned long time. There are only so many ways to entertain yourself by reading, watching movies or playing with the magnetized cutlery. Even a really good book is hard to read for several hours straight.

Eventually, I started to read the packaging material on a piece of software I was hand-carrying with me to the client, Netscape’s web server. I’m reading the hardware/software requirements, the marketing blurbs, looking at the pretty picture and suddenly, I zero in on the giant "NOT FOR EXPORT" warning, something about 128 bit encryption. I stuffed the box back into my carry bag, warning face-down (as if that would have helped) and tried to keep visions of Midnight Express out of my head.

Looking back on it now, I should have been worried, if at all, when I left the U.S., 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.

</עק>

אַבאָנירן צו מיין בלאָג!

טעטשנאָראַטי טאַגס: ,

באַשייד: ספּקווערי טוט ניט זוך פאָלדערס

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. דנאָ שורה: assign "recursive" to the view attribute of the query.

My scenario:

  • On Monday, I upload a document and supply some meta data.
  • The following week, 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").
  • We’ve created a web service façade that provides a BDC-friendly interface to the list so that users can easily locate that Monday document via a title search.
  • A BDC data column provides a friendly user interface. (This is part of my attempt at using BDC for a more friendly Lookup column).

The final BDC façade service uses a query like this to do the lookup:

 // Used U2U tool to assist in generating this CAML query.
      oQuery.Query =
        "<ווו>";

      צי (titleFilter.Length > 0)
        oQuery.Query  =
          "  <און>";

      oQuery.Query  =
        "    <און>" +
        "      <Geq>" +
        "        <FieldRef Name=\"DocumentId\" />" +
        "        <Value Type=\"Text\">" + minId + "</ווערט>" +
        "      </Geq>" +
        "      <Leq>" +
        "        <FieldRef Name=\"DocumentId\" />" +
        "        <Value Type=\"Text\">" + maxId + "</ווערט>" +
        "      </Leq>" +
        "    </און>";

      צי (titleFilter.Length > 0)
        oQuery.Query  =
          "    <כּולל>" +
          "      <FieldRef Name=\"Title\" />" +
          "      <Value Type=\"Text\">" + titleFilter + "</ווערט>" +
          "    </כּולל>" +
          "  </און>";
      oQuery.Query  =
        "</ווו>";

During the initial stage of development, this worked great. אָבער, we introduced folders into the directory to solve some problems and suddenly, 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, we create a folder based on the list item’s ID and then move the file there (I wrote about that דאָ; we’ve had mixed results with this approach but on the whole, it’s working well). 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:

ספּליסט oList = web.Lists["Documents"];

SPQuery oQuery = נייַ SPQuery();

I instead used a constructor that specified a view:

ספּליסט oList = web.Lists["Documents"];

SPQuery oQuery = נייַ SPQuery(oList.Views["All Documents"]);

That solved the problem and I started to get my results.

I then added the CONTAINS operator into the mix and it broke again. It turns out that the CONTAINS operator, so far as I can tell, does not work with the view the same way as the a simpler GEQ / LEQ operators. I did some searching and learned that the query’s ViewAttributes should be set to "Recursive", ווי אין:

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

That solved the problem for CONTAINS. אין פאַקט, this also solved my original search problem and if I had specified the recursive attribute the first time, I would not have run into the issue again.

The fact that a view-based SPQuery works for some operators (GEQ/LEQ) and not others (CONTAINS), coupled with the fact that KPIs don’t seem to work at all with folder-containing document libraries leads me to believe that SPQuery has some orthogonality issues.

Special Thanks:

  • The good folks at U2U and their query tool.
  • Michael Hoffer’s great "learning by doing" בלאָג פּאָסטן, comments and responses.

</עק>

אַבאָנירן צו מיין בלאָג!

מאָך קפּי זשוק? רשימה ינדיקאַטאָר טייד צו דאָקומענט ביבליאָטעק מיט פאָלדערס

דערהייַנטיקן 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. איך דיסקרייבד אַז אין אַ קליין מער דעטאַל דאָ.

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 (ניצן אַ טעכניק ענלעך צו וואָס איך געשריבן וועגן דאָ). 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" אָבער אַנשטאָט מאַכן די דאָקס לאָוקאַלי און דעמאָלט צופֿעליקער זיי).

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".

דאס איז יוזשאַוואַלי פּשוט צו טאָן און איך דיסקרייבד עפּעס זייער פיל ווי דאָס בייַ די שאַרעפּאָינט בעאַגלע מיט גורל פון פאַרשטעלן שאַץ אויב איר ניטאָ אינטערעסירט.

אין אַ נאַטשעל, איך האט די פאלגענדע:

  • Create a view on the doc library called "Pending".
  • קאַנפיגיער די מיינונג צו איגנאָרירן טעקע סטרוקטור.
  • שאַפֿן אַ קפּי רשימה.
  • Create an indicator in the list that points to the doc lib and that "Pending" מיינונג.

This simply does not work. The KPI shows my target (e.g. פינף דרינגלעך דאָקומענטן) but always shows the actual number of urgent documents as zero. Paradoxically, אויב איר בויער אַראָפּ צו די פרטים, 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:

בילד

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".

עס אויס צו מיר אַז אַפֿילו כאָטש איר ספּעציפיצירן אַ מיינונג, the KPI doesn’t honor the "show all items without folders" באַשטעטיקן און אַנשטאָט, קאַנפיינז זיך צו דער וואָרצל טעקע.

אויב איך בין אומרעכט, ביטע פאַלן מיר אַ שורה אָדער לאָזן אַ באַמערקונג.

</עק>

אַבאָנירן צו מיין בלאָג!

טעטשנאָראַטי טאַגס:

ספּד וואָרקפלאָוו “קלייַבן דאַטאַ פון אַ באַניצער”: מאָדיפיצירן די דזשענערייטאַד טאַסק פאָרם

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" קאַמף אַזוי אַז מיר קענען פּינטלעך דער באַניצער פֿאַר פאַרשידענע ביטן פון אינפֿאָרמאַציע, אַזאַ ווי צי זיי אַפּרווו עס, some comments and maybe ask what they had for dinner the other night.

The forms are perfectly functional. They are tied to a task list as a content type. זיי זענען 100% system-generated. This is their strength and weakness. If we can live with the default form, then we’re good to go. אָבער, we don’t have too much control over how SPD creates the form. If we don’t like that default behavior, we need to resort to various tricks to get around it (לעמאָשל, setting priority on a task).

I needed to provide a link on these task forms that opened up the view properties (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:

בילד

טאַנגקפאַלי, we can do that and it’s not very hard. Broadly speaking, fire up SPD, 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, search or other XSL scenarios, this will be easy for you. אין פאַקט, I found it to be generally easier since the generated form is somewhat easier to follow as compared to a search core results web part (or the nightmarish CWQP).

אַוואַדע, 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" step.

פּרובירן 1:

  • Modify the ASPX file by hand.
  • Test it (verify that your changes were properly saved and didn’t break anything).
  • Open up the workflow and add an unrelated action (such as "log to history").
  • Save the workflow.

טאַכלעס: אין דעם פאַל, SPD did not re-create the form.

פּרובירן 2:

  • Do the same as #1 except directly modify the "collect data from a user" קאַמף.

טאַכלעס: This re-creates the form from scratch, over-writing your changes.

Final Notes:

  • At least two SPD actions create forms like this: "Collect Data From a User" and "Assign To Do Item". Both of these actions’ forms can be manually modified.
  • I was able to generate my link to dispform.aspx because, אין דעם פאַל, the relate item always has its ID embedded in the related item’s URL. I was able to extract it and then build an <אַ הרעף> 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, so I don’t know if gets to the other side of the chasm.
  • I didn’t investigate, but I would not be surprised if there is some kind of template file in the 12 hive that I could modify to affect how SPD generates the default forms (much like we can modify alert templates).

</עק>

אַבאָנירן צו מיין בלאָג!

ביסט “אומבאַקאַנט פֿעלער” אַרטיקלען טאַקע בעסער ווי אַ סטאַק טרייס?

איך איז געווען לייענען מאַדהור ס בלאָג פּאָסטן אויף ווי צו געבן אָנלייגן שפּור דיספּלייז און איצט איך בין וואַנדערינג: וואָס טאָן ניט מיר שטענדיק ווייַזן אַ אָנלייגן שפּור?

ווער געקומען אַרויף מיט וואָס הערשן און וואָס טאָן מיר נאָכגיין עס?

End users will know something is wrong in either case. At least with a stack trace, זיי קענען דריקן קאָנטראָל-פּרינצקרעען, copy/paste into an email and send it to IT. That would clearly reduce the time and effort required to solve the issue.

</עק>

טעטשנאָראַטי טאַגס:

זונטיק (ימבעראַסינג) מאָדנע: “מייַן נאָמען איז פאולוס גאַלווין”

א בינטל פון יאר צוריק, 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. אין דער צייַט, עס איז דיזיינד צו לויפן אויף גרין טובז (e.g. ווייז 50 וואָקזאַל) connected to a Unix box via telnet.

My default answer to any question that starts with "Can you … " is "Yes" און אַז ס ווו אַלע די צרה אנגעהויבן.

דער קליענט איז אַ כעמישער פירמע אויס אין דאָרעמדיק קאַליפאָרניאַ און האט נאָר וועגן אלנגעוויקלט אַרויף אַ הויפּט ערפּ ימפּלאַמענטיישאַן באזירט אויף קאַד ס 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. אָבער, איך האט געפירט אַ נומער פון אנדערע טריינינג קלאסן און איז שנעל אויף מיין פֿיס, so I was not too worried. Dennis, דער עמעס פול-צייַט רעזולטאַטן ינסטראַקטער, had given me his training material. Looking back on it now, 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?

צו קאָמפּליצירן דאס לאַדזשיסטיקלי, 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, גיין צו טשיקאַגאָ, meet for an hour with prospect and then continue on to California.

געזונט, I got to Chicago and the sales guy on my team had made some mistake and never confirmed the meeting. אַזוי, I showed up and the prospect wasn’t there. Awesome. I pack up and leave and continue on to CA. Somewhere during this process, איך געפינען אויס אַז דער קליענט איז וויסן ווייניקער ווי 24 hours before my arrival that "Paul Galvin" איז לערנען די סאָרט, 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 "געבן שלעכט נייַעס פרי" philosophy. Awesome.

איך אָנקומען בייַ די אַעראָפּאָרט און פֿאַר עטלעכע ינקרעדאַבלי נאַריש סיבה, I had checked my luggage. I made it to LAX but my luggage did not. פֿאַר מיר, לוזינג באַגאַזש איז אַ פּלאַץ ווי געגאנגען דורך דעם זיבן סטאַגעס פון טרויער. Eventually I make it to the hotel, מיט קיין באַגאַזש, מיד, הונגעריק און ווערינג מיין (דורך איצט, זייער קראַמפּאַלד) business suit. It takes a long time to travel from Newark — to O’Hare — צו אַ קליענט — צוריק צו אָוכער — און לעסאָף צו אָפּגעלאָזן.

איך לעסאָף געפינען זיך זיצן אין די האָטעל צימער, מאַנטשינג אויף אַ סניקערז באַר, 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.

איך וואָוק אַרויף די ווייַטער טאָג, 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, אין מענטש זי איז געווען פייַן, 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. די 15 אָדער 20 סטודענטן סלאָולי אַסעמבאַל, most them still expecting Dennis.

איך שטענדיק אָנהייבן אַוועק מיין טריינינג קלאסן דורך ינטראָודוסינג זיך, giving some background and writing my contact information on the white board. As I’m saying, "Good morning, my name is Paul Galvin", איך שרייַבן מיין נאָמען, 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, אאז"ו ו. 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, עס געקוקט ווי דעם: There is this "Paul Galvin" מענטש, 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 שטענדיק מאַרקער. What a sight!

עס אַלע געענדיקט גליק, אָבער. This was a chemical company, נאָך אַלע. A grizzled veteran employee pulled something off the shelf and, מיסטאָמע אין הילעל פון עפּאַ רעגיאַליישאַנז, 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, אַזוי איך איז געווען פיל מער פּראַזענטאַבאַל טעג צוויי און דרייַ.

ווי איך איז גענומען די רויט אויג צוריק היים, 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, אָבער, איז דאָס: שטענדיק פּרובירן אַ מאַרקער אין דער נידעריקער לינקס-האַנט ווינקל פון אַ ווייַס ברעט איידער שרייבן, אין ריזיק אותיות, "Paul Galvin".

</עק>

טעטשנאָראַטי טאַגס: ,

פּערספּעקטיווז: שאַרעפּאָינט ווס. די גרויס האַדראָן קאַליידער

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.

ווי ווייכווארג / קאַנסאַלטינג מענטשן, we encounter many difficult business requirements in our career. Most the time, we love meeting those requirements and in fact, 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, at this time and place in world history? איך טראַכטן: pretty terrible.

Over the years, 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!" Better yet, 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). אָבער, 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 🙂

</עק>

טעטשנאָראַטי טאַגס:

בייז מייקראָסאָפֿט URL

איך טאָן אַ גוגל זוכן:

בילד

איך גיט אויף די לינק כיילייטיד אויבן ("Download details: פֿענצטער שאַרעפּאָינט…").

איך באַקומען דעם:

בילד

Note the URL.

Looks pretty suspicious to me. I don’t know if I should laugh, טשאַקאַל אָדער רופן אַ גאַלעך.

</עק>

טעטשנאָראַטי טאַגס:

שנעל ימפּרעססיאָן: סיסטעם צענטראַל קאַפּאַסיטי פּלאַננער פֿאַר שאַרעפּאָינט

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, אאז"ו ו), 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:

  • זוכן: Total documents, maybe types of documents, languages.
  • Excel server: how much, if at all?
  • Forms server: how much, if at all?
  • בדק: how much, if at all.

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.

</עק>

טעטשנאָראַטי טאַגס:

באַשייד: סיסטעמ.יאָ.פילענאָטפאָונדעקססעפּטיאָן אויף “ספּסיטע = נייַ ספּסיטע(URL)”

דערהייַנטיקן: איך אַרייַנגעשיקט דעם קשיא צו מסדן דאָ (http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=2808543&SiteID=1&mode=1) and Michael Washam of Microsoft responded with a concise answer.

איך באשאפן אַ וועב דינסט צו שפּילן ווי אַ בדק-פרייַנדלעך פאַסאַד to a SharePoint list. When I used this from my development environment, עס געארבעט פייַן. ווען איך מייגרייטיד דעם צו אַ נייע סערווער, איך געפּלאָנטערט דעם טעות:

סיסטעמ.יאָ.פילענאָטפאָונדעקססעפּטיאָן: די וועב אַפּלאַקיישאַן בייַ http://localhost/sandbox קען נישט זייַן געפונען. באַשטעטיקן אַז איר האָט טייפּט די URL ריכטיק. אויב די URL זאָל זייַן געדינט שאַפֿן צופרידן, די סיסטעם אַדמיניסטראַטאָר קען דאַרפֿן צו לייגן אַ נייַ בעטן URL מאַפּינג צו די בדעה אַפּלאַקיישאַן. בייַ מיקראָסאָפט.שאַרעפּאָינט.ספּסיטע .. קטאָר(ספּפאַרם פאַרם, אורי רעקוועסטורי, בוליאַן קאָנטעקסציטע, ספּוסערטאָקען וסערטאָקען) בייַ מיקראָסאָפט.שאַרעפּאָינט.ספּסיטע .. קטאָר(שטריקל רעקוועסטורל) בייַ קאָנטשאַנגאָ.קסיזזי.געטעקסיסטינגדאָקומענט(שטריקל מיניד, שטריקל מאַקסיד, שטריקל טיטלעפילטער) אין C:\דאָקומענטן און סעטטינגס פאולוס מייַן דאָקומענץ וויסואַל סטודיאָ 2005 פּראַדזשעקס קסיזזי בדק_דאָקרעוויעוו בדק_דאָקרעוויעוו דאָקרעוויעוופאַקאַדע.אַסמקס.קס:ליניע 69

דאָ איז שורה 69:

ניצן (ספּסיטע פּלאַץ = נייַ ספּסיטע("http://localhost/sandbox"))

איך געפרוווט פאַרשידענע ווערייישאַנז אויף די URL, אַרייַנגערעכנט ניצן די סערווירער ס פאַקטיש נאָמען, זייַן IP אַדרעס, טריילינג סלאַשיז אויף די URL, אאז"ו ו. I always got that error.

איך געוויינט די גוגל to research it. Lots of people face this issue, אָדער ווערייישאַנז פון עס, אָבער קיין איין געווען צו האָבן עס סאַלווד.

טריקקסי מאָך צוגעשטעלט אַזאַ אַ דיטיילד טעות אַז עס האט ניט פאַלן צו מיר צו קאָנטראָלירן די 12 hive logs. Eventually, וועגן 24 שעה נאָך מיין קאָלעגע רעקאַמענדיד איך טאָן אַזוי, איך אָפּגעשטעלט אויס די 12 כייוו קלאָץ און געפונען דעם:

אַן אויסנאַם פארגעקומען בשעת טריינג צו קריגן די היגע פאַרם:
סיסטעמ.סעקוריטי.סעקוריטיעקססעפּטיאָן: געבעטן רעגיסטרי צוטריט איז נישט ערלויבט.
בייַ סיסטעמ.טהראָווהעלפּער.טהראָווסעקוריטיעקססעפּטיאָן(עקססעפּטיאָנרעסאָורסע מיטל) בייַ
(שטריקל נאָמען, בוליאַן ווריטאַבלע) בייַ
(שטריקל נאָמען) בייַ
() בייַ
() בייַ
(ספּפאַרם& פאַרם, בוליאַן& יסדזשאָינעד)
דער זאָנע פון ​​די פֿאַרזאַמלונג וואָס אַנדערש איז געווען:  MyComputer

דאס געעפנט אַרויף נייַ אַוואַנוז פון פאָרשונג, אַזוי עס איז געווען צוריק צו די גוגל. אַז געפירט מיר צו דעם פאָרום פּאָסטן: הטטפּ://forums.codecharge.com / פּאָסצ.פפּ?פּאָסט_יד = 67,135. 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 אנדריי קאַנאַל ס 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. אָבער, מיין קאָלעגע געגאנגען און געגעבן די אַפּ בעקן אידענטיטעט חשבון פול צוטריט צו סקל.

ווי באַלד ווי זי געמאכט אַז ענדערונג, everything started working.

וואָס געטראפן ווייַטער איז בעסטער אויסגעדריקט ווי אַ האַיקו ליד:

פּראָבלעמס כאַפּן זייער הענט.
You swing and miss. Try again.
דערפאָלג! But how? פאַר וואָס?

זי האט נישט וועלן צו לאָזן דאס אַליין ווי אַז, פּריפערינג צו געבן די מינימום פארלאנגט דערלויבעניש (און מיסטאָמע מיט אַן אויג צו שרייבן אַ בלאָג פּאָזיציע; איך שלאָגן איר צו דעם זעץ, מוהאַהאַהאַהאַהאַ!).

זי אראפגענומען סאַקסעסיוו פּערמישאַנז פון די אַפּ בעקן אידענטיטעט חשבון ביז … 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.

אַזוי, צו ריקאַפּ: we gave the app pool identity full access and then took it away. The web service started working and never stopped working. Bizarre.

אויב ווער עס יז ווייסט וואָס וואָס זאָל האָבן געארבעט, ביטע לאָזן אַ באַמערקונג.

</עק>

טעטשנאָראַטי טאַגס: