Making sure I understand release/retain correctly

Let's say I do the following (foo starts out as some object):
[foo release];
// STUFF with foo
[foo retain];
As long as I'm not re-assigning foo, at the end of this I'll still have the same foo, right? I'm not risking losing foo during the //STUFF am I?
I guess I'm making sure that my understanding of release is correct. If I release foo, it doesn't actually go away until all handles on it are gone. In other words, foo would have to be assigned to some other object in the //STUFF, or foo would have to go out of scope in the //STUFF (and presumably have a new foo created) in order for the actual original foo object to be deleted, right?
Ok, edit for motivation, because that's kind of a dumb thing to want to do, right?
The reason I want to do this is that lets say I have the following switch statement:
switch (test)
case 1:
foo = [A alloc];
[foo inita];
break;
case 2:
foo = [B alloc];
[foo initb];
break;
case 3:
[foo setupc];
break;
case 4:
f = [D alloc];
[foo initd];
break;
It makes sense to release foo before the switch and retain it at then end. EXCEPT for case 3. So, I was thinking that if was safe to do what I proposed, it might make the code simpler.
Of course I can just put a release/retain pair around each alloc/init, but that's a lot of replicated code...
A [foo autorelease] and then the retain might just do the trick.
Message was edited by: Brian Postow

Brian Postow wrote:
Let's say I do the following (foo starts out as some object):
[foo release];
// STUFF with foo
[foo retain];
As long as I'm not re-assigning foo, at the end of this I'll still have the same foo, right? I'm not risking losing foo during the //STUFF am I?
There is no way to tell. If the retain count of foo was one just before the release, then all bets are off.
I guess I'm making sure that my understanding of release is correct. If I release foo, it doesn't actually go away until all handles on it are gone.
I'm not sure I understand your understanding. I wouldn't use a term like "handle" since that has a specific meaning that is different than "retain count". If you replace "handle" with "retain count", then you are correct.
In other words, foo would have to be assigned to some other object in the //STUFF, or foo would have to go out of scope in the //STUFF (and presumably have a new foo created) in order for the actual original foo object to be deleted, right?
I'm not sure what you are saying. Objective-C is not C++. A variable going out of scope means nothing in Objective-C. It isn't that complex. It keeps track of the number of times "retain" is called on the object (including the original, implicit "retain"). When the number of releases matches the number of retains, then the object is deallocated.
Ok, edit for motivation, because that's kind of a dumb thing to want to do, right?
The reason I want to do this is that lets say I have the following switch statement:
switch (test)
case 1:
foo = [A alloc];
[foo inita];
break;
case 2:
foo = [B alloc];
[foo initb];
break;
case 3:
[foo setupc];
break;
case 4:
f = [D alloc];
[foo initd];
break;
You don't want to do that. Alloc-init is a set of operations. You can't spit them up. The object that "alloc" returns may not necessarily be the same object that "init" returns. "Alloc" may just return a global proxy object to do something more clever during the init.

