Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6719579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:06:34+00:00 2026-05-26T09:06:34+00:00

In my C# app that’s running under Azure, I need to use Interop /

  • 0

In my C# app that’s running under Azure, I need to use Interop / DllImport to call ‘IEGetProtectedModeCookie’ in ieframe.dll

Here’s the signature:

  [DllImport("ieframe.dll", CharSet = CharSet.Unicode, EntryPoint = "IEGetProtectedModeCookie", SetLastError = true)]
  public static extern int IEGetProtectedModeCookie(String url, String cookieName, StringBuilder cookieData, ref int size, uint flag);

I’ve added ieframe.dll to my project’s bin directory, and I have a reference to SHDocVw that generates the Debug or Retail Interop.SHDocVw.dll file in my obj directory.

When I test this on my dev box, everything works fine, but when I deploy to Azure, I’m getting the following runtime error:

System.EntryPointNotFoundException: Unable to find an entry point
named ‘IEGetProtectedModeCookie’ in DLL ‘ieframe.dll’. at
Predicere.Utilities.LoginUtils.IEGetProtectedModeCookie(String url,
String cookieName, StringBuilder cookieData, Int32& size, UInt32 flag)
at Predicere.Utilities.LoginUtils.GetProtectedModeIECookieValue(String
cookieName, Boolean isFacebookPage) in blah…

What am I missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:06:34+00:00Added an answer on May 26, 2026 at 9:06 am

    So, we finally found a solution using feedback from S.O. on another separate but related issue.

    The problem is that IEGetProtectedModeCookie was not introduced until IE8, but the baseline Azure web instance is based on IE7.

    The OS flavor is controlled by the osFamily attrib in :

    <ServiceConfiguration serviceName="Foobar" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="1" osVersion="*">
    

    This setting installs Windows Server 2008 SP2, which is based on IE7.

    If we modify the osFamily attrib as follows, we end up with Windows Server 2008 R2, which is based on IE8:

    <ServiceConfiguration serviceName="Foobar" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="2" osVersion="*">
    

    More details can be found in this blog entry, especially if you want to upgrade you Azure instance to use IE9 (which, it turns out, is non-trivial).

    http://sajojacob.com/blog/2011/03/startup-tasks-elevated-privileges-vm-role/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an app that will need to make use of Timer s, but
Say that the user has started my App and then switched off to use
I have an app that will display Lotto Max numbers, I need to make
I have an app that struggles to perform well on iOS 5 running on
Have an app that can use tts to read text messages. It can also
I have an app that is meant to check connectivity prior to running the
The app that I'm working on allows the user to pick an image from
The App that I'm working on requires to parse a very big Json file
We are building an app that is deployed on a range of Customer iPads
I am writing an app that in some situations warns user with an alarm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.