"Using" and SPRequest object was not disposed

Just trying to understand what is happening here. I have an event receiver that currently is not working (yet to find the bug).
The code is incredibly simple and uses 2 "using" statements as per best practise in order to ensure the the objects are disposed of.
When I look in the ULS logs and get the error for my event receiver it is immediatly followed by the "SPRequest object was not disposed" messages that I'm sure you have seen.
Given that my code is within a using statement how can this be true?
If there is a problem does "using" not clean up after itself like a try/catch may?
I could change my code to be try/catch and clean up within the finally block but I thought using might clean up.
Is this not the case or am I misunderstanding something?
public override void ItemAdding(SPItemEventProperties properties)
base.ItemAdding(properties);
string theCourseName = properties.ListItem.Title;
using (SPSite site = new SPSite(properties.WebUrl))
using (SPWeb web = site.OpenWeb())
SPListTemplate theTemplate = web.ListTemplates["CourseFeedback"];
web.Lists.Add(theCourseName + ", Feedback", "Feedback from the course you attended", theTemplate);

Hi QPR_JAY,
If full of the error message content is"An SPRequest object was not disposed before the end of this thread",here is an article about it, and gave the reason and solution.
http://littletalk.wordpress.com/2010/07/06/an-sprequest-object-was-not-disposed-before-the-end-of-this-thread/ .
A similar post:http://social.technet.microsoft.com/Forums/sharepoint/en-US/d12df69e-12fb-4fe9-8707-40e34a1faae0/sharepoint-uls-logs-an-sprequest-object-was-not-disposed-before-the-end-of-this-thread
Qiao Wei
TechNet Community Support

