Not show AdControl in windows silverlight 8.1 - c#

i work fine with keytest but my Ad unit ID not show ads. When create Ad units in my account, it generate Ad units Id include 6 characters. but Ad units Id of other account or keytest have 8 characters for Ad Units Id? anyone help me? thanks

first you need to drag add mediator from toolbox to your xaml code ,
then goto solution explorer and right click on project and select ad reference,
then new windows will appear select extension > and check windows phone ad mediator or something option like that.
after above two process goto again in solution explorer and and right click on your project add click on add >> Add connected service, and then select add mediator there.
and new wizard will start to configure your ad unit and id.
after all that , setup add mediator (which will be added by you from tool box) padding and place it where you want .
for more details and codes go to this microsoft documentaion

Related

How to Fix issues related to DirectLineChannel prompt choice options not displayed in chat bot window developed using V4 SDK in C#?

I am trying to create a chatbot which is having multiple waterfall dialog classes using C# and BOT SDK V4. I have created a HTML page and placed the DirectLine channel Secret Key Iframe data into it and published it to Azure successfully and opened it in the browser. The browser opens with a in-built welcome message something like: Hi bot name type Hi to continue.
If i have Choice options done through prompt options to be displayed as buttons but these are not displayed through direct line channel but works very good in Web Chat Channel?
Attached image shows the issue:
a "WebChatbotHtml_optionbtndisplayed.jpg"
b. "DirectLinechannelHtml_optionbtnnotdisplayed.jpg"
Now, in the main dialog class i have implemented the Login mechanism using the Oauth Prompt in th html page that was created above i see the login link getting displayed using which i have successfully logged in this will navigate to another waterfall dialog having prompt options with some custom choice buttons, whee if i click on a choice button the next step will be executed and respective action will be triggered.
The issue i have is normally the options are displayed for me to access but in the html that i created the all other things like login link and navigation is happening but the choice buttons are not displayed its like they are getting hidden.
or Sometimes the Choice Option buttons are not displayed at all in the Direct Channel Web chat bot
The query is how to fix the issue?
To make my query to be understood in a better way please find below set of things:
1. WaterfalldiaglogClass1:
STEP 1: Has login option/link displayed through Oauth Prompt.
STEP 2: Gets token validates it and displays login successful message and then navigates to second waterfalldialogClass
2. WaterFallddialogClass2:
STEP 1: Custom choices are displayed through Prompt options lets say 1,2,3,4
STEP 2: Capture the choice getting clicked and perform respective action
I created a HTML page where the I frame code i copied with secret code of Direct Line Channel
Published it to azure successfully with no errors or warnings
Opened the html page in a browser the chat bot opens successfully with a welcome default message like: HI i am bot,enter Hi to continue
User sends hi and logins using the login link available displayed in dialog class 1 and login successful message is displayed
Navigated successfully to second dialog successfully as i can see the prompt message given as part of prompt option and custom choices in the code
Current Issue: The option buttons 1,2,3,4 are not getting displayed it is getting hidden somehow
Need help in resolving the issue Please provide detailed step by step guide in resolving it as i am new to BOT and coding .
language: C#
Bot Framework: V4
I have tried increasing height width and other % values in the HTML page and republished it but not successful. The same thing works in web chat channel i.e. if i keep secret code inside the HTML page of webchat channel without any issues.
Issue Image attached for reference.
Expected Result: Data or choices should be shown as it is working in Webchat channel
Actual Result: Not working the choice options are not visible to choose
There are two versions of Embedded Web Chat at the moment: Gemini and Scorpio. Embedded Web Chat is currently in the process of slowly transitioning all clients from Scorpio to Gemini. It appears your embedded Web Chat is still using Scorpio which unfortunately does not support the OAuth prompt. In the near future, you will be able to manually request your client to be switched to Gemini.
In the meantime, you can add either add Web Chat v4 to your site using a CDN or wait for your client to be migrated to Gemini.
For more details regarding Embedded Web Chat, take a look at the documentation.
Hope this is somewhat helpful.

Launch one more instance of same UWP app from first app

