Identified using exception stack trace below



Error when you try to sign in to an app that is set up for Azure AD B2C: Server Error in ‘/’ Application

This article describes an error that occurs when trying to sign in to an app that is set up for Azure AD B2C.

Original product version: В Azure Active Directory
Original KB number: В 3092588

Symptoms

When you try to sign in to an app that is set up for Microsoft Azure Active Directory (AD) business to consumer (B2C), you receive the following error message:

Server Error in ‘/’ Application
Response status code does not indicate success: 404 (Not Found)
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.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found)
Source Error : An unhandled exception occurred during the execution of the current web request. Information regarding the origin and locations of the exception can be identified using the exception stack trace below.
Stack Trace :
.
[IOException: Unable to get document from: https://login.microsoftonline.com/contoso.onmicrosoft.com/.well-known/openid-configuration?p=Policyname ]

Cause

The sign-up policy name may be missing or incorrect in the Web.config file for the app.

Resolution

To fix this issue, follow these steps:

Open the Web.config file for the app.

In the Web.config file, verify that the app key ida:SignUpPolicyId exists.

Replace the value of the app key with the name of the sign-up policy that you provided in the Azure AD B2C admin portal.

The changed part of the file resembles the following:

Contact us for help

If you have questions or need help, create a support request, or ask Azure community support. You can also submit product feedback to Azure community support.

Источник

Identified using exception stack trace below

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Asked by:

Question

I am developing mvc 4 application using code first approach. I use this initialization

inside my global.asax.

when I deploy it on my local server it work fine. it create database and so on. but when I host the application on cloud, it show me this error

All replies

I am developing mvc 4 application using code first approach. I use this initialization

inside my global.asax.

when I deploy it on my local server it work fine. it create database and so on. but when I host the application on cloud, it show me this error

Can you look at the database server? Does the _MigrationsHistoryTable exist?

This will happen if there is no MigrationsHistory table in the database, perhaps you are missing permissions on the host to create a system table in the database?

EDIT: I was just told that EF will ignore an error in making the MigrationsHistory table a system table and it will instead just become a normal table. So this is unlikely to be the cause of your issue.

I’ll look into it a bit and see if I can reproduce it. Can you give me some more details about the cloud environment?

We are seeing a lot of great Entity Framework questions (and answers) from the community on Stack Overflow. As a result, our team is going to spend more time reading and answering questions posted on Stack Overflow. We would encourage you to post questions on Stack Overflow using the entity-framework tag. We will also continue to monitor the Entity Framework forum.

Источник

Server Error in ‘/’ Application.

External component has thrown an exception.

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.Runtime.InteropServices.SEHException: External component has thrown an exception.

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225

Читайте также:  Boot disk drive error

Answers

I solved the problem .

I renamed directory c:\program files (x86)\Trusteer andI renamed directory c:\ProgramData\Trusteer and rebooted.

Many UK guys affected because this software is offered to install by .

Also confirmed — thanks for everyones input and I have opened a ticked with Trusteer to see if they can sort it out their end.

Fantastic! Great piece of work. I would never have thought of Trusteer affecting a CreateFile call in a native app. I’ve reinstalled Trusteer and systems still go.

All replies

Do you run your applcations on your local machine or host them on a server?

As your applications meet an issue while creating a file, you can check if the user who runs your applications has write premissions on Windows temp folder and ASP.Net website temp folder.

I’m looking forward for your reply.

I am having the exact same issue. I have recently reinstalled my PC and am now running 64bit windows rather than 32 bit that I was running before.

I have just created a brand new asp.net 4.0 web application, hit run and I get this problem.

My user account is an admin account, I have tried running VS2010 in Run as administrator mode, but this makes no difference.

This is now happening to all my projects including ones which were running fine a couple of hours ago.

The stack trace is

Same thing happened to me literally 1 hour ago. I can’t figure out what’s going on! I’m repairing VS2010 atm.

More info: Windows 7 Enterprise, 64bit, Antivirus is Prevx 3

I am having exactly the same issue, though I have made no changes at all to my PC. Suddenly all attempts to run web apps old and new in the web dev server under VS2010 are throwing this same exception with the same stack trace. I have tried rebooting, but that did not help. What has happened. This is the error page from a newly created web app — create and run:

Server Error in ‘/’ Application.

External component has thrown an exception.

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.Runtime.InteropServices.SEHException: External component has thrown
an exception.

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.

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.1

When did it begin??

Thats exactly what has happened to me.

I was running fine with an mvc project until about 1.5 hours ago and then loaded up a previous asp.net webforms project and got this error.

Assumed it was related to that specific project, tried the mvc one and that had the same issue, have tried the reboot, install all updates etc and none of it made a difference.

Likewise, i’m getting the same problem. Can run the projects through IIS locally and on the live server, but not through VS.

Any VS updates that could have affected something?

Same problem here.

The only thing i’ve done is some windows updates — about to take them off.

running visual studio 2010 Windows 7 x64.

Works through IIS, but not localhost from VS2010.

Mine machine is running Vista 32-bit, Visual Studio 2010. Anti-virus is Microsoft Security Essentials. The only recent updates shown under Windows Update are Microsoft Security Essentials definition updates.

I also just go this error also about 1 hour ago — hopefully someone has a fix for this or microsoft could comment that would be great — i tried rebooting did not work — I suspect it is some update that has occurred as mentioned in other posts .

I am new to Microsoft Visual Studio 2010 (Version 10.0.40219.1 SP1Rel) and was beginning to make good progress, comparing it to Ruby on Rails. Then (this afternooon) everthing went pear shaped and I can no longer create a new MVC 3 Web application — Visual Basic. => loads of MS style spurious error messages as reported by others above. Also my MvcMovie project, which did work recently, now doesn’t, throwing:

Читайте также:  Gradle exception in thread main java lang noclassdeffounderror

Server Error in ‘/’ Application.
External component has thrown an exception.
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.Runtime.InteropServices.SEHException: External component has thrown an exception.

Ditto my MvcMovie app still works via:

C:\Program Files\IIS Express>iisexpress /site:MvcMovie
Starting IIS Express .
Successfully registered URL «http://dalriada84epa.plus.com:3155/» for site «MvcM
ovie» application «/»
Registration completed for site «MvcMovie»
IIS Express is running.
Enter ‘Q’ to stop IIS Express

Probably I should have known better — I’ll stick with Ruby on Rails.

Same here. what happened. this has to be a Visual Studio 2010 Bug pushed by some update. How can we all bomb within the same few hours?

Experiencing the same issues since arount 14H00 GMT, any ideas?

Same thing here.

Also noticed the same question popping up on StackOverflow about 1 hour ago.

Thing is, there have been no updates in the past few days, so how could it be that?

Mybe just getting paranoid but did anyone else install the Infragistics MVC 3 controls lately? Also any extension updates?

Not sure this helps but reviewing the Intellitrace it seems the first exception that is generated is the following

No sure if this specific to my machine but would be interested to see what anyone else has listed. I am running Windows 7 Visual Studio 2010 with SP1. The exception that is displayed via asp.net is the third exception listed:

Also please note I am running VS 2010 as an Administrator — so this is not the issue.

Hi all, sorry for the late response.

I was running the application on my local machine (not yet hosted on any websites and purely run between Visual Studio and SQL Server on a non live program) After getting frustrated with the problem (and thinking it may be a problem with some sort of Windows update) I decided to back up the machine and switch to an earlier version of the software and go from there which has fixed the problem and it now runs ok.

Ok, so now that I’m at home, I’m having a look to see if there is any ms update pending to install and compare with my computer at work.

I have just installed the following, but VS2010 seems to run fine.

I’m now about to install the following:

Expression Web 4 Service Pack 2 (KB2571841), can anyone check that this has been installed on your machine?

No more updates are listed.

I installed that update AFTER the symptoms started, this morning. It didn’t fix it (not that I thought that it would), but it obviously didn’t cause the problem either.

Same problem here. The app was working great. Now it’s toast. Somehow something either got pushed out or a timebomb just exploded 😉

[SEHException (0x80004005): External component has thrown an exception.] Microsoft.Win32.Win32Native.CreateFile(String lpFileName, Int32 dwDesiredAccess, FileShare dwShareMode, SECURITY_ATTRIBUTES securityAttrs, FileMode dwCreationDisposition, Int32 dwFlagsAndAttributes, IntPtr hTemplateFile) +0 Microsoft.Win32.Win32Native.SafeCreateFile(String lpFileName, Int32 dwDesiredAccess, FileShare dwShareMode, SECURITY_ATTRIBUTES securityAttrs, FileMode dwCreationDisposition, Int32 dwFlagsAndAttributes, IntPtr hTemplateFile) +29 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) +936 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) +82 System.IO.StreamWriter.CreateFile(String path, Boolean append) +55 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) +121 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) +29 System.Web.Compilation.StandardDiskBuildResultCache.SavePreservedSpecialFilesCombinedHash(Int64 hash) +116 System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate2(StandardDiskBuildResultCache diskCache) +752 System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(StandardDiskBuildResultCache diskCache) +55 System.Web.Compilation.BuildManager.RegularAppRuntimeModeInitialize() +174 System.Web.Compilation.BuildManager.Initialize() +261 System.Web.Compilation.BuildManager.InitializeBuildManager() +246 System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +530 [HttpException (0x80004005): External component has thrown an exception.]

