Tag Info

Hot answers tagged

4

As EStruyf said, you can change the deployment configuration and debug the code for your Feature Event Receivers. But, you can also attach the event receivers after making sure List is created, so put this code after your list is created. public class Feature1EventReceiver : SPFeatureReceiver { public override void ...


3

You can't show a message from ItemXXXed and you can't cancel either. If you need that then you should implement ItemXXXing. You can't cancel because the changes has already been made and you can't show a message because the UI isn't waiting for you (unless you specify synchronous, but still I don't expect SharePoint to look at Status)


3

Feature events are asynchronous. It will execute whenever it has time to execute, you can't control that, thus it can't have a context. If you need data about the site your feature_activated method triggered on, use var web = properties.feature.parent as SPWeb For a web-scoped feature var site = properties.feature.parent as SPSite for a site scoped ...


3

You have two options: Catch all errors in your web part and then log them to ULS, show in hidden div, ... Develop you web part in a Sandboxed solution, then SharePoint will take care of protecting the rest of the page To elaborate on the first. It can be implemented using this pattern: Add a string variable errorMessage string errorMessage; Write ...


3

Since you are trying to update item on ItemUpdated event you will get this error because another Update event was already in progress so you need to turn off EventFiring before calling SystemUpdate(). Example: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPWeb web = properties.OpenWeb()) { var list = ...


2

I had this same issue when running the SharePoint 2010 PSConfigUI.exe and was not too keen to go adjusting the web.config files right away. I went into INETMGR.exe (IIS manager) and changed the .NET framework for all the SharePoint related app pools from 4.0 to 2.0. You may also want to restart IIS (IISRESET from an administration command prompt (right ...


2

When you delete a Site Collection, it will still remain in the Content database until the "Gradual Site Delete" Timer job is run (by default, it runs once daily). So, once you delete the site collection and run the timer job, then you can again restore the same site collection in the same content database.


2

Sorry to resurrect such an old thread however I ran into a similar problem today and this http://reality-tech.com/2012/04/04/gradual-site-collection-deletion/ post put me onto the solution. This meant I didn't have to install to a different content database which would have been a big headache for us. Hopefully this might help someone in the future...


2

This is a Windows* OS/file system issue.If your folder destination path is too long(more than 255 characters in Windows),you can get a long path error.You can fix it with additional softwares like Long Path Tool. http://PathTooDeep.com I hope that it will help you! Good luck! Cheers!


2

A jr. administrator had used stsadm -o setsiteuseraccountdirectorypath -url https://portal.domain.com -path <LDAP Path> to change the value of the SiteUserAccountDirectoryPath property. He did this in an effort to restrict the people picker from displaying people not currently in the site collection from being displayed. When he made his changes it ...


2

Not much info to go buy, but if you imported a custom web part to another SharePoint site, it will not work! The reason is that the assembly behind the web part is not allowed to run on that site by the safe mode parser (SafeControls in web.config). Try and install the web part solution in the new SharePoint solution and see if this solves the problem!


2

I've encountered the same issue and I had the SP1 for SharePoint Designer2010 already installed. SP D2010 Version : 14.0.6123.5001 (32-bit) with SP1 The issue : I am using SP2010 with infopath 2010. i've designed a custom approval which contains one approval process. this workflow prompts users to fill in reviewer, CC and comments on the workflow ...


2

Is your production a multi server farm? I think you are facing the following issue: http://blogs.msdn.com/b/calvarro/archive/2011/11/06/sharepoint-2010-amp-visual-studio-2010-error-ocurred-activate-features-feature-with-id-installed-in-this-farm-cannot-be-added-to-this-scope.aspx It turns out that VS 2010 internally implements a call to the method ...


2

At the beginning of your FeatureActivated method, put this line of code : System.Diagnostics.Debugger.Break(); Then, try to activate the feature. This will popup an "exception" window that let you to attach the debugger of your choice. After attaching, your code will be pause at this line, and you will be able to walk into your code to find the issue. ...


2

You can surely expect errors in MSDN documentation. Right below the page, there is a Community Content area in which you can suggest them to correct the error or warn the readers of the MSDN content. It can be corrected like: SPSite oSiteCollection = SPContext.Current.Site; SPWebCollection collWebs = oSiteCollection.AllWebs foreach (SPWeb oWebsite in ...


2

Does the page require publishing? Have you published it? If you still have problems after publishing, check the page permissions. While logged on as admin click page permissions > check permissions, enter the test user id and hit Check Now. That will show you the permissions that user has on the page. (The steps are from SP 2010, not sure if the commands are ...


2

I have recently just come across the same problem. when it will upload every file except executable files once i had allowed them on the Sharepoint server. After checking and ensuring both Config files and max file size settings on the server are correct to accept the executable. This can be done by following the link directly below. ...


1

I couldn't find any way you could find out that a web template is faulty or missing for a site collection. However the error I was getting was because site collection was customized and someone deleted web template which was referenced in the site definition of site collection. I solved problem by creating a new site collection using site definition again ...


1

You could use powershell to access the SharePoint object model. The site's template ID is a property of SPWeb. (SPweb.WebTemplateID) Then you would compare this integer to the list of site template ID numbers : http://mosshowto.blogspot.co.uk/2009/04/sharepoint-list-template-ids.html plus on msdn has this article, if you know the template then you can ...


1

I've had this problem, before. What I did was deleted the certificates from the MMC, and restarted the machine. It was the October 2011 CU. Also, did you run the PSConfigUI.exe (SharePoint Products and Technologies Configuration Wizard)? It is required after installing June 2011 CU. See here: http://technet.microsoft.com/en-us/sharepoint/ff800847.aspx ...


1

Q: Did you rebooted the servers and run the upgrade after Cumulative Updates installation? It is mandatory as this could explain behavior you are having. It is mentioned on the CU download page! Also make sure you Managed Account password has not been changed and to be sure, update it FROM SharePoint, very important as managed accounts stored hashed ...


1

Are you programmatically doing this? Have you tried checking with Document Inspector for any corrupt/invalid properties?? http://ravikra.blogspot.ca/2012/04/problem-with-uploading-documents-to.html regards, KS


1

you have to find out more details about source of this exception. it can be done by looking inside log file "...14\logs" or using "ULS Viewer", there you can find answer - which object throws exception and why? ps. usually it hapens when you try to reference to list or group... which not exists


1

If you have a required field on a new document (or picture) then it is checked out when it is initially uploaded. Check out is ALWAYS enabled, but you can FORCE check out to be used. Further, until that document is checked in for the first time with the required metadata completed, it will only be visible to the user who uploaded it. Even having Site ...


1

I would suggest to do the following because even I faced similar pemrission issues before during Infopath and List access. Create a permission level "Generic Add Items". Make sure that "View Application and Layout pages" permission is checked along with Add item , Read , Open versions among the others. For editors , generic contribute access should work. ...


1

Maria , a common mistake while finding corelation ids is the way it is copied from the browser it generally comes with an extra space at the end. So when we search this using notepad or any other log reader using Ctrl + F it does not come up. Can you confirm this and let us know if the id is copied without spaces. It suggested you copy the corelation id to ...


1

Truly speaking it is not customizable. I was also facing the same issue. So I tried a workaround. I showed my survey list through ECMA Script model. And when it called the method ONFail, there I used my own customised message as a pop-up box Hope this helps. --NJoy


1

Why not use the SPUtility.SendEmail() method in your catch block? try { // Do stuff } catch (Exception ex) { // Handle error string strUserEmailAddress = "Set the email address here"; string strSubject = "Workflow Failed to Start"; string strHTMLBody = "<body><div>Format some message here</div></body>"; using (SPSite ...


1

There is one generic error in SharePoint that will throw the file xxxx has been modified by SHAREPOINT\system And that is when you don't have web.AllowUnsafeUpdates = true; But that error is old, really old IIRC. But the likely reason is that you may be performing more than one update in the same request, so the second update will throw that error ...


1

Thank you very much for the "Overwrite=True" hint, which solved a problem I have spent 10 hours solve. I have a SharePoint Sandboxed Solution which creates a SP Schema in a Subsite with a number og Lookup columns and this works fine when saving as a SP Template. Now I am converting it to a Farm solution and I get this "Error exporting the site field named ...



Only top voted, non community-wiki answers of a minimum length are eligible