Up and Running with Webmatrix - webmatrix

I have used webmatrix before and it was cool. I downloaded it today and was trying to start a site from Template or Application Gallery and I got the following error. I know Microsoft has stopped active development. There must be a hack around to use it? I tried downloading the installing the extensions they provided too. No Luck! Anyone know how to solve this?
Error:
Unable to download the Web Platform product list. Check your network
connection and try again. If the problem persists, report the issue on
the Web Platform Installer forum at:
http://go.microsoft.com/fwlink/?LinkId=145244. Details: One or more
errors occurred.
'doctype' is an unexpected token. The expected token is 'DOCTYPE'.
Line 1, position 3.
System.AggregateException: One or more errors occurred. --->
System.Xml.XmlException: 'doctype' is an unexpected token. The
expected token is 'DOCTYPE'. Line 1, position 3. at
Microsoft.WebMatrix.Gallery.Wizard.GalleryWizardModel.Load() at
System.Threading.Tasks.Task.InnerInvoke() at
System.Threading.Tasks.Task.Execute() --- End of inner exception
stack trace ---
---> (Inner Exception #0) System.Xml.XmlException: 'doctype' is an unexpected token. The expected token is 'DOCTYPE'. Line 1, position 3.
at Microsoft.WebMatrix.Gallery.Wizard.GalleryWizardModel.Load() at
System.Threading.Tasks.Task.InnerInvoke() at
System.Threading.Tasks.Task.Execute()<---

Related

Invalid JSON 'claims' value encountered

I am using MSAL for Android and confused about this error:
com.microsoft.identity.common.java.exception.ServiceException: Invalid JSON 'claims' value encountered
at com.microsoft.identity.common.java.controllers.ExceptionAdapter.exceptionFromAcquireTokenResult(ExceptionAdapter.java:96)
at com.microsoft.identity.common.java.controllers.CommandDispatcher.getCommandResultFromTokenResult(CommandDispatcher.java:572)
at com.microsoft.identity.common.java.controllers.CommandDispatcher.executeCommand(CommandDispatcher.java:480)
at com.microsoft.identity.common.java.controllers.CommandDispatcher.access$100(CommandDispatcher.java:85)
at com.microsoft.identity.common.java.controllers.CommandDispatcher$5.run(CommandDispatcher.java:648)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Caused by: com.microsoft.identity.client.exception.MsalServiceException: Invalid JSON 'claims' value encountered
at com.microsoft.identity.client.internal.controllers.MsalExceptionAdapter.msalExceptionFromBaseException(MsalExceptionAdapter.java:74)
at com.microsoft.identity.client.SingleAccountPublicClientApplication$3.onError(SingleAccountPublicClientApplication.java:351)
at com.microsoft.identity.client.SingleAccountPublicClientApplication$3.onError(SingleAccountPublicClientApplication.java:337)
at com.microsoft.identity.common.java.controllers.CommandDispatcher.commandCallbackOnError(CommandDispatcher.java:534)
at com.microsoft.identity.common.java.controllers.CommandDispatcher.access$1000(CommandDispatcher.java:85)
at com.microsoft.identity.common.java.controllers.CommandDispatcher$4.run(CommandDispatcher.java:514)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8663)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
how to fix this com.microsoft.identity.client.exception.MsalServiceException?
In my case it was an expired Azure Subscription. The free trial has ended and I had to upgrade to pay as you go subscription.
Go to Cost Management in Azure Portal and check for red boxes or warnings and fix them.
I detected today the same issue, without any change on the code, I get now the error message. The LogIn screen is shown, I can indicate user and password, but then I get the same exception.
I renewed already the app registration in Azure, but no solution.
Did you change anything in your app before? Or did you add any new library?

DatafileManager: Error fetching datafile: Request error

