Click here to Skip to main content
16,004,901 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Error Bind is not declared Pin
Member 1103130429-Nov-16 20:35
Member 1103130429-Nov-16 20:35 
GeneralRe: Error Bind is not declared Pin
Richard Deeming30-Nov-16 2:12
mveRichard Deeming30-Nov-16 2:12 
QuestionHow OAuth is used to secure web api Pin
Tridip Bhattacharjee28-Nov-16 3:36
professionalTridip Bhattacharjee28-Nov-16 3:36 
AnswerRe: How OAuth is used to secure web api Pin
Richard MacCutchan28-Nov-16 6:38
mveRichard MacCutchan28-Nov-16 6:38 
QuestionHow HMAC authentication works for web api Pin
Tridip Bhattacharjee28-Nov-16 3:27
professionalTridip Bhattacharjee28-Nov-16 3:27 
AnswerRe: How HMAC authentication works for web api Pin
Richard MacCutchan28-Nov-16 6:37
mveRichard MacCutchan28-Nov-16 6:37 
QuestionDifferent behavior firefox, chrome, safari Pin
equelna27-Nov-16 6:19
equelna27-Nov-16 6:19 
QuestionHelp please how to run dlls or activex controls on the intranet zone without pop-us without changing IE's intranet zone settings? Pin
lowracer24-Nov-16 21:34
professionallowracer24-Nov-16 21:34 
Good day

We have the requirement to invoke a Microsoft Outlook Meeting request from an Intranet web page without having the following (well known) message:

An ActiveX control on this page might be unsafe to interact with other parts of this page. Do you want to allow this interaction?


We want to use the standard installed (client side) Microsoft outlook libraries for that.

We do not want to relax the Local intranet Zone in IE by means of the standard resolution method of enabling the “Initialize and script ActiveX controls not marked as safe for scripting” Setting.

ASP.NET
This is a simplified version of the code, the message is invoked by the highlighted portion
<body>
    <form id="frmScheduleAMeeting" runat="server">
        <div>
            <input id="btnScheduleTheMeeting" type="button" value="Schedule the meeting" onclick="ScheduleTheMeeting()" style="width: 200px" />
        </div>
    </form>

    <script type="text/javascript">
        function ScheduleTheMeeting() {
            //Reference to Outlook.Application 
            var theApp;
            //Outlook.mailItem
            var theMeeting;
            var theApp = new ActiveXObject("Outlook.Application");    //  -- this is where we get the error
            var objNS = theApp.GetNameSpace('MAPI');
            var theMeeting = theApp.CreateItem(1); // value 0 = MailItem, 1 = meeting

            theMeeting.Subject = "Will this time suit you?";
            theMeeting.Location = "Your Office";
            theMeeting.Recipients.Add("someone@microsoft.com");
            theMeeting.Start = "01/01/2017 10:00:00"
            theMeeting.End = "01/01/2017 11:00:00"

            theMeeting.ReminderMinutesBeforeStart = 15;   // Number of minutes before the event for the reminder
            theMeeting.BusyStatus = 1;                    // Makes it appear bold in the calendar

            theMeeting.AllDayEvent = false;
            theMeeting.BusyStatus = 1;

            theMeeting.Save();
            theMeeting.Display();
            theMeeting.Recipients.ResolveAll();
            theMeeting.Save();
        }
    </script>
</body>



We have tried to mark it safe in the registry as safe for scripting (7DD95801-9882-11CF-9FA9-00AA006C42C4) and safe for initializing from persistent data (7DD95802-9882-11CF-9FA9-00AA006C42C4).
https://msdn.microsoft.com/en-us/library/aa751977(v=VS.85).aspx

This is the registry setting we used (the one is the standard GUID for outlook, the other is the GUIDwe get when we add a reference to mso.dll in a VS.net windows form Application

[HKEY_CLASSES_ROOT\CLSID\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}]
[HKEY_CLASSES_ROOT\CLSID\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\Implemented Categories]
[HKEY_CLASSES_ROOT\CLSID\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}]
[HKEY_CLASSES_ROOT\CLSID\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}] 

[HKEY_CLASSES_ROOT\CLSID\{0006F03A-0000-0000-C000-000000000046}]
[HKEY_CLASSES_ROOT\CLSID\{0006F03A-0000-0000-C000-000000000046}\Implemented Categories]
[HKEY_CLASSES_ROOT\CLSID\{0006F03A-0000-0000-C000-000000000046}\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}]
[HKEY_CLASSES_ROOT\CLSID\{0006F03A-0000-0000-C000-000000000046}\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}]


Any ideas on what else to try?
AnswerRe: Help please how to run dlls or activex controls on the intranet zone without pop-us without changing IE's intranet zone settings? Pin
Richard Deeming25-Nov-16 2:11
mveRichard Deeming25-Nov-16 2:11 
Questionblocking malicious bots (but not SEs) with web.config Pin
Scott5223-Nov-16 3:41
Scott5223-Nov-16 3:41 
AnswerRe: blocking malicious bots (but not SEs) with web.config Pin
jkirkerx23-Nov-16 7:25
professionaljkirkerx23-Nov-16 7:25 
GeneralRe: blocking malicious bots (but not SEs) with web.config Pin
Scott5223-Nov-16 7:29
Scott5223-Nov-16 7:29 
QuestionRe-Developing asp.net webform to MVC Pin
hussain.attiya18-Nov-16 6:21
hussain.attiya18-Nov-16 6:21 
AnswerRe: Re-Developing asp.net webform to MVC Pin
Nathan Minier18-Nov-16 8:31
professionalNathan Minier18-Nov-16 8:31 
GeneralRe: Re-Developing asp.net webform to MVC Pin
F-ES Sitecore20-Nov-16 22:28
professionalF-ES Sitecore20-Nov-16 22:28 
GeneralRe: Re-Developing asp.net webform to MVC Pin
Nathan Minier22-Nov-16 1:13
professionalNathan Minier22-Nov-16 1:13 
GeneralRe: Re-Developing asp.net webform to MVC Pin
Afzaal Ahmad Zeeshan24-Nov-16 2:24
professionalAfzaal Ahmad Zeeshan24-Nov-16 2:24 
GeneralRe: Re-Developing asp.net webform to MVC Pin
Nathan Minier26-Nov-16 2:20
professionalNathan Minier26-Nov-16 2:20 
AnswerRe: Re-Developing asp.net webform to MVC Pin
F-ES Sitecore20-Nov-16 22:37
professionalF-ES Sitecore20-Nov-16 22:37 
AnswerRe: Re-Developing asp.net webform to MVC Pin
Kornfeld Eliyahu Peter20-Nov-16 22:48
professionalKornfeld Eliyahu Peter20-Nov-16 22:48 
AnswerRe: Re-Developing asp.net webform to MVC Pin
jkirkerx23-Nov-16 7:56
professionaljkirkerx23-Nov-16 7:56 
GeneralRe: Re-Developing asp.net webform to MVC Pin
Richard Deeming23-Nov-16 12:11
mveRichard Deeming23-Nov-16 12:11 
GeneralRe: Re-Developing asp.net webform to MVC Pin
jkirkerx25-Nov-16 9:59
professionaljkirkerx25-Nov-16 9:59 
AnswerRe: Re-Developing asp.net webform to MVC Pin
hussain.attiya23-Nov-16 20:27
hussain.attiya23-Nov-16 20:27 
QuestionWeb API integration into MVC Pin
sunsher17-Nov-16 16:55
sunsher17-Nov-16 16:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.