Similar Messages

  • Hi all! What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    Buying more hard drive space is a very valid option, here.  Editing takes up lots of room, you should never discount the idea of adding more when you need it.
    Another possibility is exporting to MXF OP1a using the AVC-I codec.  It's not lossless, but it is Master quality.  Plus the file size is a LOT smaller, so it may suit your needs.

  • I rcvd an AppleService emaiDue to recent updates we are asking many of our customers to confirm their information this is nothing to worry about. We are making sure we have the correct information on file..." Is this real or a scam?

    I rcvd an AppleService email
    Due to recent updates we are asking many of our customers to confirm their information this is nothing to worry about. We are making sure we have the correct information on file and that you are the rightful account holder. Failure to comply with this may result in your account being suspended.
    Is this real or a scam?

    If you changed your Apple ID, you will not  be able to update any of the content that you used in the past. The worse case scenario here would have been to change the password. Really all you needed to do was go on the Apple site and change the password, unless you provided them with information. This will make it difficult for you to deal with turning off Find My iPhone and other Apple ID related steps. All you really needed to do was delete the email.

  • I got given a $100 gift card and when i enter the code (making sure it is correct) it says its invalid

    I recieved a $100 itunes giftcard for my birthday and when i try to enter it, it says its invaled!
    ive tried many times making sure everything is correct but it doesnt work????

    Was the gift card issued in the same country as your account is based ? They are only valid in their country of issue. If it was and this page doesn't help then you will need to try contacting iTunes support (you will need to give them the serial number and activation code from the card) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes

  • HT5035 Just making sure, so my $11.75 hanging out to be redeemed has already been applied to my bank account ,and when I purchase app, it will deplete from that particular credit....correct?

    Hi all,
    Just making sure, so my $11.75 hanging out to be redeemed has already been applied to my bank account ,and when I purchase app, it will deplete from that particular credit....correct?

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • I created a ringtone successfully and assigned it to a contact, but the default ring always answers, I've tried deleting the contact, and also shutting the phone down completely, but neither has worked. One tip mentioned making sure format was correct??

    I assigned a ringtone to a contact but the default answers.  I've tried deleting the contact and reinstalling it and  shutting the phone down (holding the home button in and the top button until apple icon appears), One tip mentioned making sure the format was correct. ???  Any suggestions?  The ringtone itself works if used as a default, but when I assign it to this contact, no dice.

    First thing to always do is write a Certified Return Receipt letter or just copy the post you made and send it to Verizon Wireless and dispute it in writing.
    Then walk down to your local court and file a small claims court case against Verizon for all the fraudulent charges. Verizon will call you before that court case and then it may be possible to get this wiped off your account.
    Also file a BBB complaint http://www.bbb.org
    Again Verizon will contact you to offer to settle. Get the settlement in writing not verbal. Or proceed to court.
    Sorry you are going through hell for something you should never have had to go through.
    Good Luck

  • TS1646 I'v tried many times to update my applications however, my account can't do it because security code for my card is incorrect note that I'm sure my card details are correct completely so i need help to fix it as much as you can plz. Thnks

    Hi
    I'v tried many times to update my applications however, my account can't do it because security code for my card is incorrect note that I'm sure my card details are correct completely so i need help to fix it as much as you can plz. Thnks

    Look, I understand I still need a card attached to the account. The problem is, it won't accept my card because I only have 87 cents in my bank account right now.
    If I had known there would be so much trouble with the iTunes card, I would have just put the cash in my bank account in the morning instead of buying an iTunes card (I didn't expect the banks to be open on Thanksgiving of course).
    Apple will only accept cards that have a balance. The balance is so small in my account that it won't accept it as a valid card.
    I'm going to have to contact Apple anyway to reset the security questions. That's obvious. Your answers were not exactly helpful. You didn't tell me anything I don't already know, but thanks for trying to be helpful.

  • My photos aren't being moved automatically from my iphone 5c to my laptop. i've tried making sure the email addresses match. how can i be sure? or is there another problem.

    my photos aren't being transferred from my iphone 5c to my laptop. this option had been working on my 4s until just before i changed over to the 5c. i have tried making sure the email address on the phone and the laptop agree. perhaps i haven't done that correctly. or is there another problem?

    Hi graylady66,
    Welcome to the Support Communities!
    Have you set up Photo Stream on your iPhone 5C?  I can't tell what computer you have from your post, so I'll include all of the Photo Stream information for you:
    iCloud: Photo Stream
    http://support.apple.com/kb/PH2596
    iCloud: Set up My Photo Stream
    http://support.apple.com/kb/PH13693
    iCloud: My Photo Stream troubleshooting
    http://support.apple.com/kb/TS3989http://support.apple.com/kb/TS3989
    Cheers,
    - Judy

  • Z87 g45 gaming...raid 0 and an ssd. Not sure i understand

    I have been reading up this while my part are on a ups truck somewhere. Not sure i understand.
    I realize that for the ssd the Sata needs to be set to achi before I install windows. Then Install windows 7 pro on the ssd.
    Then I am lost. I bought this board because of the feature of inboard raid setup. Maybe all boards have this? This is all new to me. Trying to learn.
    If the Sata is set to achi, will that screw up the raid?
    Planned on raid 0 with two WD 1tb blue drives.
    I read the manual, but didnt make sense.
    Will this show up as ONE drive +\- 2tb in My Computer?

    Quote from: Goodteacher on 04-September-13, 11:51:05
    I have been reading up this while my part are on a ups truck somewhere. Not sure i understand.
    I realize that for the ssd the Sata needs to be set to achi before I install windows. Then Install windows 7 pro on the ssd.
    Then I am lost. I bought this board because of the feature of inboard raid setup. Maybe all boards have this? This is all new to me. Trying to learn.
    Nope. You Should set your MB SATA controller to RAID otherwise your OS dont know how to control it if you turn it to RAID mode after you have installed it in AHCI mode.
    - In RAID mode it controls drives at RAID array(s), like they are set (RAID 0,1,5,6,10,...) and those that arent in any RAID array it controls like AHCI and so on OS installation it installs drivers and register for it like so.
    - In AHCI mode it controls all drives like AHCI and so on OS installation it installs drivers and register for it like so.
    Edit: So easyes thing is to set your SATA controller in RAID mode and install your OS thatway. Because, then you never have to worry about it as it has controllers to hole thing.
    - But if you Install OS (Windows) in AHCI it wont have correct registery or drivers for that same controller if you someday want to use other drives in any RAID and so you would get BSOD on loading/starting screen.
    Quote
    If the Sata is set to achi, will that screw up the raid?
    Nope it wont screw already existing RAID array, choose RAID to that controller again and you have your RAID array back. That is if you havent edit those drives in anyway.
    Example: setting SATA controller back to AHCI is only way to upgrade drives Firmware if one is needed, as that software need to see the single drive in that array to do it.
    Edit2: Seeing problem is on drives that are in RAID array and those that arent set in any RAID 0 array or so, should get thrue FW update just fine (there can be some exceptions on here) .
    Quote
    Planned on raid 0 with two WD 1tb blue drives.
    I read the manual, but didnt make sense.
    Will this show up as ONE drive +\- 2tb in My Computer?
    Yes, on your setup, that SSD would show as one drive and that RAID array as one drive. So you would see 2 drives where choose your os drive if you have them already setuped before OS install.
    - Every drive you add to RAID 0 array adds space without losing it and allso you get more speed after everey add to point where you get limits of cotrollers speed. That is, if you get there before you have populated all ports.
    - Every drive you add to RAID 1 array would add more secure of your data, but you would get only the space to use that your smallest drive have as all drives have 1 to 1 copy of every file.
    P.s. when you install the Windows I recormend to have only that drive installed where you want your sytem be in! or your files can be stripped in every drive and then if one drive fail you may get weard BSOD's that are hard to get to!
    Most likely this mess happends when one of the drives has already have OS in it on onetime of its life (formating the drives wont make difference).
    Edit3: i personaly have used RAID 0 years and never have hade a problems. But if one of those drives fail, then i lose all my data on that RAID 0 array and thats why i go with oldsaying from the time when PCs start to make in the homes "Allways backup your files ! "

  • I can't activate my iPad and I'm sure i am using the correct apple id and password but when i press net it says it cannot be used to unlock this iPad

    i can't activate my iPad and I'm sure i am using the correct apple id and password but when i press net it says it cannot be used to unlock this

    You can try to figure out which Apple ID/email address and/or password you used to activate it by going to http://iforgot.apple.com
    If you can't, you'll need to contact Apple Account Security with your proof of purchase. 

  • I keep getting the message, "Windows cannot find 'c:\Program Files (x86)\Mozilla Firefox\firefox.exe'. Make sure you typed the name correctly, and then try again." I get it when I either try to open it from the Start menu or from the desktop icon.

    I've just installed Firefox on my laptop and keep getting the message, "Windows cannot find 'c:\Program Files (x86)\Mozilla Firefox\firefox.exe'. Make sure you typed the name correctly, and then try again." I get this message whenever I either try to open it from the Start menu or from the desktop icon. I've never gotten it to work and even uninstalled it and then redownloaded it and still cannot get it to open. Any help would be greatly appreciated!!!!

    Are you installing from the official site? http://www.mozilla.com/firefox
    If you use Windows Explorer (My Computer) to check that path, is the Mozilla Firefox folder there? That is the normal installation location, but I think it's worth checking.
    If the folder isn't there or firefox.exe is not in it, I wonder whether some other software might be interfering. You might want to run some supplemental security scans. These two tools are highly regarded:
    Malwarebytes Anti-malware : http://www.malwarebytes.org/products/malwarebytes_free
    SUPERAntiSpyware : http://www.superantispyware.com/

  • Make sure your network settings are correct and your network connection is active, or try again later; Have been trying to fix for ages.

    Hi Everyone, been struggling all day to restore my settings on my ipod, as my little brother has put a restriction password in place and made me not able to get into Safari, iTunes, Camera which I really need. I have tried everything, resetting my proxy settings, turning off the firewall, changing my network location, ran diagnostics. Everything seems fine on that, I post below my results. I also tried restoring from the device, but with the restrictions code in place I can not do so. And everytime I am dowloading the software update before the restore it comes up with 'Make sure your network settings are correct and your network connection is active, or try again later'. I have been using google for ages and am not sure what I have missed.
    I am using Windows 7 with an Acer Notebook.
    DIAGNOSTICS:
    Microsoft Windows 7 Enterprise Edition Service Pack 1 (Build 7601)
    Acer Aspire One 753
    iTunes 11.0.2.26
    QuickTime 7.7.3
    FairPlay 2.3.31
    Apple Application Support 2.3.3
    iPod Updater Library 10.0d2
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 6.1.0.13
    Apple Mobile Device Driver 1.64.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 00BCBEE0093E4EF0
    Current user is not an administrator.
    The current local date and time is 2013-04-05 19:32:36.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    Video Display Information
    Intel Corporation, Intel(R) HD Graphics
    **** External Plug-ins Information ****
    No external plug-ins installed.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:     {E1CB97AA-CDFF-4C43-8F63-658D7E70A39F}
    Description:     Intel(R) Centrino(R) Advanced-N 6205
    IP Address:     172.16.42.14
    Subnet Mask:     255.255.255.0
    Default Gateway:     172.16.42.1
    DHCP Enabled:     Yes
    DHCP Server:     172.16.42.1
    Lease Obtained:     Fri Apr 05 19:01:59 2013
    Lease Expires:     Fri Apr 05 20:01:59 2013
    DNS Servers:     172.16.42.1
    Adapter Name:     {44D6CC7B-1F1E-4F26-BBB8-18F98A868E2B}
    Description:     Atheros AR8151 PCI-E Gigabit Ethernet Controller (NDIS 6.20)
    IP Address:     0.0.0.0
    Subnet Mask:     0.0.0.0
    Default Gateway:     0.0.0.0
    DHCP Enabled:     Yes
    DHCP Server:
    Lease Obtained:     Thu Jan 01 11:00:00 1970
    Lease Expires:     Thu Jan 01 11:00:00 1970
    DNS Servers:
    Active Connection:     LAN Connection
    Connected:     Yes
    Online:          Yes
    Using Modem:     No
    Using LAN:     Yes
    Using Proxy:     No
    Firewall Information
    Windows Firewall is on.
    iTunes is enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was successful.
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2013-02-14 17:34:33.
    **** Device Connectivity Tests ****
    iPodService 11.0.2.26 is currently running.
    iTunesHelper 11.0.2.26 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B34.  Device is working properly.
    Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B3C.  Device is working properly.
    No FireWire (IEEE 1394) Host Controller found.
    Connected Device Information:
    Daniel Pugh's Ipod, iPod touch (4th generation) running firmware version 6.1.3
    Serial Number:     C3XDN3C5DCP7
    Most Recent Devices Not Currently Connected:
    iPhone 4S running firmware version 5.0.1
    Serial Number:     C38GKQWZDT9Y
    **** Device Sync Tests ****
    Sync tests completed successfully.
    Kindest Regards
    Daniel (Puggy858)

    Hi Diesel vdub,
    Did that and I tried again, download stops halfway through and comes up with same message I have already quoted. Wifi Signal is 5/5, network is working, just not letting me download via iTunes.

  • TS1368 I can not connect to the ITunes store. I have updated my apple ID and made sure that everything is set correctly. However, I can not purchase or update any apps no matter what I do. My partner has the same phone and hers works perfectly. I'm not su

    I can not connect to the ITunes store. I have updated my apple ID and made sure that everything is set correctly. However, I can not purchase or update any apps no matter what I do. My partner has the same phone and hers works perfectly. I'm not sure how to sort this out. Please help
    Thanks
    Andy

    I've been having this problem for weeks and have found no solution to it. There are lots of other people with this issue too if you look back on the boards. I even e-mailed AND called Apple and have had no luck. I tried all the suggestions they gave me and all the ones I found on here- nothing worked. I even uninstalled and re-installed iTunes (boy was that a pain!) and no difference.
    The weird part is that I have an old laptop that works and if I buy music with the laptop I can download it with my regular computer buy buying does not work on my regular computer. That tells me it's not a connection issue. I can't get to my account either.
    I can't figure out why an issue that has kept so many people from purchasing a product has been ignored!

  • Unable to retrieve clouds on VMM server. Please make sure the server name is correct and try connecting again

    I getting this annoying error "Unable to retrieve clouds on VMM server. Please make sure the server name is correct and try connecting again."  I've followed the recommended documentation for setting up SPF and Azure using the following:
    http://www.hyper-v.nu/archives/mvaneijk/2013/01/installing-and-configuring-system-center-service-provider-foundation/
    I've gone thru the troubleshoot steps from the following:
    http://blogs.technet.com/b/scvmm/archive/2014/03/04/kb-the-windows-azure-pack-service-management-portal-does-not-retrieve-cloud-settings.aspx
    http://social.technet.microsoft.com/forums/windowsazure/en-US/363e7dae-7370-4605-bc8d-b98fa6dc9d8e/unable-to-register-vmm-server
    So you don't need to send me those links.
    I found a few others which pointed me to the event logs WindowsAzurePack\MGmtSVC-AdminAPi and AdminSite.  In these event logs, I see a lot of event ID 12 and 1046.  The contents of event id 12 is the following:
    Log Name:      Microsoft-WindowsAzurePack-MgmtSvc-AdminSite/Operational
    Source:        Microsoft-WindowsAzurePack-MgmtSvc-AdminSite
    Date:          6/19/2014 3:27:55 PM
    Event ID:      12
    Task Category: (65522)
    Level:         Error
    Keywords:      None
    User:          IIS APPPOOL\MgmtSvc-AdminSite
    Computer:      usw-azure-01.uswired.com
    Description:
    Error:ManagementClientException: Resource not found.
    <Exception>
      <Type>ManagementClientException</Type>
      <Message>Resource not found.</Message>
      <StackTrace><![CDATA[
       at Microsoft.WindowsAzure.Server.Management.ManagementClientBase.<ThrowIfResponseNotSuccessful>d__2b.MoveNext()
       at Microsoft.WindowsAzure.Management.TaskSequencer.<>c__DisplayClass1e`1.<RunSequenceAsync>b__1d(Task previousTask)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.WindowsAzure.Server.SystemCenter.AdminExtension.Controllers.SystemCenterAdminController.<GetResourceProviderAsync>d__2e7.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.WindowsAzure.Server.SystemCenter.AdminExtension.Controllers.SystemCenterAdminController.<GetAutomationResourceProvider>d__2b6.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at lambda_method(Closure , Task )
       at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3f.<BeginInvokeAsynchronousActionMethod>b__3e(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)]]></StackTrace>
      <HttpContext>
        <User IsAuthenticated="true" Name="USWIRED\Administrator" />
        <Request>
          <RawUrl>/SystemCenterAdmin/GetAutomationResourceProvider</RawUrl>
          <UserHostAddress>fe80::c179:19c8:c5f2:7309%12</UserHostAddress>
          <Headers>
            <Header Key="Cache-Control" Value="no-cache" />
            <Header Key="Connection" Value="Keep-Alive" />
            <Header Key="Content-Length" Value="2" />
            <Header Key="Content-Type" Value="application/json" />
            <Header Key="Accept" Value="application/json, text/javascript, */*; q=0.01" />
            <Header Key="Accept-Encoding" Value="gzip, deflate" />
            <Header Key="Accept-Language" Value="en-US" />
            <Header Key="Host" Value="usw-azure-01.uswired.com:30091" />
            <Header Key="Referer" Value="https://usw-azure-01.uswired.com:30091/" />
            <Header Key="User-Agent" Value="Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko" />
            <Header Key="x-ms-client-session-id" Value="c343c29d-20b1-412b-be94-879409205700" />
            <Header Key="x-ms-client-antiforgery-id" Value="0crwi2qNk20bMr6C04/vKd4L28WG1nd8JKBdOlCCp+xlph40YeL2oTdmeiTkPmE272S2dqmGQMNo+FElKkG2MdR0Xhq41RU/t8PrFjcG0Vgx4a8dgZLbfKVURo9n84F1XWtJOkTTUK/OeNVWBrK1+w=="
    />
            <Header Key="x-ms-client-request-id" Value="dcc427c7-40fc-4fdd-9a70-7622969ff40d-2014-06-19 22:27:55Z" />
            <Header Key="X-Requested-With" Value="XMLHttpRequest" />
            <Header Key="DNT" Value="1" />
            <Cookies>
              <Cookie Name="AdminSiteFedAuth" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (2000 characters)" />
              <Cookie Name="AdminSiteFedAuth1" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (424 characters)" />
              <Cookie Name="__RequestVerificationToken_Admin" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (128 characters)" />
            </Cookies>
          </Headers>
        </Request>
      </HttpContext>
    </Exception>, operationName:SystemCenterAdmin.GetAutomationResourceProvider, version:, accept language:en-US, subscription Id:, client request Id:dcc427c7-40fc-4fdd-9a70-7622969ff40d-2014-06-19 22:27:55Z, principal Id:USWIRED\Administrator, page request
    Id:c343c29d-20b1-412b-be94-879409205700, server request id:
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-WindowsAzurePack-MgmtSvc-AdminSite" Guid="{5E78D550-1384-5A96-C12A-CB6DA7BC6365}" />
        <EventID>12</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>65522</Task>
        <Opcode>0</Opcode>
        <Keywords>0x0</Keywords>
        <TimeCreated SystemTime="2014-06-19T22:27:55.971935000Z" />
        <EventRecordID>399</EventRecordID>
        <Correlation ActivityID="{FAA512AF-E0A9-4F2A-80EF-09F72D2F7918}" />
        <Execution ProcessID="3424" ThreadID="2308" />
        <Channel>Microsoft-WindowsAzurePack-MgmtSvc-AdminSite/Operational</Channel>
        <Computer>usw-azure-01.uswired.com</Computer>
        <Security UserID="S-1-5-82-4118156790-2181488624-806685255-2797011695-3958995103" />
      </System>
      <EventData>
        <Data Name="message">ManagementClientException: Resource not found.
    &lt;Exception&gt;
      &lt;Type&gt;ManagementClientException&lt;/Type&gt;
      &lt;Message&gt;Resource not found.&lt;/Message&gt;
      &lt;StackTrace&gt;&lt;![CDATA[
       at Microsoft.WindowsAzure.Server.Management.ManagementClientBase.&lt;ThrowIfResponseNotSuccessful&gt;d__2b.MoveNext()
       at Microsoft.WindowsAzure.Management.TaskSequencer.&lt;&gt;c__DisplayClass1e`1.&lt;RunSequenceAsync&gt;b__1d(Task previousTask)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.WindowsAzure.Server.SystemCenter.AdminExtension.Controllers.SystemCenterAdminController.&lt;GetResourceProviderAsync&gt;d__2e7.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.WindowsAzure.Server.SystemCenter.AdminExtension.Controllers.SystemCenterAdminController.&lt;GetAutomationResourceProvider&gt;d__2b6.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at lambda_method(Closure , Task )
       at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass3f.&lt;BeginInvokeAsynchronousActionMethod&gt;b__3e(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass37.&lt;&gt;c__DisplayClass39.&lt;BeginInvokeActionMethodWithFilters&gt;b__33()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass4f.&lt;InvokeActionMethodFilterAsynchronously&gt;b__49()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass4f.&lt;InvokeActionMethodFilterAsynchronously&gt;b__49()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass4f.&lt;InvokeActionMethodFilterAsynchronously&gt;b__49()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass37.&lt;BeginInvokeActionMethodWithFilters&gt;b__36(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass25.&lt;&gt;c__DisplayClass2a.&lt;BeginInvokeAction&gt;b__20()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass25.&lt;BeginInvokeAction&gt;b__22(IAsyncResult asyncResult)]]&gt;&lt;/StackTrace&gt;
      &lt;HttpContext&gt;
        &lt;User IsAuthenticated="true" Name="USWIRED\Administrator" /&gt;
        &lt;Request&gt;
          &lt;RawUrl&gt;/SystemCenterAdmin/GetAutomationResourceProvider&lt;/RawUrl&gt;
          &lt;UserHostAddress&gt;fe80::c179:19c8:c5f2:7309%12&lt;/UserHostAddress&gt;
          &lt;Headers&gt;
            &lt;Header Key="Cache-Control" Value="no-cache" /&gt;
            &lt;Header Key="Connection" Value="Keep-Alive" /&gt;
            &lt;Header Key="Content-Length" Value="2" /&gt;
            &lt;Header Key="Content-Type" Value="application/json" /&gt;
            &lt;Header Key="Accept" Value="application/json, text/javascript, */*; q=0.01" /&gt;
            &lt;Header Key="Accept-Encoding" Value="gzip, deflate" /&gt;
            &lt;Header Key="Accept-Language" Value="en-US" /&gt;
            &lt;Header Key="Host" Value="usw-azure-01.uswired.com:30091" /&gt;
            &lt;Header Key="Referer" Value="https://usw-azure-01.uswired.com:30091/" /&gt;
            &lt;Header Key="User-Agent" Value="Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko" /&gt;
            &lt;Header Key="x-ms-client-session-id" Value="c343c29d-20b1-412b-be94-879409205700" /&gt;
            &lt;Header Key="x-ms-client-antiforgery-id" Value="0crwi2qNk20bMr6C04/vKd4L28WG1nd8JKBdOlCCp+xlph40YeL2oTdmeiTkPmE272S2dqmGQMNo+FElKkG2MdR0Xhq41RU/t8PrFjcG0Vgx4a8dgZLbfKVURo9n84F1XWtJOkTTUK/OeNVWBrK1+w=="
    /&gt;
            &lt;Header Key="x-ms-client-request-id" Value="dcc427c7-40fc-4fdd-9a70-7622969ff40d-2014-06-19 22:27:55Z" /&gt;
            &lt;Header Key="X-Requested-With" Value="XMLHttpRequest" /&gt;
            &lt;Header Key="DNT" Value="1" /&gt;
            &lt;Cookies&gt;
              &lt;Cookie Name="AdminSiteFedAuth" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (2000 characters)" /&gt;
              &lt;Cookie Name="AdminSiteFedAuth1" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (424 characters)" /&gt;
              &lt;Cookie Name="__RequestVerificationToken_Admin" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (128 characters)" /&gt;
            &lt;/Cookies&gt;
          &lt;/Headers&gt;
        &lt;/Request&gt;
      &lt;/HttpContext&gt;
    &lt;/Exception&gt;</Data>
        <Data Name="requestId">
        </Data>
        <Data Name="subscriptionId">
        </Data>
        <Data Name="clientRequestId">dcc427c7-40fc-4fdd-9a70-7622969ff40d-2014-06-19 22:27:55Z</Data>
        <Data Name="principalId">USWIRED\Administrator</Data>
        <Data Name="version">
        </Data>
        <Data Name="pageRequestId">c343c29d-20b1-412b-be94-879409205700</Data>
        <Data Name="acceptLanguage">en-US</Data>
        <Data Name="operationName">SystemCenterAdmin.GetAutomationResourceProvider</Data>
      </EventData>
    </Event>
    Event ID 1046 is 
    Log Name:      Microsoft-WindowsAzurePack-MgmtSvc-AdminSite/Operational
    Source:        Microsoft-WindowsAzurePack-MgmtSvc-AdminSite
    Date:          6/19/2014 3:32:56 PM
    Event ID:      1046
    Task Category: (116)
    Level:         Error
    Keywords:      None
    User:          IIS APPPOOL\MgmtSvc-AdminSite
    Computer:      usw-azure-01.uswired.com
    Description:
    Could not connect to Resource Provider. Error: Resource not found.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-WindowsAzurePack-MgmtSvc-AdminSite" Guid="{5E78D550-1384-5A96-C12A-CB6DA7BC6365}" />
        <EventID>1046</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>116</Task>
        <Opcode>0</Opcode>
        <Keywords>0x0</Keywords>
        <TimeCreated SystemTime="2014-06-19T22:32:56.854137500Z" />
        <EventRecordID>413</EventRecordID>
        <Correlation ActivityID="{C20DBEAD-388F-4CF4-80FD-21C6419CC2F1}" />
        <Execution ProcessID="3424" ThreadID="2768" />
        <Channel>Microsoft-WindowsAzurePack-MgmtSvc-AdminSite/Operational</Channel>
        <Computer>usw-azure-01.uswired.com</Computer>
        <Security UserID="S-1-5-82-4118156790-2181488624-806685255-2797011695-3958995103" />
      </System>
      <EventData>
        <Data Name="errorMessage">Resource not found.</Data>
      </EventData>
    </Event>
    The other thing I notice is that when trying to connect to the VMM. It's trying to use domain\username, yet when I try logging in with domain\username via the SCVMM Console. I get the  You cannot access VMM management server (Error ID: 1604).
     I'm not sure if this is why I can not add the VMM to WAP.  Any help would be appreciated.  Thanks
    Nick

    Hello,
    I am not sure about the answer but I guess these steps will solve your problem:
    1) Log in to the SPF server by using an account that is a member of the SPF_Admin local group.
    2) Open an elevated Windows PowerShell window.
    3) Type the following commands, and press Enter after you type each command:
    Import-module spfadmin
    New-SCSPFTenant -Name Administrator -SubscriptionId 00000000-0000-0000-0000-000000000000
    4) Close the WAP Server Management Portal, and then reconnect to it to update all items.

  • After updating to 7.0.6 my iphone no longer shows in itunes. However it is recognised by my PC (windows 8) when click on my computer. I have tried reinstalling itunes and making sure the drivers are up to date. Has anyone else had this problem?

    Hi guys. After updating to 7.0.6 my iphone 5s is no longer showing in itunes. Strangley it is recognised by my PC (windows 8) when I click on my computer. I have tried reinstalling itunes and making sure the drivers are up to date, but this has made no difference. Has anyone else had this problem or does anyone have any advice? Thanks

    Device not detected in iTunes for Windows

Maybe you are looking for

  • Firefox doens't show a web address anymore and I can't use the back button (it's not click-able)

    The back and forward buttons, the refresh and stop loading buttons are not available for me to click. I can see them, but they are completely gray and I can't click on them. Also, firefox doesn't have a web address in the box anymore. It is always bl

  • Reg asset balances

    Hello All, I want to know the field names and tablenames used in asset balances report in tcode(s_alr_87011967). Pls help its urgent Thnks, Vibha

  • Overhead at Cost Center Level --- Urgent

    Hi, Is there any way that we can apply Overhead based on Cost Center  in Costing Sheet and is there any thing we credit the overhead applied to that actual Cost Center rather than Other Cost center. I tried to create Dependencies and Condition table

  • Can,t delete or add tracks to i-pod

    Bought new tracks of i tunes in last couple of days and although they transfer to i pod and show as such(can play through laptop) when i remove the i pod they are nowhere to be seen on the i pod anywhere,and when i reconnect to i tunes they are nowhe

  • Need help: Acrobat has disabled Preview

    Previously, whenever I clicked on a pdf file in Safari, the file would download to a specified folder and it would open with Preview. Recently, I made the TERRIBLE mistake of installing Acrobat and then uninstalled it. But now when I click on a pdf l