Читайте также:  An error occurred while processing the directive wordpress как исправить

Expression Web 4 Service Pack 2 (KB2571841) was installed, but that didn’t seem to cause the issue.

I’m now looking at Extension Manager and the following updates are available:

* JScript Editor Extensions: Current 1.1.1, new version: 1.1.2

* Mindscape Web Workbench: Current 1.0.184.18056, new version: 1.0.208.18114

* Productivity Power Tools: Current: 10.0.11019.3, new version: 10.0.20626.18

Does anyone have any of these installed?

Please note Microsoft this is happening on more machines, one of my colleagues just encountered the same error since 2 hours ago. Something update or virus related.

More info: I’ve upgraded the extensions, still no issues. Re-started the machine, and once again, no issue — at least not at home.

What antivirus package do you guys run? The machine getting this error is running Norton 360, wondering if it is not perhaps that, Norton tend to not play nice with our dev environments.

PrevX at work (issue), Microsoft Security Essentials (no issue)

What antivirus package do you guys run? The machine getting this error is running Norton 360, wondering if it is not perhaps that, Norton tend to not play nice with our dev environments.

I have Microsoft Security essentials, tried disabling but made no difference.

AVG on mine — so that rules antivirus out

I have no extensions installed, and I am using Microsoft Security Essesntials — and I have the problem on this computer 🙁

