No announcements
Found 3551126 threads
-
1 Votes
Pass SPWeb by ref, dispose?
better to dispose it outside of helper method. secondly use the Using block so that it will dispose of the object automnatically after the using ...Answered | 4 Replies | 8254 Views | Created by up_creek - Tuesday, April 19, 2011 2:47 PM | Last reply by Moonis Tahir - Tuesday, April 19, 2011 8:05 PM -
0 Votes
Dispose a SPWeb if SPWeb.Exists is false?
Hi Martin, In my opinion, you still need to dispose the SPWeb object even this web did not exist.Answered | 3 Replies | 5466 Views | Created by Martin Bäckström - Saturday, October 29, 2011 4:48 AM | Last reply by Shimin Huang - Monday, October 31, 2011 2:41 AM -
1 Votes
iNTRESTING qUES: spsite AND spweb dispose
SPWeb must be separately disposed of, before disposing of SPSite.Answered | 4 Replies | 7893 Views | Created by Manoj.verma - Monday, May 2, 2011 12:32 AM | Last reply by Rickee - Tuesday, May 3, 2011 3:22 AM -
0 Votes
Using SPFile after parent SPWeb disposed
You should not reference an SPFile instance outside of the scope of the SPWeb/SPSite from which it was obtained.Answered | 1 Replies | 4058 Views | Created by Jason Venema - Wednesday, April 8, 2009 7:44 PM | Last reply by Jason Venema - Wednesday, May 20, 2009 7:37 PM -
0 Votes
SPWeb dispose issue from current context
Yes, in this approach as well you need to dispose each SPWeb object that is getting created because using will only dispose your SPSite object that you created ...Answered | 7 Replies | 2035 Views | Created by Mohammad Nizamuddin - Wednesday, February 26, 2014 1:23 PM | Last reply by Geetanjali Arora - Thursday, February 27, 2014 1:10 PM -
2 Votes
When should I dispose SPWeb and SPSite objects ?
All you need to do is to run SPDisposeCheck.exe tool after you complete your coding.Answered | 2 Replies | 4006 Views | Created by Ahsan Kabir - Tuesday, July 17, 2012 6:04 PM | Last reply by Sundar Narasiman - Wednesday, July 18, 2012 2:45 AM -
10 Votes
"Trying to use an SPWeb object that has been closed or disposed and is no longer valid."
if you use using (SPWeb spWeb= SPContext.Current.Web), using will dispose the spWeb object after control ...Answered | 11 Replies | 26503 Views | Created by shakstimpson - Thursday, March 17, 2011 10:24 AM | Last reply by jd_hancock - Monday, October 8, 2012 12:40 AM -
4 Votes
Is Passing SPWeb object as value parameter will dispose correctly?
AS you are writing using statment SPWeb object will dispose correctly with this codeAnswered | 3 Replies | 5694 Views | Created by Bagus Ilman - Friday, December 23, 2011 12:37 PM | Last reply by TanajiChavan - Wednesday, April 30, 2014 10:55 AM -
0 Votes
Document metadata using spfile
You should use the SetProperty method of the SPFile class: public static void UpdateFileMetadata() { using (SPSite site = new ...Answered | 3 Replies | 3326 Views | Created by Vinay Kumar Inavolu - Friday, October 5, 2012 8:49 AM | Last reply by Steve.Curran - Wednesday, October 17, 2012 3:35 AM -
0 Votes
When should I dispose SPWeb and SPSite objects?
dispose spweb and spsite if you are not referring to the SPcontext SPsite site = new Spsite("yourURL") < this should be ...Answered | 1 Replies | 2955 Views | Created by Ahsan Kabir - Tuesday, July 17, 2012 6:06 PM | Last reply by Ranjoe - Tuesday, July 17, 2012 6:11 PM -
0 Votes
Disposing SPSite when using (SPWeb w = new SPSite.OpenWeb())
Hi there, ive just develop a wrapper to use with SPDisposeCheck Tool, that displays Xml with errors if so, and its to be used on VisualStudio ...Answered | 7 Replies | 6219 Views | Created by iios.co - Monday, February 2, 2009 1:04 AM | Last reply by Scoutman MVP - Tuesday, February 17, 2009 12:33 AM -
0 Votes
SPWeb Object Disposed Error On New Best Bet
Instead of an error stating 'Keyword cannot be used b/c it is already a synonym', it shows same error: Trying to use an SPWeb object that has been ...Answered | 14 Replies | 9140 Views | Created by 41globalit - Wednesday, June 19, 2013 5:48 PM | Last reply by pyrocam - Wednesday, October 29, 2014 9:22 PM -
0 Votes
Forms Dispose from parent, will it dispose child?
MSDN Topic: http://msdn.microsoft.com/en-us/library/system.windows.forms.form.addownedform.aspx Child forms will be closed properly with ...Answered | 6 Replies | 3722 Views | Created by Mtronix-saints - Monday, January 19, 2009 10:15 PM | Last reply by Erez Robinson - Wednesday, February 20, 2013 8:50 PM -
0 Votes
Writing and Updating (overwriting) an SPFile?
Hi Tezler, You can use the SPFileCollection.Add method to use streams.Answered | 5 Replies | 15837 Views | Created by Tezler - Friday, May 15, 2009 1:56 PM | Last reply by devi_ous - Monday, August 1, 2011 11:06 AM -
0 Votes
Accessing SPFile Object with full URL
Let us know if you need further assistance.Answered | 3 Replies | 6587 Views | Created by troyjerkins - Thursday, August 20, 2009 3:11 PM | Last reply by Peter Holpar - Saturday, August 22, 2009 4:21 AM -
1 Votes
SPFile force checkIn
You are going to have to use the SPCheckedOutFile class to take over the checkout and check it in.Answered | 2 Replies | 5953 Views | Created by Subhrajit Bordoloi - Friday, October 19, 2012 9:25 PM | Last reply by Subhrajit Bordoloi - Tuesday, April 30, 2013 8:39 AM -
0 Votes
i am geeting error messgae like Trying to use an SPWeb object that has been closed or disposed and is no longer valid?
You dispose of the context web in the first block so it is no longer usable in the second block.Answered | 2 Replies | 6629 Views | Created by swapna_l9 - Monday, March 7, 2011 7:15 PM | Last reply by Tyler Hoffmann - Monday, March 7, 2011 8:40 PM -
1 Votes
Disposing objects in a timer job
Yep, per link above and documentation here, looks like using an indexer to get an SPSite or SPWeb, always returns a new object (not a reference), that must ...Answered | 6 Replies | 2990 Views | Created by preambleMe - Wednesday, January 23, 2013 8:35 AM | Last reply by preambleMe - Wednesday, January 23, 2013 11:57 PM -
0 Votes
Disposing object in sharepoint
You need to dispose the web object first and then dispose site object.Answered | 2 Replies | 5176 Views | Created by ok76 - Sunday, November 9, 2008 5:42 AM | Last reply by ok76 - Sunday, November 9, 2008 6:58 AM -
0 Votes
Check access rights of user for SPWeb, SPList
Hi, Suppose you use this code in the UserControl code or Webpart code in Render method or create child ...Answered | 17 Replies | 10358 Views | Created by Shailendra Singh Chauhan - Wednesday, June 2, 2010 9:59 AM | Last reply by Andreas Blueher - Friday, November 25, 2011 8:31 AM - Items 1 to 20 of 3551126 Next ›
No announcements