My primary concern here is to know how to launch another instance of my UWP app from the same app itself, some code snippet or documentation link would be helpful.
Below are the changes suggested by different links, but didn't found any thing concrete:
Appraoch:
Research suggest that we can launch multiple instance of the same UWP application by setting the package.appxmanifest file with flag SupportsMultiInstances to True. Link here
<Application Id="App"
...
desktop4:SupportsMultipleInstances="true"
iot2:SupportsMultipleInstances="true">
...
</Application>
Extension
We can set the uap:FileTypeAssociation for these apps and later run the instance of the app which we wish. But these are already build files and I need to open new instance at runtime from my uwp app.
URI:
One more way was to open store app using URI.
var uriToLaunch = "testapp-mainpage://";
var uri = new Uri(uriToLaunch);
bool success = await Windows.System.Launcher.LaunchUriAsync(uri);
Now based on this, the way I wish to launch second or another instance of my app is something like below:
Suppose I have an UWP app which have first view to select type of user from dropdown having Agent, Owner and GuestUser. based on that I show list of House properties to user on next page.
Now I would like to have the functionality where, when user press and hold on a house property card then the details to purchase it and other booking page(s) are visible on another instance(where selecting the type of user and selecting the house property is skipped). while if user just click once (not long-press) on a house property card then it will open in the same instance.
SideNote
I am not looking for MultipleView where we show independent part of your app in separate window.

Launch Outlook from web application and open specific calendar entry

I have a requirement to display a user's calendar entries for the next month on a web application dashboard view.
I have successfully used Exchange Web Services to achieve this following this documentation:
https://msdn.microsoft.com/en-us/library/office/dn495614(v=exchg.150).aspx
The final requirements for this task are that if the user clicks on the entry (in their browser):
Outlook should open on their machine and take them straight to the actual calendar entry.
I've inspected the appointment objects and I can see I have access to the calendar Id and I can easily pass this to the server however from here I'm a little confused how I can launch the application that is on their machine and tell it to open that entry Id.
Would this be another EWS call or Office.Interop.Outlook, is it even possible at all?
If this makes it anymore difficult, this is a .Net Core 2.0 web application.
Outlook still accepts command line switches, one of which let's you open an Outlook item, /select.
Now you just need to create a URL to launch Outlook with your command line arguments.
For IE, this is not too difficult assuming your web application is trusted:
javascript:(new ActiveXObject('Shell.Application')).ShellExecute('outlook.exe','/select outlook:<entryid>');
For Chrome, you could send a cmd file or create a helper exe that is downloaded, but the user would have to manually pick open to launch it.
Active X will not be working for all the modern browsers like chrome, IEEdge, firefox and safari. Alternatively you can create below registry entry and anchor link/button to open the outlook calendar
below is the markup
<button id="outlookCalendarBtn" onclick="window.open('outlookwebcal:')">
Open Outlook Calendar
</button>
Create below registry entry
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\outlookwebcal]
#="URL:Outlook Add Internet Calendar"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\outlookwebcal\shell]
#="open"
[HKEY_CLASSES_ROOT\outlookwebcal\shell\open]
[HKEY_CLASSES_ROOT\outlookwebcal\shell\open\command]
#="\"C:\\Program Files\\Microsoft Office\\root\\office16\\Outlook.exe\" /select outlook:calendar"

Getting User Information in App Insights

I have a web forms application.
I have integrated the App Insights SDK, I receive the notifications about the application like button click (through Custom Events, Track Event function) on my Azure portal.
How can I get user information like:
What regions/geography the user is logging from, which browser is he/she accessing through... things like that.
Right now, In Azure Portal under Usage--> Users
I get:
No data for 'users' with values of 'Country or region'.
Similarly, no data messages are there for sessions and page views even though for a Custom event (Button click), I am getting the metrics.
Please explain.
Thanks.
How can I get user information like:
What regions/geography the user is logging from, which browser is he/she accessing through... things like that.
According to your description, I do a test to configure the chart under Application Insights > Overview > Metrics Explorer, and select the metrics and group metrics by Browser version or Country or region.
I set Chart type to Grid, and select Users and group by Country or region, the chart looks like this.
In a same way, I configure the chart to display Unique count of Users by Browser version, the chart looks like this.
I get:
No data for 'users' with values of 'Country or region'.
For “No data for 'users'…” issue, please make sure if you add the scripts by hand. And you could check “No data on Page Views, Browsers, Usage” section to troubleshoot no data issue.

facing routing issue in MVC4

I am working on project wherein there are 8 to 10 different types of project in a solution.
On sharepoint site there is one link say "open dashboard" ,when this link is clicked it navigates to the project I am working on.
Now the problem is when user click this link and a login page which is common for all the 8 to 10 project appears and depending upon selection from drop-down it navigates to that particular dashboard.
Error occurs if user does the following steps :
open two tabs in IE. Navigate using sharepoint site and select the open dashboard and login to Project1. if user repeat the same steps in the second tab, the error occurs(object reference not found).
I have created logs for this however I am not able to dig where the problem as it routes Project2(as an example) which is set default in route table but user has login to Project1 in tab1
what I want to achieve is that user should see same content in second tab as in first tab.
I have done tried so many things but they all are failing..Please correct me where I am going wrong?

Categories

Resources