Similar Messages

  • Error:[The specified object was not found in the store] when trying to read another mail box using Delegate access

    Hi all,
    I need to create service to access all unread mails of  other mailbox's every time in Exchange server 2013, for that i trying to use Delegate access.
    but i am not succeed. I am getting Error Every time : [The specified object was not found in the store]
     error shows in FolderId in  
    var folderId = new FolderId(WellKnownFolderName.Inbox, userMailbox);
    List<DelegateUser> newDelegates = new List<DelegateUser>();
    DelegateUser emailDelegate = new DelegateUser("[email protected]");
    emailDelegate.Permissions.InboxFolderPermissionLevel = DelegateFolderPermissionLevel.Editor;
    newDelegates.Add(emailDelegate);
    Mailbox mailbox = new Mailbox("[email protected]");
    Collection<DelegateUserResponse> response = service.AddDelegates(mailbox, MeetingRequestsDeliveryScope.DelegatesAndSendInformationToMe, newDelegates);  var userMailbox = new Mailbox(useremail);
        var folderId = new FolderId(WellKnownFolderName.Inbox, userMailbox);
        var itemView = new ItemView(20);   
        var userItems = service.FindItems(folderId, itemView);
     i changed my code in many ways by adding new Delegate User with different folder permissions.
     but i am getting same Error, Please help me.

    That error means you don't have rights to the Mailbox your trying to access. In Exchange by default the only user that has access to mailbox is the owner of the Mailbox, Exchange Administration rights does not grant you access to another users mailbox. You
    need to either specifically grant rights to each mailbox using Add-MailboxPermissions or use EWS impersonation where you can impersonate the owner of the Mailbox see
    http://msdn.microsoft.com/en-us/library/bb204095(EXCHG.140).aspx and
    http://msdn.microsoft.com/en-us/library/office/dd633680(v=exchg.80).aspx
    Cheers
    Glen

  • ADMT 3.2 Group Migration - Include File error: The object was not found in the domain

    Hello,
    I have been digging for weeks and still no answer. I am trying to migrate Group across two domains and if I select the group, it works just fine. But I want to bulk-migrate groups. So I am going the Include-File route. when ever I load the file I get
    the bulk of the groups processed but I get a dialogue box that states:
    The following objects are either not found or do not meet selection requirement. No migration will be performed on these objects.
    Then I get a list a group and the message states:
    The object was not found in the domain "contoso.com"
    Does any one know anything about this or how to fix it? I have compared the files with good/bad versions using ADSI edit and from its POV they look the same.

    Hi,
    Thanks for your post.
    There is an attribute named "showInAdvancedViewOnly" which specifies whether the object is to be visible in the "Advanced" mode of user interfaces. This is to say, if the schema attribute "ShowInAdvanceViewOnly" is set to TRUE for any security principal
    in AD, we would not be able to find that account or group while trying to migrate it except the simple ADUC search. Just as the issue you encountered.
    Therefore, please enable the "Advanced" mode in Active Directory Users and Computers, and then check if the three groups could be migrated or not.
    If anything unclear or you have any questions about this case, please feel free to let me know.
    Thanks and I look forward to your reply.
    Best regards,
    Ann Zhu

  • Crawling error: The object was not found SPS 2010 FBA

    Hi,
    We have a SharePoint 2010 Foundation environment. This environment contains one app two front ends and an SQL backend server. We have a web application on port 80 with hostheader http://subdomain.domain.com which is extended to port 81 (http://subdomain.domain.com:81).
    We have two zones: Default and Intranet. Both has forms based authentication enabled but only Intranet has NTLM enabled.
    In the alternate access mappings we have the following configured:
    Internal URL Zone
    Public URL for Zone
    http://subdomain.domain.com:81 Default
    https://subdomain.domain.com
    https://subdomain.domain.com Default
    https://subdomain.domain.com
    http://subdomain.domain.com Intranet
    http://subdomain.domain.com
    The SharePoint is publishd by Checkpoint on URL: https://subdomain.domain.com and is reachable outside the company only with forms authentication. We can login to http://subdomain.domain.com inside the network with NTLM authentication. The system is working
    fine.
    However we installed Search Server Express 2010 on all servers and configured it. The main configuration steps were:
    content access account setup
    full read permission to all zones for content access account
    Checked DB permission for content access account
    DisableLoopbackCheck configured on all servers
    content source is set to http://subdomain.domain.com (Intranet URL?) to use NTLM authentication
    Tried to set crowl rule to http://subdomain.domain.com/*
    When I start a full crawl I only get one Top Level Error: 
    The object was not found. ( Error from SharePoint site: HttpStatusCode NotFound The request failed with HTTP status 404: Not Found. )
    We also have a developer environment. This environment is a "one men show". All of the roles are on the same machine but all configurations are the same. We also installed Search Server Express 2010 on the developer SharePoint and all works properly.
    I googled days and tried a lot of possible solution but nothing helped. 
    Does anyone have idea what do I wrong?
    Thanks!
    I'm not a developer! I'm an infrastructure engineer! Please be patient on the development forums! :)

    Thanks for the reply.
    Loopbackcheck disabled on all servers.
    We can browse site on search server.
    IIS binding is correct on all SPS servers.
    We have no entry on host file.
    Edit: I have to correct myself! Some of the administrators (I think) set host host file. I rechecked after Inderjeet comment and this resolved this issue.
    Thanks to pointing me to double check allways if I think something is correct. (Anyway this was the only thing I didn't rechecked).
    Thanks!
    I'm not a developer! I'm an infrastructure engineer! Please be patient on the development forums! :)

  • Supporting objects was not installed successfully from the APEX 3.2 to 4.1

    Hi, gurus:
    greetings! I have a question regarding migrating application from 3.2 to 4.1. I need to migrate an application in a APEX 3.2 workspace to a new workspace of APEX 4.1. I exported the application from the APEX 3.2 workspace and imported it again to workspace of APEX 4.1, everything works fine except supporting objects was not installed successfully, and the application cannot show images. Could anyone give me a hint to find the cause and solution?
    Thanks a lot!
    Sam

    Hi, Tony:
    Nice to see you again! :) It proved out that was due to the wrong file format, I should choose UNIX file format to export my application from APEX 3.2 workspace instead of choosing DOS file format to export. Though I am still confused, Why this does matter? I used to export and import with random file type, as long as I keep consistency of file type for export and import, it never give me trouble like this.
    I got the following error message
    The following prerequisite checks failed. Installation of this application's supporting objects cannot continue until these issues are resolved.
    To continue installation after addressing the errors, navigate to the Supporting Object Definitions of this application and click INSTALL in the Supporting Objects Installation section.
    Alternatively, you can deinstall the application definition and reinstall after resolving these issues.
    Object Names:     EBA_CUST_ACTIVITY_TYPES, EBA_CUST_ADMINISTRATORS, EBA_CUST_ASSOCIATIONS, EBA_CUST_CATEGORIES, EBA_CUST_CONTACTS, EBA_CUST_CONTACT_TYPES, EBA_CUST_CUSTOMERS, EBA_CUST_CUST_ACTIVITY, EBA_CUST_LINKS, EBA_CUST_STATUS, EBA_CUST_VIEWS_LOG, EBA_CUST
    Sam
    Edited by: lxiscas on Dec 11, 2012 7:06 AM

  • I cannot log in to a MAC 10.5.8 and File Vault was NOT turned on.

    Dear Mac Experts:
    I know that there are many pages of information about using, remembering and managing passwords. I have read most of them.I know the passwords and File Vault was not on.  I am working at someone's home on their computer and running their business.  The computer is running MAC 10.5.8 and I don't know if it can be updated.  The computer had  an Admin account and no user accounts.  I tried to change this so the compuer would be secure but my client did not want to.    When I left yesterday the computer was fine.  When I came in today there were a number of apps hanging.  I forced quit Firefox and some other apps and logged out an shut down the computer.  When I tried to log into the Admin Account which is the main user account  I got the  error messages below:
    Your FileVault-protected home folder did not open and needs to be repaired.
    click ok to repair the folder and continue logging in.
    I clicked ok
    then I got a new error message:
    You are unable to log in to the user account "x" at this time because and error occured.
    Clicked OK
    File Vault was not turned on at anytime that I know of in the last couple of months.  I luckily had a guest user set up and logged in as guest. In order to create another Admin account I had to use the  password for the initial Admin main user account which unlocked the preferences pane and allowed me to create a new Admin Account.
       Checked that FileVault was turned off.
    After reading all of your comments and suggestions for the last 2 hours my head is spinning. 
    I don't know unix or type commands.  I don't know where the install discs are. 
    As the new Admin I went into the keychain files and tried to verify and repair the original Admin's info.
    Here is what I got:
    Verification started
    Checking keychain configuration for Susan F (user ID=501)
    Home directory is /Users/suero
    Checked login keychain
    Error: login keychain not found
    Unable to get info for ~/Library/Keychains/login.keychain, reason: No such file or directory
    Checked password for ~/Library/Keychains/login.keychain
    Unable to verify password for ~/Library/Keychains/login.keychain (-25294)
    Unable to read settings for ~/Library/Keychains/login.keychain (-25294)
    Checked default keychain
    Problems were found; you should choose the Repair option to fix them
    Verification failed
    Repair started
    Checking keychain configuration for Susan F (user ID=501)
    Home directory is /Users/suero
    Checked login keychain
    Error: login keychain not found
    Warning: some problems were not fixed
    Repair failed
    The machine is backed up onto a lacie external hard drive every hour.
    In addition,  while I was poking around I found the following:
    com.apple.kerberos.kdc   certificate
    not trusted
    com.apple.systemdefault certificate
    not trusted
    Could there be some malware at work?  What can I do to get her files, home directory and everything back?
    Thank you in advance for your patience with an old OS and a MAC user who does't feel comfortable mucking around under the hood.
    Tracy
    Message was edited by: TracyCV

    Hi Tracy,
    I don't suspect Malware yet, Id guess Disk corruption or failing Hard Drive with Files not found.
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • Error message: "the software required for communicating with Ipods and mobile phones was not installed correctly....

    2 error messages when opening itunes: "The software required for communicating with Ipods and mobile phones was not installed correctly.  Do you want Itunes to repair this for you?"  When clicking yes another message indicates not able to remove services.  Another message is: "Service (ipod service) could not be installed.  Verify that you have sufficient privileges to install system sources."  I've uninstalled all Apple services (itunes, quicktime, apple software update, apple mobiles devices support, bonjour and apple application support and reinstalled itunes/quicktime - no change in error messages.  I cannot burn CDs using Itunes.  This all seemed to happen when I updated itunes to version 10.  I have a Windows 7 64-bit operating system on a Dell Inspiron Zino HD; the Itunes software is also 64 bit.

    See the second box of  Troubleshooting issues with iTunes for Windows updates.
    tt2

  • I received an error "iTunes requires 64-bit mode" says to go into my iTunes application and 'uncheck' the 'open in 32-bit mode' checkbox - i went into the application and the box was not checked anyway so why am i getting this prompt?  Never happened b4

    i received an error message "iTunes requires 64-bit mode" says to go into my iTunes application and 'uncheck' the 'open in 32-bit mode' checkbox - i went into the application and the box was not checked anyway so why am i getting this prompt?  Never happened before. yesterday did the sofware update for maverick.

    Thank you for your response, Chris. But I'm afraid I have to disagree. There are native 64 bit versions of iTunes available for OSX and Windows.
    In a 64 Bit Windows environment native 64 Bit Applications install the DLL's in a directory called "Program Files" and a directory called "Program Files (x86)" (32 Bit applications only use the ladder).
    iTunes 9 is consistent with this behavior - and it identified itself to the system as a 64 bit application (meaning it's process appears without a "*32" tag on it).

  • Error in CK11N ( Object was not costed )

    Dear All,
    In CK11N run with Costing variant NTAX.  Error message CK 060 Object was not costed.
    I updated moveing average price in material master - accounting 2 - Tax price 1 field i give the value.
    Please help me on this.
    Best Regards,
    Venkat.
    Edited by: venkateswarlu reddy on Sep 18, 2009 6:58 AM
    Edited by: venkateswarlu reddy on Sep 18, 2009 7:18 AM

    Hi,
    there could be variety of issue that would result in a cost object not being costed.
    You need to check the error log and find out what exactly the issue and then resolve it.
    Best regards
    Surya

  • Error : 'RepeatingSeparator' is used but either it was not specified or it

    Hi All,
    I am trying to enqueue a EDIFACT ORDERS(version D07B) xml to the IP_OUT_QUEUE and getting the following error.
    Error : 'RepeatingSeparator' is used but either it was not specified or it was suppressed.
    Any pointers on what to check here????
    Regards,
    Praveen
    Edited by: Praveen I on Mar 22, 2010 11:37 AM

    Hi Praveen,
    Not sure if your payload has internal properties, which consists of delimiters. If so, since the delimiters are configured in B2B as well, do not provide the internal properties
    Regards,
    Dheeraj

  • The software required for communicating with ipod and mobile phones was not installed correctly

    ok i've seen this in several threads and haven't found one with an anwser. the software required for communicating with ipod and mobile phones was not installed correctly. of course when you tell it to repair it does not. this has happened several times now and only cure i have found is uninstalling itunes and reinstalling. works for maybe a few weeks then does the same thing and i start all over again with uninstall and reinstall. i tunes version 10.4.1.10  64 bit running on windows 7 64 bit and trying to sync with Iphone 3gs - so anyone have a fix for this or am i stuck reinstalling itunes every few weeks???

    "The feature you are trying to use is on a network resource that is unavailable.  Click OK to try again, or enter an alternative path to a folder containing the installation package "iTunes64msi"
    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • All of a sudden my iTunes stopped working, and I get the following error messages:   1. the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem   and   2. iTunes was not installed correct

    All of a sudden my iTunes stopped working, and I get the following error messages:
    1. the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem
    and
    2. iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 126).
    Now I've checked the forums and followed the advice of uninstalling all Apple applications, rebooting, and reinstalling iTunes.
    This is not working. I've tried installing as Administrator but doesn't make any difference at all.
    There must be a way to fix this? I'm not a tech geek but I want to avoid having to take my laptop back to factory settings to sort this out.
    Thanks

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99192)

  • TS1717 Having trouble running iTunes version 11.0.2 on a Dell Laptop running Windows 7 Professional Service Pack 1.  Keep getting an error message "the software required for communicating with iPods and mobile phones was not installed correctly..." reinst

    Having trouble when I launch iTunes (version 11.0.2) on my Dell Laptop running Windows 7 Professional (service pack 1).  I get an error message indicating software required to communicate with iPod and mobile phones was not installed correctly.  Do you want iTunes to try to repair this for you?  I normally respond with OK and it immediately tells me "could not be repaired.  Please reinstall iTunes..."  I have done this a number of times to no avail.

    I also notice Quicktime is not getting installed at all.
    That one is normal nowadays (ever since the iTunes versions 10.5.x).
    The software required for communicating with iPods and mobile phones was not installed correctly. Do you want iTunes to try to repair this for you?
    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you?
    If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.)

  • HT1339 my older iPod my husband wants to use and his netbook does not have cd drive. How do I down load iPod and iTunes info for this product so he can now use it?

    my older iPod my husband wants to use and his netbook does not have cd drive. How do I down load iPod and iTunes info for this product so he can now use it?

    Your question(s) is/are a little hard to understand.  So your husband has an iPod as well as a netbook and he wants to be able to sync iPod with this netbook is that correct?  If so, he'll need to first download and install iTunes assuming the netbook is running some version of Windows such as 7, Vista, or XP.
    http://www.apple.com/itunes/download/
    As for importing or ripping music, he'll have to either use an external CD/DVD drive that is attached via USB or rip the songs to another PC you have with a built in CD/DVD drive.  Once you have imported them to the other computer, you can transfer the songs to an external hard drive or to his iTunes library via Home Sharing.
    If this isn't quite what you were looking for, please clarify.
    B-rock

  • HT1349 Actually, my iphone was hanged and its screen was not working at all .So, I updated its software from market but for reactivation it require icloud account but i didn't know how exactly it is and i was caught in big trouble . But i have its box and

    Actually, my iphone was hanged and its screen was not working at all .So, I updated its software from market but for reactivation it require icloud account but i didn't know how exactly it is and i was caught in big trouble . But i have its box and all other accessories .So , kindly help me as early as possible .Thankyou    and tell me about its solution
    <Email Edited by Host>

    Basic troubleshooting steps outline in the manual are restart, reset, restore from backup, restore as new.  Try each of these in order until the problem is resolved.  If you've been through all these steps and the trouble persists, you'll need to bring your phone to Apple for evaluation.  Be sure to make an appointment first at the Genius Bar so you won't have a long wait.
    Best
    GDG

Maybe you are looking for

  • What will happen If I update my factory locked iphone 4 to iOS 7?

    I have a factory locked iphone.I just forgot the passcode now i want to restore it itunes are showing the message that it can restore & update only.i want to know that if i update ios7 what will happen.you can also help me how to restore my iphone wi

  • Problem with Guided Procedure

    Hello, using the Guided Procedures I have modeled an approval workflow. After a requester submits a request, the request should be delegated to an approver. However, when the requester actually submit the request, I get an error message which reads "

  • How to display icon symbols for a field in se38 program

    HI IAM VIJAY. PLS GIVE ME THE SOLUTION . how to display icon symbols for a field in se38 program. WITH REGARDS. VIJAY.

  • Mass upload of purchasing status in Service Master Record

    Dear ALL, I want to mass upload of Purchasing status in Service master record. Please guide me how to mass upload purchasing status in service master record? Thanks & Regards SKKADAM

  • Need Time stamp like yyyymmddThhmmssGMT

    Hi Friends, i am doing file to file scenario. i am getting file with time stamp as 20081020-062614-501.txt.  But i want Time stamp as yyyymmddThhmmssGMT.txt. please give me replies. Thanks Anil M