I have an MVC 5 build that is building and running locally without any problems whatsoever. I cannot however publish to Azure. I'm publishing with Intellitrace enabled and I'm seeing that an exception is being thrown attempting to activate the role.
Exception Thrown: "Requested registry access is not allowed." (System.Security.SecurityException)
I have made sure of the following:
I have the latest edition of the Microsoft Azure SDK
All the relevant project references for all of my project references are set to Copy Local: True
All the relevant libraries have the correct binding redirects in their respective app.config/web.config files
All the Azure references in my project are to the correct versions of the assemblies
The event log shows the following exceptions in chronological order:
Error 4/11/2014 3:23:57 AM SRMSVC 8228 None
File Server Resource: Manager was unable to access the following
file or volume: 'E:'. This file or volume might be locked by
another application right now, or you might need to give Local
System access to it.
Error 4/11/2014 3:31:44 AM .NET Runtime 1026 None
Application:
DiagnosticsAgent.exe Framework Version: v4.0.30319 Description: The
process was terminated due to an unhandled exception. Exception Info:
System.IO.FileNotFoundException Stack: at
Microsoft.WindowsAzure.Plugins.Diagnostics.DiagnosticsGuidNamedEventProvider.GetNamedEvent(System.String)
at
Microsoft.WindowsAzure.Plugins.Common.BlockingExecutionEnvironment.Execute(System.Func`1)
at
Microsoft.WindowsAzure.Plugins.Diagnostics.Program.Main(System.String[])
Error 4/11/2014 3:31:44 AM .NET Runtime 1026 None
Application:
DiagnosticsAgent.exe Framework Version: v4.0.30319 Description: The
process was terminated due to an unhandled exception. Exception Info:
System.IO.FileNotFoundException Stack: at
Microsoft.WindowsAzure.Plugins.Diagnostics.DiagnosticsGuidNamedEventProvider.GetNamedEvent(System.String)
at
Microsoft.WindowsAzure.Plugins.Common.BlockingExecutionEnvironment.Execute(System.Func`1)
at
Microsoft.WindowsAzure.Plugins.Diagnostics.Program.Main(System.String[])
.
Error 4/11/2014 3:31:45 AM Application Error 1000 (100) Faulting
application name: DiagnosticsAgent.exe, version: 0.0.0.0, time stamp:
0x5243ef34 Faulting module name: KERNELBASE.dll, version:
6.2.9200.16451, time stamp: 0x50988aa6 Exception code: 0xe0434352 Fault offset: 0x000000000003811c Faulting process id: 0x9c Faulting
application start time: 0x01cf55368ce74b73 Faulting application path:
E:\plugins\Diagnostics\DiagnosticsAgent.exe Faulting module path:
D:\Windows\system32\KERNELBASE.dll Report Id:
cdd18167-c129-11e3-93f5-00155d85a04e Faulting package full name:
Faulting package-relative application ID:Server ResourceApplication:
We were getting the following error:
"File Server Resource Manager was unable to access the following file or volume: 'E:'. This file or volume might be locked by another application right now, or you might need to give Local System access to it."
We resolved the issue by updating our project references. If you are getting this error, check your Azure references, specifically these two:
Microsoft.WindowsAzure.ServiceRuntime
Microsoft.WindowsAzure.Diagnostics
Ensure that your references are the appropriate Azure SDK version to the schema/SDK you are pointing to in Azure.
Related
There is problem with hosting application on IIS by VS2017 (15.9.3). I have MVC app write in .NET Core 2.0 with enabled logging on web.config
stdoutLogEnabled="true" stdoutLogFile="c:\Logs\log.txt"
After any request is made I get 502.3 error.
HTTP Error 502.3 - Bad Gateway The specified CGI application
encountered an error and the server terminated the process.
On my log file there is short info:
Process is terminating due to StackOverflowException.
On EventViewer I get more descriptive error:
Faulting application name: w3wp.exe, version: 7.5.7601.17514, time
stamp: 0x4ce7afa2
Faulting module name: ntdll.dll, version: 6.1.7601.24260, time stamp:
0x5b9470be
Exception code: 0xc000070a
Fault offset: 0x00000000000139d7
Faulting process id: 0x2304
Faulting application start time: 0x01d48723e2a88740
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: f7ca32d0-f31c-11e8-83db-1c4d70da3d0a
Exception is probably generated by something in my code, maybe configuration of sth is wrong, but how can I find reason of it?
What could be the best strategy to find solution?
I am working on a VS 2015 MVC C# web application for a client. The application has been stable for a couple of years, but the client has asked me to integrate some C++ DLLs that perform engineering calculations relevant to our web application.
Unfortunately there is no source code and documentation does not exist (don't ask me why...). So I am somewhat blind to how to use these DLLs.
When I load the main DLL and attempt to use it I get the following error:
Failed to load library SQLite3Ex.dll
Event viewer contains this entry:
Faulting application name: iisexpress.exe, version: 10.0.10557.1000, time stamp: 0x560abee8
Faulting module name: MSVCR120.dll, version: 12.0.21005.1, time stamp: 0x524f7ce6
Exception code: 0xc0000005
Fault offset: 0x0000f20c
Faulting process id: 0x1450
Faulting application start time: 0x01d1c6773bd1167d
Faulting application path: C:\Program Files (x86)\IIS Express\iisexpress.exe
Faulting module path: C:\WINDOWS\SYSTEM32\MSVCR120.dll
Report Id: 5d46a86a-2202-4d6e-af41-8426c16966e9
Faulting package full name:
Faulting package-relative application ID:
I'm not sure how to troubleshoot this problem and was hoping someone could point me in the right direction. I think this is a general error - could be a missing .cfg file or even a missing DLL? But I'm not sure how to determine the problem.
I am having the following problem.
Data:
I have a TFS Build Controller+Agent machine. I have there VS2013 Update 5 Installed.
I am running a build step which executes the following code:
using (var coverageInfo = CoverageInfo.CreateFromFile(Path.GetFullPath(cmdArgs.CoverageFile), executableDirectories, executableDirectories))
{
using (var coverageDs = coverageInfo.BuildDataSet())
{
coverageDs.WriteXml(cmdArgs.OutputFile);
}
}
When that steps is executed in the Build Server there is an exception:
Unhandled Exception: Microsoft.VisualStudio.Coverage.Analysis.SymbolsNotFoundException: Symbols for image file "Entities.dll" could not be found.
The thing is that, when I run that same code from my local machine, pointing to the same folders as the build machine, everything runs fine.
Any idea of what I can check?
Regards!
I was able to fix the issue by installing VS 2012. Let me explain. The image below shows the project that was giving problems. As you can see, there are two references to *.Analysis and *.Symbols. These two dlls are referenced by PATH:
C:\Projects\Build\Dev\ActivityPack\References\Microsoft.VisualStudio.Coverage.Analysis.dll
C:\Projects\Build\Dev\ActivityPack\References\Microsoft.VisualStudio.Coverage.Symbols.dll
The thing is that it looks like those DLLs need additional components installed by VS 2010.
I was getting this error:
Faulting application name: secondaryinstaller.exe, version: 14.0.23107.0, time stamp: 0x559b70e4
Faulting module name: KERNELBASE.dll, version: 6.2.9200.17366, time stamp: 0x554d16f6
Exception code: 0xe0434352
Fault offset: 0x00010192
Faulting process id: 0xac0
Faulting application start time: 0x01d12714fefee4bd
Faulting application path: D:\d6da799e8cfbca473168b6f82eb35b\secondaryinstaller.exe
Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll
Report Id: dd1fc757-9308-11e5-9431-005056b4190f
Faulting package full name:
Faulting package-relative application ID:
As you can see, the error is thrown by the Kernel, which makes me thing, in my ignorance, that there got to be a COM somewhere that is being referenced.
Thank you #cece for caring!
Trying to publish my UWP app. I'm able to build Release versions fine (I was actually able to push to the Store), but my app crashes as soon as it's launched. But the debug works fine?
I'm getting this error when debugging a Release build:
Unhandled exception at 0x55BA32F9 (Windows.UI.Xaml.dll) in AppName.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x00A12450, 0x00000002).
And these errors in Event Viewer if I launch it outside of VS:
1st:
Activation of app AppName failed with error: The remote procedure call failed. See the Microsoft-Windows-TWinUI/Operational log for additional information.
2nd:
Faulting application name: AppName.exe, version: 1.0.0.0, time stamp: 0x560c53bd
Faulting module name: Windows.UI.Xaml.dll, version: 10.0.10240.16431, time stamp: 0x55c9b90a
Exception code: 0xc000027b
Fault offset: 0x007132f9
Faulting process id: 0x1e38
Faulting application start time: 0x01d0fbcba39fec70
Faulting application path: C:\Development\AppName\AppName\bin\x86\Release\AppX\AppName.exe
Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll
Report Id: 5c74b39d-98e4-4e89-b2ec-c81cbd5383d1
Faulting package full name: AppName
Faulting package-relative application ID: App
Is there something I'm doing wrong? I don't get any errors or warnings on Debug.
Add some code to the app.xaml.cs files unhandled exception event to send the error text to a web service or something like google analytics so you can see what is happening
Ended up being an issue with Entity Framework when it is compiled in .NET Native. I had to switch to SQLite for what I was using it for. Seems to work fine now.
https://github.com/aspnet/EntityFramework/issues/3293
I created a basic toolkit in .EXE format with ADB and Fastboot commands for my phone in Visual Studio Express 2012 using C#, and it works great on my computer, but when I try and open it on another computer, nothing happens. I have made sure to build it in Release mode, the computers I have tested are all on Windows 8 and have the latest .NET Frameworks, and I have read many other topics on this with no definitive answers. I am also getting errors in Event Viewer, but I'm not exactly sure what they mean. Have a look if you can, and thanks!
.NET Runtime:
Application: HTC One X+ Toolkit.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
at HTC_One_X__Toolkit.Form1.InitializeComponent()
at HTC_One_X__Toolkit.Form1..ctor()
at HTC_One_X__Toolkit.Program.Main()
Application Error:
Faulting application name: HTC One X+ Toolkit.exe, version: 1.0.0.0, time stamp: 0x51bf3a29
Faulting module name: KERNELBASE.dll, version: 6.2.9200.16451, time stamp: 0x50988950
Exception code: 0xe0434352
Fault offset: 0x00014b32
Faulting process id: 0x1a8
Faulting application start time: 0x01ce6b7ca5512761
Faulting application path: C:\Users\Dylan\Downloads\Toolkit (2)\Toolkit\HTC One X+ Toolkit.exe
Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll
Report Id: e3254e0e-d76f-11e2-be89-50465d351325
Faulting package full name:
Faulting package-relative application ID:
Windows Error Reporting:
`Fault bucket -606412384, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 0
Problem signature:
P1: htc one x+ toolkit.exe
P2: 1.0.0.0
P3: 51bf3a29
P4: 5
P5: 1.0.0.0
P6: 51bf3a29
P7: 13
P8: 6
P9: System.IO.FileNotFoundException
P10:
Attached files:
C:\Users\Dylan\AppData\Local\Temp\WERF566.tmp.WERInternalMetadata.xml
These files may be available here:
C:\Users\Dylan\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_htc one x+ toolk_e8ec446f1f71f1db9137fab138c0ad59c2ef6a1_1abaf806
Analysis symbol:
Rechecking for solution: 0
Report Id: e3254e0e-d76f-11e2-be89-50465d351325
Report Status: 16
Hashed bucket: 93c40e517fd84a9afa8e9156e3471d7b `
it's seems by the look of the stack trace that the code generated by the .net framework is trying to open a file from absolute location rather then a relative location. have you looked over the InitializeComponent method in the class Form1?
if not, please have a look. if you can't find a problem there wrep the call for InitializeComponent in try catch in order to get more information.
i would also recommend to try and debug it on other computer and go step by step. you can attach to a process using the visual studio and pause your program until the user pressed a button (using a message box for example)