Mvc4How does on replace ValidateAntiForgeryTokenAttribute.Salt Property with AntiForgeryConfig.AdditionalDataProvider ??? ‎

I updated to mvc 4 and got this error that :
ValidateAntiForgeryTokenAttribute.Salt Property (System
[ObsoleteAttribute("The 'Salt' property is
deprecated. To specify custom data to be embedded within the token, use the
static AntiForgeryConfig.AdditionalDataProvider ...
How does this replace ValidateAntiForgeryTokenWrapperAttribute :
FilterAttribute, IAuthorizationFilter which is used an attribute on a class and
is used for validation from an ajax posting involving
__RequestVerificationToken: getAntiForgeryToken????
Do I just get of all the classes that have the
[ValidateAntiForgeryTokenWrapper] attribute applied to them and some derived class from IAntiForgeryAdditionalDataProvider interface.
I have not found one example are solution that said what to do or how to
change the classes that [ValidateAntiForgeryTokenWrapper]  applied to them, and
replace them whith this  AntiForgeryConfig.AdditionalDataProvider. Any advice
Below is the ValidateAntiForgeryTokenWrapperAttribute  class used. It is applied as an attribute to a class. The error is thrown where Salt = salt line of code. So how exactly do I replace that line of code by AntiForgeryConfig.AdditionalDataProvider?
Please do not give me links to explanation or link to where someone tried some other way which does use AntiForgeryConfig.AdditionalDataProvider which usually causes another half million errors. I am looking just how to replace the Salt and suggested. Source
code to and a project is what I am looking for to show how this works
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method,
AllowMultiple = false, Inherited = true)]
    public class
ValidateAntiForgeryTokenWrapperAttribute : FilterAttribute,
IAuthorizationFilter
        private readonly
ValidateAntiForgeryTokenAttribute _validator;
        private readonly AcceptVerbsAttribute _verbs;
        public ValidateAntiForgeryTokenWrapperAttribute(HttpVerbs verbs) :
this(verbs, null)
        public ValidateAntiForgeryTokenWrapperAttribute(HttpVerbs verbs,
string salt)
            this._verbs = new
AcceptVerbsAttribute(verbs);
AntiForgeryConfig.AdditionalDataProvider = salt;
            this._validator
= new ValidateAntiForgeryTokenAttribute()
                    Salt = salt
AntiForgeryConfig.AdditionalDataProvider = salt

I tried to start a thread in that forum,  But every time I click on the sign button in internetexplorer the nothing happens. I used Chromed and when I clicked on the sign in sheet I was able to sign in, But when I clicked on the start a new thread
in the mvc forum I was redirected to the sign in sheet again. That Microsoft for sucking the big one as usual
steven frierdich

Similar Messages

  • Does Apple replace faulty MacBook Pro with retina in Asia?

    I bought a MacBook Pro with retina display in July 2012. Recently my MBPr developed some issues. I feel like something moves (or slides to and fro) inside the Mac when I take out the computer from the bag and hold it in my hand. I don't know whether I have been able to explain the issue as I'm not a native English speaker. I contacted the retailer I bought the Mac from. They told me they can only change the faulty parts if there are any, but they cannot replace the Mac for a new one because  Apple does not replace any Mac in Asia. The prerogative is only in Asia, Europe, Australia and the US. Is it really the case? If things turn out that Apple cannot make good on its warranty without replacing the Mac what shall they do in that case? Could you pls explain?

    As best I know, after 14 days Apple will repair your MBP if it is within the warranty period for free.  In rare instances, if they have not been able to repair it after several attempts, they may replace it.  I suggest contacting Apple and ship your MBP to the for inspection/repair or bring it to an Apple store or an Apple reseller.
    Ciao.

  • What is IS NULL doing in replacing NOT EXISTS operator with an outer join?

    DB version:10gR2
    An example from searchoracle.target.com
    The query which contains a NOT EXISTS operator
    SELECT M.ModulId, M.Modul FROM MODULE M
    WHERE NOT EXISTS
    ( SELECT PROJEKTMODUL.IdModul
      FROM PROJEKTMODUL
      WHERE M.ModulId = PROJEKTMODUL.IdModul
      AND PROJEKTMODUL.IdProjekt = 23 )is replaced by an equivalent outer join query
    select distinct
           M.ModulId
         , M.Modul
      from MODULE M
    left outer
      join PROJEKTMODUL
        on M.ModulId = PROJEKTMODUL.IdModul
       and PROJEKTMODUL.IdProjekt = 23
    where PROJEKTMODUL.IdProjekt is nullI don't understand what
    PROJEKTMODUL.IdProjekt is nullis doing in the above rewritten query.

    It is to perform an Anti-Join. As far as I know Oracle (starting with release 10g - I thought Release 1) rewrites your NOT EXISTS and NOT IN query to a Anti Join which looks like your second query.
    Look at the results of the query without the IS NULL predicate and see which records (from that set) should be selected to show the same results as the first query. The records of interest match the predicate IS NULL.

  • Spell Checker does not replace the wrong spelling with the right one

    I have a GWT application which has a textarea. When the user types a wrong spelling, it gets underlined in red. When the user right clicks on the wrong spelling, the popup menu provides some suggestions; The user clicks on one of the suggestions but the wrong spelling does not get replaced.
    The javascript console contains the following error:
    [18:54:12.843] NS_ERROR_INVALID_POINTER: Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIInlineSpellChecker.replaceWord] @ resource://gre/modules/InlineSpellChecker.jsm:273
    Please let me know how to fix this problem.

    If this is while using Firefox, try to Firefox in Safe Mode to see if the
    problem still happens.
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Firefox sync does not replace my local data with server data

    I reformatted my laptop and re-installed Firefox 3.6 and also the add-on. I manage to setup firefox sync and chose the option to erase local data and replaced with server's data. to my dismay, my bookmarks are not synced.

    If you didn't make a backup of the Sync key before reinstalling Windows then you can't access your sync account to sync your data to the new installation.
    If you reset your sync key and generated a new sync key then that causes your data to be removed from the sync server and can't be accessed anymore.

  • Does Apple replace an iPhone With after damage at a discounted price?

    Does Apple replace an iPhone 5 with water damage at a discounted price?

    Apple will give you a replacement at a discounted price from the full retail price of the iPhone whether or not you have AppleCare. If you have AppleCare+ coverage, you will pay only the "deductible"; check the terms for your plan. If you do not have AppleCare+ on your iPhone, see:
    http://www.apple.com/support/iphone/repair/
    Regards.

  • My one year warranty expired recently, a month ago my charger was replaced under warranty and it has only lasted a month and has broken again, does the replacement charger come with a new warranty or will i have to buy a new one?

    Bought the phone on contract last January (late in january), had my charger replaced just after christmas and now it has stopped working again, its been about a month and a half and the replacement charger is broken, does the replacement charger come with a new warranty or will I have to buy a new charger? And if so, is there a charger that doesn't break easily (my problem is the the wire at the phone end of the cable seems to bunch and twist etc.)
    thanks.

    a warranty replacement if the donor is out of warranty has a new 90 days warranty from exchange date 

  • I had to replace my Iphone 5c with a new one.  Now, my windows 7 pc does not recognize my iphone.  Reinstalled itunes.  Apple mobile device is running.  I did whatever I could find on the internet still no luck.  Any suggestions?  Thnx

    I had to replace my Iphone 5c with a new one.  Now, my windows 7 pc does not recognize my iphone.  Reinstalled itunes.  Apple mobile device is running.  I did whatever I could find on the internet still no luck.  Any suggestions?  Thnx

    You have done everything verbatim included with this link?
    http://support.apple.com/kb/ts1538

  • I have down loaded a track which was initially missing 1min 30 seconds. iTunes enabled my to reload the rack which is complete on the PC. However, syncing with my Ipad2 does not seem to replace the incomplete version with the full version. Thanks S

    I have down loaded a track which was initially missing 1min 30 seconds. iTunes enabled me to reload the rack which is now complete on the PC. However, syncing with my Ipad2 does not seem to replace the incomplete version with the full version.  Can anyone out there help?
    Thanks S

    Thanks for the response. Unfortunately, I've un-checked the track and re-synced the Ipad as suggested, but then re-checking and re-syncing han no effect. The track is still missing the final minute and a half or so. I've tried it twice, but the effect is the same.
    Any other ideas? Would un-checking the entire music collection and staring again work, or is that a road to disaster?

  • Having trouble maintaining remote desktop connection with Mavericks.  What is this about needing RDC 3.7.1 with Mavericks.  I downloaded RDC 3.7.1 but it does not replace RDC 2.1.0 previously installed.

    Having trouble maintaining remote desktop connection with Mavericks.  What is this about needing RDC 3.7.1 with Mavericks.  I downloaded RDC 3.7.1 but it does not replace RDC 2.1.0 previously installed

    Lucky you, it did not work for many users (which as it should be) so MS produced a new version, for ML and Mavericks.
    It's in the App Store, for free.
    FYI, I assume that you were attempting to post a picture, no one can see it (except maybe you) because it is on your computer rather than the forum server.
    file:///Users/dbrant/Desktop/About%20Apple%20Remote%20Desktop%203.7.1.webloc
    Use the small camera icon in the editor toolbar to post it.
    It also looks like you attempted to use Apple Remote Desktop, which does not do Windows.

  • How can I merge folder with the same name so that the content does not replace the other

    How can I merge folder with the same name so that the content does not replace the other?

    >
    That's only a good idea if the semantics of sayHello
    as defined in MyInterface suggest that a
    RemoteException could occur. If not, then you're
    designing the interface to suit the way the
    implementing classes will be written, which smells.
    :-)But in practice you can't make a call which can be handled either remotely or locally without, at some point, dealing with the RemoteException.
    Therefore either RemoteException must be part of the interface or (an this is probably more satisfactory) you don't use the remote interface directly, but MyInterface is implemented by a wrapper class which deals with the exception.

  • The property with ID SI_LOGON_INFO does not exist in the object

    Hi Experts,
    I am writing a Java code which upload rpt report to an infoview and try to set username/password and user prompt false together.
    I uploaded rpt success, however, after I add IReportLogon to add user/password. I got an error.
    The property with ID SI_LOGON_INFO does not exist in the object
    Code here, any suggestion is appreciated.
    IPluginMgr boIPluginMgr = infoStore.getPluginMgr();
    IPluginInfo boReportPlugin = boIPluginMgr.getPluginInfo("CrystalEnterprise.Report");
    IInfoObjects boInfoObjects = infoStore.newInfoObjectCollection();
    boInfoObjects.add(boReportPlugin);
    IInfoObject boReportObject = (IInfoObject) boInfoObjects.get(0);
    String boReportName = getName(filePath);
    boReportObject.setTitle(boReportName);
    boReportObject.setDescription(filePath);
    boReportObject.getFiles().addFile(filePath);
    boReportObject.properties().setProperty(CePropertyID.SI_PARENTID, folderID);
    IReport Report = (IReport)boReportObject;
    IReportLogon rptLogon = (IReportLogon) Report.getReportLogons().get(0);     
    //get error after try to retrieve rptLogon Class.     
    rptLogon.setPromptOnDemandViewing(false);
    rptLogon.setUserName("fortest");
    rptLogon.setPassword("whatever");
    infoStore.commit (boInfoObjects);

    Hi Adam,
    Thanks for your reply.
    I added this refreshProperties() method before, but after run this method, the application will no response even wait for over 2 minutes.
    Do you know why?
    or shall I wait for long time to resolve this issue?

  • The property with ID SI_DELTA_METAINFO does not exist in the object

    Hi ,
    when i moved crystal reprts from our Crystal server to the new BOBJ (BOExi3.1) Server and on DB configuration for all the reports i used the DB defaults that comes with the Report.
    Problem when i try to run locally or run from the enterprise login it works perfect, but when i try to run the report from the Infoview it says Database Information is either Incorrect or Incomplete.
    and also when i goto report and change the DB configuration it throws this error as
    "The property with ID SI_DELTA_METAINFO does not exist in the object".
    Please throw some light on the above error as i need to make it available for our end-users ASAP.
    regards,
    Sethu.

    Hi Seth,
    I looks like you have a configuration issue in BOE so I moved your post to the Admin forum.
    You also likely have a support Contract so I suggest you create a case in Service Market Place to immediate assistance. This is a public forum that may or may not be monitored by SAP Support Rep's, depending on the case load.
    Thank you
    Don

  • The property with ID SI_FILES does not exist in the object

    Hi,
    We are accessing the BO reports through front End web application using WEBI. We are using BO Java SDK on the application for this purpose.
    Some of our users (APAC region) has started getting the error while accessing the reports from web application. Here are the error:
    com.crystaldecisions.sdk.exception.SDKException$PropertyNotFound: The property with ID SI_FILES does not exist in the object [24/01/12 13:27:39:402 GMT] 000000b6 SystemErr R at com.crystaldecisions.sdk.occa.infostore.internal.ag.getFiles(Unknown Source)
    [24/01/12 13:27:39:402 GMT] 000000b6 SystemErr R at com.crystaldecisions.sdk.occa.infostore.internal.AbstractSendableObject.getFiles(Unknown Source)
    Same report when accessed by the users from AMER or EMEA region, it is working fine. Can anyone help me what is the issue and how to resolve it?
    Thanks,
    Ashok

    what version of Enterprise is this? XI 3.1, Bi 4.0? Also what version pack are you running. I am asusming that APJ and EMEA\AMER users try to hit the same web\app server\ BOE, same application and access same reports. What kind of authentication you use? Given everything else is same it's got to be security issue? Does APJ users are part of a different group in your 3rd party auth server such as LDAP or AD?
    Edited by: Aasavari Bhave on Jan 25, 2012 2:55 PM

  • Mac Pro early 2008 2 x 2.8GHz Quad Core 10.7.5, replaced 4 x 500ghds with 4 x 3Tb and Raid card Raid5 them OK but can not load time machine back up as it does not see any of the 4 drives, neither does disc utilities, any thoughts?

    On my Mac Pro, early 2008 2 x 2.8GHz Quad Core 10.7.5, replaced 4 x 500ghds with 4 x 3Tb. The Raid card Raid 5ed them OK but can not load time machine back up as it does not see any of the 4 drives, neither does disc utilities, any thoughts?

    You don't see drives when using a hardware RAID only the volumes.
    WD Green are not suitable for hardware RAID (or software RAID for that matter).
    USB2 and TimeMachine are a disaster waiting to happen. I've used SATA (internal) and eSATA (using SATA PCIe cards) trouble-free.
    I can't say I begin to understand your use or "choosing the install drive for the backup"
    Install what?
    You don't load TimeMachine. Maybe seems minor but that is not how to describe the behavior of software.
    You read FAQ and How To http://www.apple.com/support/timemachine
    Time Machine’s Gory Details:
    https://www.apple.com/support/timemachine/
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    Lion Recovry & TimeMachine
    http://www.apple.com/support/lion/installrecovery/
    http://www.apple.com/support/lion/
    How To Restore Your System
    http://pondini.org/TM/14.htmlMac OS X v10.7 Lion
    Pondini's Blog: Time Machine - Troubleshooting -- B5.  Would you like to inherit (or re-use) the backup . . . ?

Maybe you are looking for