An attempt was made to referance a token that does not exist

I am getting the above error on starting the add-on only on some clients. I click OK. The add-on is not started. Then I go to the add on manager menu and start the add-on. It starts fine. The UI connect code is as follows:
theSboGuiApi.Connect(mStrFromCmmd)
mSboGuiApp = theSboGuiApi.GetApplication(-1)
Am I doing anything wrong? Why this happens only on some clients?
I have checked the DI API is of correct version.
Waiting for your response. Thanks in advance.
Regards,
Prakash

Hi Marc,
Did you create your addon via the B1 Addon Wizard?  My problem probably wasn't caused by the wizard, but a fix that the support folks gave me involved changing some of the code created by the wizard. 
The connection string I was getting from the following wizard code was messed up (the string was way too short):
            'If (System.Environment.GetCommandLineArgs().Length = 1) Then
            '    connStr = B1Connections.connStr
            'Else
            '    connStr = System.Environment.GetCommandLineArgs().GetValue(1).ToString()
            'End If
As you can see, I've commented it out and replaced with this:
   connStr = System.Environment.GetCommandLineArgs(1)
(Doing it that way requires you to have the debug connection string set on the debug command line properties for the project).  This solved my problem with this error message.

Similar Messages

  • The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.

    I am experiencing this error with one of our cluster environment. Can anyone help me in this issue.
    The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.
    Thanks,
    Venu S.
    Venugopal S ----------------------------------------------------------- Please click the Mark as Answer button if a post solves your problem!

    Hi Venu S,
    Based on my research, you might encounter a known issue, please try the hotfix in this KB:
    http://support.microsoft.com/kb/928385
    Meanwhile since there is less information about this issue, before further investigation, please provide us the following information:
    The version of Windows Server you are using
    The result of SELECT @@VERSION
    The scenario when you get this error
    If anything is unclear, please let me know.
    Regards,
    Tom Li

  • Can't open MMC - An attempt was made to reference a token that does not exist

    I have a Windows 7 Pro, x64 - I'm trying to open the MMC and I get the error:
    An attempt was made to reference a token that does not exist.
    Ok, I open a cmd prompt (elevated), goto the \windows\system32 dir and run the command:
    For /F %s in (‘dir /b *.dll’) do regsvr32 /s %s
    And I just get "the system cannot find the file 'dir.
    I have no idea what this means.  Many others who have ran that command have had success (from looking at other forums).  Just my luck - it doesn't work.
    What do you think could be wrong here?

    For /F %s in (‘dir /b *.dll’) do regsvr32 /s %s
    And I just get "the system cannot find the file 'dir.
    I have no idea what this means.
    It means you have a bug in your script and because of the bug the script tried to look for a file named "dir".
    So what's the /F for in the script?
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • An Attempt was made to reference a token that does not exist - SAPB1 8.8

    Dear All,
    System throws an error message as "An Attempt was made to reference a token that does not exist" while connecting Add-on in Client system in SAP Business 8.8 version
    Please do the needful
    Thanks & Regards
    Venkatesh N

    Hi Venkatesh N,
    Are you got any solution for this issue?
    I also face a same problem with you. I got the a reply is "Reinstall the application".
    But this is not the main solution for the problem.
    If you got any solution, hope you can share with me.
    Thank you.
    regards,
    Sheon

  • "attempt was made to reference a token that does not exist"

    Hello expert
    when ever i run my ard .I got this error
    "attempt was made to reference a token that does not exist"
    and after that
    "Incorrect string for add-on"
    this my code for connecting the addon to sap b1 and i am putting code of addon identifier string of solution type .i am not what is the problem
        Public Function GetApplication() As SAPbouiCOM.Application
            Try
                Dim objApp As SAPbouiCOM.Application
                Dim objSboGuiApi As New SAPbouiCOM.SboGuiApi
                Dim strConnectionString As String = Environment.GetCommandLineArgs.GetValue(1)
                '   Dim strConnectionString As String = Command()
                objSboGuiApi = New SAPbouiCOM.SboGuiApi
                'by vilas
                objSboGuiApi.AddonIdentifier = "500055230354241534953303030303030373937303A46303535303435343033390FC9CB682961A45865F5346418639642BBAC26F3"
                objSboGuiApi.Connect(strConnectionString)
                objApp = objSboGuiApi.GetApplication()
                Return objApp
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
        End Function

    This is a .NET error, a Google search for it turns up a lot of results so I would pursue that as it does not seem to be a B1 specific error. In many cases it seems related to ASP.NET, but not all so I suggest searching for
    "attempt was made to reference a token that does not exist" -ASP

  • Using ExtendedLogFormat, server log refers to Exception that does not exist

    I created a custom logging class, using ExtendedLogFormat, according to the doc here:
    [http://edocs.bea.com/wls/docs100/config_wls/web_server.html#elf]
    However, when I do this, and modify the startup classpath to point to my jar containing the class, and modify the log format to include this class, I see in the logs:
    bq. *     Attempting to initialize ExtendedLogFormat application specific header: x-com.on24.weblogic.logging.POSTDataLogField. However, failed due to exception.*
    (POSTDataLogField is the name of my log field class).
    This is very frustrating, because nowhere in ANY log (and I've set the log level as verbose as possible in all places) is any Exception shown.
    Does anyone know how I can find out what this mystery exception is, in a case like this? I've looked at all the logging options, and didn't find anything I could change to be any more verbose than I already am.
    - Tim

    Hi. I'm using version 2.1.11 of the NDK for CSharp. I'm getting this
    same error message:
    Code:
    Connection.freeWriteSemaphore(-2): semaphore not owned by any thread
    at Novell.Directory.Ldap.Connection.freeWriteSemaphor e(Int32 msgId)
    at Novell.Directory.Ldap.Connection.connect(String host, Int32 port, Int32 semaphoreId)
    at Novell.Directory.Ldap.LdapConnection.Connect(Strin g host, Int32 port)
    at TestLDAP.Program.Main(String[] args) in D:\Documents and Settings\tjbuege\my documents\visual studio 2010\Projects\TestLDAP\TestLDAP\Program.cs:line 20
    This occurs when I try to bind to a server that does not exist. Here
    is my sample source code that generates that error:
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Novell.Directory.Ldap;
    namespace TestLDAP
    class Program
    static void Main(string[] args)
    LdapConnection conn = null;
    string host = "server.does.not.exist.com";
    int port = 389;
    try
    conn = new LdapConnection();
    conn.Connect(host, port);
    catch (Exception ex)
    Console.WriteLine(ex.Message);
    Console.WriteLine(ex.StackTrace);
    if (conn != null)
    conn.Disconnect();
    Is there a fix for this? It makes this library useless for me.
    Thanks,
    Tim
    tjbuege
    tjbuege's Profile: http://forums.novell.com/member.php?userid=108957
    View this thread: http://forums.novell.com/showthread.php?t=365082

  • Business Management Error: You are attempting to create a user with a domain logon that does not exist. Select another domain logon and try again.

    Hello,
    Suddenly the working CRM is being stopped for some group of users.
    I drilled down to the issue and have checked that the users from Domain in which CRM is installed are having CRM access.
    But for other domain user having problem to access CRM.
    I tried to add a user from a domain which is not of CRM domain then it gives following error.
    "Business Management Error: You are attempting to create a user with a domain logon that does not exist. Select another domain logon and try again.
    <Message>LookupAccountNameW failed with error</Message> "
    The change is made - AD group have upgraded Activer Directory server to 2012 R2
    Please help as the Production CRM is not working for other domain user.

    We have Activer Directory Structure like below.
    One Root Domain says A
    and there are multiple child domain like B,C,D etc...
    B,C and D are all in same level,they are child of A domain.
    There are two way transitive trusts between A and all the child Domain.
    But there is no trust in between B and C and so on.
    Our CRM server is in B domain and B domain's user can access CRM but users of Domain C,D and so on can not access CRM.
    If this post answers your question, please click &quot;Mark As Answer&quot; on the post and &quot;Mark as Helpful&quot;

  • Problem creating new sites. The formula refers to a column that does not exist

    Good morning,
    I have a problem creating new sites in my development environment. We have a template which works properly when we create new sites with it. However, when we add one new content type in the site created and save it as a new template, we can't create new sites
    with this template. The error log is that there are one problem in one column [The formula refers to a column that does not exist.  Check the formula for spelling mistakes or change the non-existing column to an existing column]. 
    I have opened the wsp template with visual studio but I can´t discover what column is the problem because the log only refers to the feature (ListInstances).
    Anybody knows how to find my problematic column?
    The error is:
    Feature Activation: Threw an exception, attempting to roll back.  Feature 'plantilla Llave en Mano 20141222 v2ListInstances' (ID: '6c61a3bf-3c51-4064-958b-d154729233e7').  Exception: Microsoft.SharePoint.SPException: La fórmula hace referencia a una
    columna que no existe. Compruebe que la fórmula no tiene errores ortográficos o cambie la columna que no existe por otra que exista. ---> System.Runtime.InteropServices.COMException (0x81020057): La fórmula hace referencia a una columna que no existe. Compruebe
    que la fórmula no tiene errores ortográficos o cambie la columna que no existe por otra que exista.     at Microsoft.SharePoint.Library.SPRequestInternalClass.UpdateField(String bstrUrl, String bstrListName, String bstrXML)     at Microsoft.SharePoint.Library.SPRequest.UpdateField(String
    bstrUrl, String bstrListName, String bstrXML)     --- End of inner exception stack trace ---     at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionListInstances(SPFeaturePropertyCollection props, SPSite site,
    SPWeb web, Boolean fForce)     at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean
    fForce)     at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)
    Thanks in advance

    Hi Enrique,
    According to your description, after added a content type into the new site and save the site as a template, there is an issue when creating another new with the newly
    site template.
    Based on the error message “The formula refers to a column that does not exist…”, seems that it would be an issue of a Calculated column in the content type you added,
    please go through all the Calculated column in that content type to see if the formulas all work well.
    Feel free to reply if there any progress.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • A pool operation was specified for a pooled resource that does not belong t

    hi i left the server running for days so my application was running i refresh the page by clicking the ok button in small popup box,the page was refresh but when i what to select my lov am geting this error
    A pool operation was specified for a pooled resource that does not belong to the resource pool.
    Error     
    java.lang.NullPointerException
    Caused by: java.lang.NullPointerException
         at oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1797)
         at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1672)
         ... 187 more
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1797)
         at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1672)
         at oracle.adf.model.binding.DCIteratorBinding.internalGetRowSetIterator(DCIteratorBinding.java:1645)
         at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1607)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setupListItems(JUCtrlListBinding.java:725)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.getDisplayData(JUCtrlListBinding.java:3586)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding$1.size(FacesCtrlListBinding.java:382)
         at java.util.AbstractList$Itr.hasNext(AbstractList.java:339)
         at oracle.adfinternal.view.faces.renderkit.rich.SelectItemUtils.addSelectItems(SelectItemUtils.java:207)
         at oracle.adfinternal.view.faces.renderkit.rich.SelectItemUtils.getSelectItems(SelectItemUtils.java:78)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectOneChoiceRenderer.getSelectItems(SimpleSelectOneChoiceRenderer.java:98)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectBaseRenderer._renderContent(SimpleSelectBaseRenderer.java:208)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectBaseRenderer.renderElementContent(SimpleSelectBaseRenderer.java:122)
         at oracle.adfinternal.view.faces.renderkit.rich.FormInputRenderer.encodeAllAsElement(FormInputRenderer.java:152)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:769)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:1140)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanes(PanelStretchLayoutRenderer.java:348)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:313)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2004)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderPane(PanelSplitterRenderer.java:1360)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.encodeAll(PanelSplitterRenderer.java:279)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)my lov is empty,but where i restart Instance IntegratedWebLogicServer all is fine what cause this error
    Edited by: adf009 on 2013/04/03 9:28 AM
    Edited by: adf009 on 2013/04/03 1:13 PM

    Try:
    - Powering off and then back on your router.
    - iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    - Change the DNS to either Google's or Open DNS servers
    Public DNS — Google Developers
    OpenDNS IP Addresses
    - For one user uninstalling/reinstalling iTunes resolved the problem
    - Try on another computer/network
    - Wait if it is an Apple problem

  • HT5312 how do i delete WRONG cloud ID from my ipod touch?  it was typed WRONG and I cannot delete it because it does NOT exist and I don't know password for email accoutn that does not exist

    how do i delete WRONG cloud ID from my ipod touch?  it was typed WRONG and I cannot delete it because it does NOT exist and I don't know password for email accoutn that does not exist

    someone please help, I can't even delete content because it prompts me for a password for an account that I mistyped - wth?????

  • Firefox Help page on "blocking cookies" is incomplete and refers to a "tool" menu that does not exist

    The following page:
    http://support.mozilla.com/en-US/kb/Blocking%20cookies?s=blocking+cookies&as=s
    is incomplete - please see as example:
    "Viewing a list of blocked sites
    To see a list of sites that you have blocked from setting cookies: "
    There is no text after the colon.
    Also the same page refers to selecting a "Tools" menu from the Firefox window(whatever that is?) - in order to get "Page info" so that cookies can be blocked. I can't the Tools menu - clicking on the Firefox (at top left hand of page) does not give this option.
    I was looking at this page in order to find out how to permanently block specific cookie sites. I block them when they appear when I have set "accept 3rd party cookes to "keep until" - "ask me every time" - and I also have "clear history when Firefox closes" set. However the blocked addresses are deleted when I come out of Firefox - this is very irritating as there are some cookies I wish to permanently block. This means that every time I open a web site I have to click on "deny" cookie several times - even thought they are the same ones I have blocked in a differenrt session. I prefer to choose what I block as some sites really don't work without their personal cookies - usually to support subscriber log in (e.g to log in to the "New Scientist" site)so "private browsing" doesn't really help and as you have mentioned elsewhere blocking 3rd party cookies can also cause problems
    yours
    H.Ruddy
    Thank you for "Do Not Track" it's a good start although it will have no effect if the sites ignore it.

    Looks like a problem with show for that is only specified for Firefox 3.5 for that section.

  • TS1347 Since the most recent download from Apple my calendar will not accept a new entry. I turned the phone off, back on, and it would then accept a new entry. Then would stop again. Attempted the on-off fix and now that does not work.

    Since update of iOS7.0.2 my calendar has been problematic by not accepting new data (appointments) intermitingly. The first time I turned off the phone and restarted which then accepted the new data for an event. Worked fine a few days the would not again accept new data. The on/off fix does not now work. Went online with Apple support, went through an online dianogistic which after the calendar function worked. Today it again will not take new data. One good thing is once the data is visible in Calendar it stays.

    SharmFarm wrote:
    Good ev Ning Mario49    firstly I would like to say a great thank you for your attention to trying to help me,,,,,    i have looked at the links and will try everything stated first thing…
    Hi Mario,,,,
    I tried everything in your reply,,, thank you again,, I had done that once before and all was working great,,
    I have just now tried the Reinstall via iTunes, about 20 into the download, the iTunes logo on the phone disappeared, and the Apple Logo appeared again,,, I waited until the iTunes stated that the download had finished, and the install was in progress,,,
    Nothing happened, still the Apple Logo was visual on the screen, iTunes never recognised the phone which it was on my iTunes account previously,,,
    Still just a bunch of lines, maybe 5 or 6 so small writing,, I personally can not read what it is telling me, someone said it reads, incorrect shutdown,,,????????
    Please advise,???
    I am now at a loss,,, I really became excited when I saw the iTunes icon after putting the phone into restore,,,???
    Thank you again
    D

  • HT204074 I have been reading about how to associate devices with my Apple ID, and the info says I can go to my account through iTunes to find "Manage Devices" but that does not exist. Either it was phased out our there are other ways to get there, but can

    I am trying to find out about all my associated devices. I recently got a message that I had used my last device, and am not sure how this can be. The instructions for accessing the info via the iTunes account info page apparently were not shared with the programmers since there is no Manage Devices button or option as far as I can see. How do I do this?

    After hours and hours of failed searches, I must have used a different keyword in my Google search, and here is the website that I was looking for:
    https://supportprofile.apple.com
    And here is the guy whose website I found that helped me solve my problem:
    http://www.marcomc.com/2011/01/how-to-find-the-list-of-my-apple-registered-produ cts/
    I was going to rant here about how badly Apple designed their "Apple Id" stuff, how they strongly distinguish between using your Apple Id at the online Apple Store vs. using it at the App Store (which you have to get to via iTunes ... quite ridiculous) ... but I won't.  :-)
    Anyway, I hope that the two previously mentioned websites will be of help to others.

  • Help with Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    This was all working yesterday, but this morning, I cannot run in the dev fabric, or even setting the website project as a startup project directly, I get the following error:
    Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'msshrtmi' could not be loaded.
    === Pre-bind state information ===
    LOG: User = Andrew-VAIO\Andrew
    LOG: DisplayName = msshrtmi
    (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: msshrtmi | Domain ID: 3
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
    LOG: Appbase = file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/
    LOG: Initial PrivatePath = C:\Users\Andrew\Desktop\Beko2011Azure\Website\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\Andrew\Desktop\Beko2011Azure\Website\web.config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/bin/msshrtmi.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
    Stack Trace:
    [BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
    System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
    System.Reflection.Assembly.Load(String assemblyString) +28
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
    [ConfigurationErrorsException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
    System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
    System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677
    [HttpException (0x80004005): Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9079228
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
    Note that the dev machine is x64 Win7.
    I have not tried deploying this to staging since the issue started as I'm a bit nervous of touching the staging/live environment until this is solved.
    Removing the PlatformTarget element from the project file has no effect
    Removing the msshrtmi.dll file from the bin directory of the website project ends up with 
    'Could not load file or assembly 'Microsoft.WindowsFabric.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified'
    I have used Git to revert to the last working build to no effect (But I don't have the obj/bin folders in GIT), but it has atleast reset the project files etc.
    If I return msshrtmi.dll to the bin folder and switch the model and website projects to x64 there is no change
    If I switch both to x86 then I get an error Could not load file or assembly 'BekoModel2011' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    which is the model project - presumably because to run on my x64 machine I need the 64bit version?
    I really need to be able to debug and then publish some changes ASAP.
    Andrew

    Hi,
    Is it true that you're using IIS to host the application? Could you check whether the process is x64 or x86 one via task manager or config in IIS manager?
    http://blogs.msdn.com/b/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-at-the-same-time-on-different-worker-processes.aspx
    Allen Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • When using Migration Assistant to transfer files from my pc, I get an error message saying that an attempt was made to access a socket in a way forbidden by its access permissions.  How can I fix this?

    When using Migration Assistant to transfer files from my pc, I get an error message saying that an attempt was made to access a socket in a way forbidden by its access permissions.  How can I fix this?

    You followed:
    http://www.apple.com/support/switch101/

Maybe you are looking for