Problem
I'm using Optimizely to code-gate my new website. But the allowed accounts aren't getting through. The first Firefox console error is
[OPTIMIZELY] - ERROR <timestamp> DatafileManager: Error fetching datafile: Request error
How do I fix this error and fetch the data file?
DatafileManager: Error fetching datafile: Request error
One of the network failures helped me out. The GET request for cdn.optimizely.com had "Blocked by AdBlocker Ultimate" in the Transferred column.
Solution
I turned off AdBlocker Ultimate for this site.

SwiftUI previews error: Connecting to launched interactive agent

I received the above error when using the SwiftUI previews feature and can't figure out why this happens. The error always looks something like this:
GenericHumanReadableError: unexpected error occurred
messageRepliedWithError("Connecting to launched interactive agent 1894", Optional(Error Domain=com.apple.dt.xcodepreviews.service Code=17 "connectToPreviewHost: Failed to connect to 1894: (null)" UserInfo={NSLocalizedDescription=connectToPreviewHost: Failed to connect to 1894: (null)}))
I managed to figure out a good way to debug this, please see below
If you head into /Users/USERNAME/Library/Logs/DiagnosticReports you will see the latest crash reports. Open the most recent one (should start with your app name), and it should tell you the reason the app crashed. It'll look something like this:
Application Specific Information:
Fatal error: This request requires an authenticated account: file /Users/USERNAME/Work/AppName/Models/CloudKitAlbumManager.swift, line 101
In my case, it was a fatalError i threw in development for debugging. The previews loads your app and thus call your whole stack and will crash if you like me throws fatalErrors for debugging.
I hope this helps

Microsoft.Bot.Builder - sporadic error - "Operation returned an invalid status code 'Unauthorized'"

I'm developing a chatbot using Microsoft.Bot.Builder v3.15.2.2, QnA Maker (preview mode, aka 'old') and QnAMakerDialog (from Microsoft.Bot.Builder.CognitiveServices v1.1.7). I'm using Direct API as a channel and BotFramework-WebChat to embed my chatbox in a web page. I've also implemented a custom bot data store to persist the bot's state.
From time to time (I cannot establish a pattern), during a conversation with the bot, I receive the following error:
Microsoft.Bot.Connector.ErrorResponseException: Operation returned an invalid status code
'Unauthorized' at Microsoft.Bot.Connector.Conversations.
<ReplyToActivityWithHttpMessagesAsync>d__9.MoveNext() --- End of stack trace from previous
location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.
ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.
HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Bot.Connector.
ConversationsExtensions.<ReplyToActivityAsync>d__9.MoveNext() --- End of stack trace from
previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.
TaskAwaiter`1.GetResult() at UCB.ChatBot.Bot.Controllers.MessagesController.<Post>d__3.
MoveNext() in [...]Bot\Controllers\MessagesController.cs:line 39
After this error shows up, the bot keeps replying 'Sorry! Not able to match any of the options.' or, keeps giving you an answer to a question asked way before, in the beginning of the conversation. A Ctrl + F5 fixes this issue and the bot returns to the expected behavior.
This happens sporadically - as I said, I cannot establish a pattern or reproduce it. Maybe once or twice a day or a week.
Any thoughts or hints are very welcomed.
We have released a new package 3.15.2.3 that we believe addresses this issue. Please let us know if you are still experiencing this issue after upgrading by commenting in this GitHub issue on the botbuilder repository

Getting error in google fit "Connection failed. Cause: ConnectionResult{statusCode=unknown status code 5005, resolution=null}"

I have tried to develop application using google fit. I follow This link
When i try to run that application i got the following error
10-27 11:55:19.966: I/Google Fit(6016): Connection failed. Cause: ConnectionResult{statusCode=unknown status code 5005, resolution=null}
10-27 11:55:19.966: E/GooglePlayServicesUtil(6016): Unexpected error code 5005
Finally i found that issues. We need to save the content in consent screen under oath and api
I had this error and the consent screen had been filled in correctly. The only way I could get around this was to delete the project and re-create it.

Resources