Base solution for your next web application

Activities of "joshyates"

Answer

The 500 error is caused because of path location? SignalR is caught in a GET loop trying to connect, but is not targeting the correct path within Azure:

http://testapp:80/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%7B%22name%22%3A%22abpcommonhub%22%7D%2C%7B%22name%22%3A%22chathub%22%7D%5D&_=1476799379443
Answer

I looked into the logs. The 500 error in my azure environment: D:\home\site\wwwroot\signalr\negotiate

http://testsite:80/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%7B%22name%22%3A%22abpcommonhub%22%7D%2C%7B%22name%22%3A%22chathub%22%7D%5D&_=1476798018491

Does it have anything to do with ABP platform? I could not find anything in the ABP SignalR documentation about deployment.

I have monitored my azure web app: <a class="postlink" href="https://azure.microsoft.com/en-us/documentation/articles/web-sites-enable-diagnostic-log/">https://azure.microsoft.com/en-us/docum ... ostic-log/</a>

Copy the code below, paste in notepad and save as error.html to view:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title>IIS Detailed Error - 500.0 - Internal Server Error</title> 
<style type="text/css"> 
 
</style> 
 
</head> 
<body> 
<div id="content"> 
<div class="content-container"> 
<h3>HTTP Error 500.0 - Internal Server Error</h3> 
<h4>The page cannot be displayed because an internal server error has occurred.</h4> 
</div> 
<div class="content-container"> 
<fieldset><h4>Most likely causes:</h4> 
<ul> 	<li>IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.</li> 	<li>IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.</li> 	<li>IIS was not able to process configuration for the Web site or application.</li> 	<li>The authenticated user does not have permission to use this DLL.</li> 	<li>The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.</li> </ul> 
</fieldset> 
</div> 
<div class="content-container"> 
<fieldset><h4>Things you can try:</h4> 
<ul> 	<li>Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.</li> 	<li>Check the event logs to see if any additional information was logged.</li> 	<li>Verify the permissions for the DLL.</li> 	<li>Install the .NET Extensibility feature if the request is mapped to a managed handler.</li> 	<li>Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click <a href="http://go.microsoft.com/fwlink/?LinkID=66439">here</a>. </li> </ul> 
</fieldset> 
</div> 
 
<div class="content-container"> 
<fieldset><h4>Detailed Error Information:</h4> 
<div id="details-left"> 
<table border="0" cellpadding="0" cellspacing="0"> 
<tr class="alt"><th>Module</th><td>&nbsp;&nbsp;&nbsp;AspNetCoreModule</td></tr> 
<tr><th>Notification</th><td>&nbsp;&nbsp;&nbsp;ExecuteRequestHandler</td></tr> 
<tr class="alt"><th>Handler</th><td>&nbsp;&nbsp;&nbsp;aspNetCore</td></tr> 
<tr><th>Error Code</th><td>&nbsp;&nbsp;&nbsp;0x00000000</td></tr> 
 
</table> 
</div> 
<div id="details-right"> 
<table border="0" cellpadding="0" cellspacing="0"> 
<tr class="alt"><th>Requested URL</th><td>&nbsp;&nbsp;&nbsp;http://testapp:80/signalr/negotiate?clientProtocol=1.5&amp;connectionData=%5B%7B%22name%22%3A%22abpcommonhub%22%7D%2C%7B%22name%22%3A%22chathub%22%7D%5D&amp;_=1476798018491</td></tr> 
<tr><th>Physical Path</th><td>&nbsp;&nbsp;&nbsp;D:\home\site\wwwroot\signalr\negotiate</td></tr> 
<tr class="alt"><th>Logon Method</th><td>&nbsp;&nbsp;&nbsp;Anonymous</td></tr> 
<tr><th>Logon User</th><td>&nbsp;&nbsp;&nbsp;Anonymous</td></tr> 
 
</table> 
<div class="clear"></div> 
</div> 
</fieldset> 
</div> 
 
<div class="content-container"> 
<fieldset><h4>More Information:</h4> 
This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error. 
<p><a href="http://go.microsoft.com/fwlink/?LinkID=62293&amp;IIS70Error=500,0,0x00000000,9200">View more information &raquo;</a></p> 
<p>Microsoft Knowledge Base Articles:</p> 
  
 
</fieldset> 
</div> 
</div> 
</body> 
</html>
Question

SignalR works fine localhost, but when I deploy to azure and not change any code, signalr gives a 500 error.

Failed to load http://test.azurewebsites.net/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%7B%22name%22%3A%22abpcommonhub%22%7D%2C%7B%22name%22%3A%22chathub%22%7D%5D&_=1476676211353
resource: the server responded with a status of 500 (Internal Server Error)
GET http://test.azurewebsites.net/signalr/negotiate?clientProtocol=1.5&connec…22abpcommonhub%22%7D%2C%7B%22name%22%3A%22chathub%22%7D%5D&_=1476676211360 500 (Internal Server Error)
layout-libs.min.js?v=iDqjC6KTvzCpsxu5nUJHDUqAYIf9Q5BAbRhBBiD1vvU:15

Any advice would be appreciated. Thanks.

Answer

Disregard. I forgot the ../assets/global/plugins/horizontal-timeline/horizontal-timeline.js

Any advice on how to convert this to a .min.js?

Question

I'm creating a prototype and want to use some of the Metronic placeholders on my dashboard.

<a class="postlink" href="http://keenthemes.com/preview/metronic/theme/admin_4/dashboard_3.html">http://keenthemes.com/preview/metronic/ ... ard_3.html</a>

After loading this page, I view source and copy the html tags I need. Most work, but the Timeline does not load correctly. It is the 4 row down, Activities and Events. When I inspect using Google Chrome, I don't get any error messages.

Any advice would be appreciated. Thanks.

Well......I updated my Microsoft Azure SDK to the latest version 2.9.5. Restarted my VS2015 and now my solution compiles fine.

<ins>***** After I download and opened my VS solution for the first time, I can not get a clean build. Any advice would be appreciated.**</ins>

Showing 11 to 17 of 17 entries