800 reputation
1842
bio website geirsmestad.com
location Norway
age 28
visits member for 3 years, 8 months
seen Nov 8 at 16:04

Oct
12
comment How to activate TaxonomyFieldAdded feature in Sharepoint Online
Just use my "funny story" answer and create the WSP yourself. Everything you need is in the answer - just put the Feature.xml and manifest.xml that I pasted into a .CAB file and rename it to WSP, and you're done.
May
31
comment Why does Kerberos authentication fail?
Setting SPNs for both the addresses solved my issue. Thanks very much for a very clear response :)
May
31
comment Why does Kerberos authentication fail?
This tool looks promising, I'll have a look. Thanks.
May
31
comment Why does Kerberos authentication fail?
Yes, forgot to mention it but I've activated delegation in AD for the SharePoint server (and a couple of others, even though I thought it wasn't necessary). I haven't done any testing of the SPNs except locating them, which was done successfully from the DC (different server) using the 'ldifde' command. You're right that one of the service accounts has somehow become the app pool identity. Could this in itself cause problems?
May
16
comment Is it possible to get detailed error messages in SharePoint Online?
Thanks. I'm assuming your third point means testing in a local farm before deployment to SharePoint Online? The problem is there often seem to pop up problems in SharePoint Online which don't manifest in the local sandbox. That "Literal debugging" link is priceless, by the way. Very retro.
May
16
comment How do I change the Title column of a list programmatically?
Just a final note: I ended up setting DisplayName in the SPField's SchemaXml directly. This did the job in my case, although I would assume that Per Jakobsen's technique would work in the general case.
May
14
comment How do I change the Title column of a list programmatically?
Thanks very much. This is exactly the sort of info I was looking for. For some reason, though, the field just seems to stubbornly refuse updating. I can see the changes reflected in the object model, but there are still no traces on the List Settings page. Might just be something weird with my test farm.
May
11
comment How do I change the Title column of a list programmatically?
Since this whole thing seems pretty confusing, it's also worth mentioning that the debugger in fact verifies that the DisplayName has been updated. Both titleField.TitleResource.Value and titleField.Title are in fact "Firma" when my code is finished executing. There are just no traces of this in the web interface.
May
11
comment How do I change the Title column of a list programmatically?
The site and column was created just milliseconds before this code is executed, so I am confident that it hasn't been RENAMED...it might have been screwed up by the fact that I use a Norwegian site template, though. The last letters of the URL of the field indicates that it is still named "Title", but I get a runtime exception when attempting to change this property. See Paul's answer + comment and screenshot: i.imgur.com/jW0DB.png
May
11
comment How do I change the Title column of a list programmatically?
I am trying to change the display name. As I said above, the property has a different name in the Norwegian site template, so your code causes a runtime exception: i.imgur.com/jEguA.png. I was also under the impression that changing the InternalName or StaticName of the Title field was bad practice. Would it resolve my problem? Although come to think of it, SharePoint still indicates that the internal name of the field is "Title". So I don't see WHY your code should fail. [Exception translation: Cannot find field with name "Title"]
May
10
comment How do I change the Title column of a list programmatically?
Yes, I am calling Update on the list immediately afterwards. I'll update the question to emphasize this.
May
10
comment How do I change the Title column of a list programmatically?
Note that attempting to change the value with 'Fields["Title"]' results in a runtime error.
May
9
comment Feature activation suceeds in sandboxed server environment, but fails in SharePoint Online. How do I find what's wrong?
Okay, turns out the error in my last comment was caused by an unrelated error. I've done some more testing, and the code seems to fail pretty randomly - if I comment out broad sections of code, it sometimes works and sometimes it doesn't. I've increased the resource quota of the site collection to the maximum, but this doesn't seem to improve things. Is there anything else that can cause this error message in SharePoint Online but not in a sandboxed server version?
May
9
comment Feature activation suceeds in sandboxed server environment, but fails in SharePoint Online. How do I find what's wrong?
Changing the Solution ID does not resolve the problem. But you might be onto something - it seems like my solution suddenly gets rejected by the Sandboxed Code Service if it involves any code at all. With an empty FeatureActivated method it deploys, but if it contains "using (SPSite aSite = new SPSite("targetSiteCollection"))", it fails. This didn't happen before.
Apr
25
comment What is a good approach for generating serial numbers in SharePoint Online?
And to think I've been working with SharePoint for a year and didn't remember this feature... The ID column might be the right choice, although it is specific to each list and hence can't be used site-globally. Might use a calculated column based on ID. Thanks.
Mar
30
comment How do I handle concurrency problems related to event receivers?
Thanks, this is very useful. The part about checking publishing from the SPListItem not having to check the SPFile is especially useful.
Mar
28
comment How do I connect with SharePoint Online Web Services in order to access list and taxonomy data?
The error message only indicates that the credentials you have supplied aren't accepted by the server. If you don't find the answer, you should probably submit a separate question to sharepoint.stackexchange.com with the details of what you are trying to do. Users are discouraged from asking questions under an existing question. However, your issue is probably related to the service.Credentials object and the values you've set it to. Look at the NetworkCredentials class in .NET and see if it give you anything useful.
Mar
22
comment Are permissions transfered through multiple stages from AD?
This does the trick; thanks. Should have thought this was obvious, but appatently not.
Jan
27
comment How do I efficiently deploy a SharePoint project first to a test environment, then production?
Well, in this case it is the root site of a site collection (with lots of subsites), but it might be different for another project. It has one feature which is deployed from Visual Studio. Deploying the exported site and code separately seems fair enough, but is there a reasonable way to ensure that the test and prod environments are similar enough to not cause problems when the code is deployed? If deploying to an existing site collection, they will be different. Installing Visual Studio on Prod to debug things seems like a terrible hack.
Jan
27
comment How do I efficiently deploy a SharePoint project first to a test environment, then production?
Thanks. By content, do you also mean list definitions, subsites, content types, page layouts and stuff like that? So you'd create this stuff in Authoring (with no code), then manually copy it to dev where the code is developed and tested? This seems very manual-labor intensive if you're doing prototyping work that requires lots of code and making lots of small, frequent changes. Is this process really how Microsoft envisioned it, or am I just misunderstanding something? Coming from a world of Agile software development, this all seems completely backwards to me. Which part don't I get here?