Just to make things clear. we get this exception with brand new, simple-as-possible, hello world, MVC 3 app created from a Emply MVC 3 app. We also get it with the wizard generated MVC 3 Internet Application. I’m also getting it on some non-web apps:

AVG here too, although a colleague of mine in this office has the same configuration but no problem so far.
I’ll try at home later — Avast.

And indeed, this also happens with a dead simple «Hello World» Silverlight 4 app.

I first started getting the error in my MVC 3 project but now any project type I create a new project with, bombs. in Both C# or VB

Same thing for me since this afternoon . All my web projects raise this exception at startup. I tried to repair/re-install .Net framework 4 . and Visual Studio 2010 . VS2010 SP1. Nothing better. I tried to launch my projects from an other account on the same computer. Nothing better.

I didn’t installed any update before it began. I’m running Nod32 antivirus. ;-(

I was coding when it starded. Everything was runing fine, I pressed refresh to see one of my modification and . SEHException! Nothing more since this moment. We were the 8/1/2011 and it was exactly 3:00:00 PM GMT (my logs show me that everything was ok at 2:59:40 PM and the first error occured at 3:00:12 PM). Very strange no?? Do you have more detail on the exact moment it started for you?

I’ve had the same problem for the last couple of hours and it seems to point to the Machine Debug Manager. Can you guys confirm this when you look in your event logs please?

Please check to see if you have any DistributedDCOM errors in the System section of event viewer.

You’ll see something like this

(QTAgent32.exe, PID 4012, Thread 8) Write: exception writing restart info: External component has thrown an exception.

(devenv.exe, PID 208, Thread 29) OutOfProcessStrategy.ProcessMonitorThread: Agent process was shut down unexpectedly; will attempt to restart

neither of which are very helpful, at least to me 😉

This problem occurs debugging any web app in VS 2010 on a local server, either IIS or the web dev server. It does not occur if the web app is run outside of VS 2010.

Debugging the exception indicates that, on my system at least, the exception is thrown on the call to SafeCreateFile attempting to create the file:

Источник

Оцените статью
toolgir.ru
Adblock
detector