mishrsud / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

YepNope is not defined #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
To Reproduce:
1. Use Google for jquery includes
2. Deploy site to production server(Works fine on local)
3. navigate to any page

using NuGet Package

Instead of loading the profiler, instead I see a javascript error:

yepnope is not defined
yepnope([ 

I believe it has something to do with the fact that i am using google hosted 
jquery, or the order I am including the files

Files includes:

<link 
href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.
css" rel="stylesheet" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" 
type="text/javascript"></script>
<script 
src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js" 
type="text/javascript"></script>
<link href="/Content/Site.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" 
href="/mini-profiler-includes.css?v=1.4.4195.37960">
<script type="text/javascript" src="/mini-profiler-yepnope.1.0.1.js"></script>
<script type="text/javascript">
yepnope([
{ test: window.jQuery, nope: '/mini-profiler-jquery.1.6.1.js' }, 

Original issue reported on code.google.com by james.f....@gmail.com on 28 Jun 2011 at 2:09

GoogleCodeExporter commented 8 years ago
Are you sure you're pulling down /mini-profiler-yepnope.1.0.1.js?  What does 
Chrome's developer tools or FireFox's firebug show as the http response for 
that url?

Original comment by jarrod.m.dixon on 28 Jun 2011 at 7:17

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
miniprofilerincludes.css and miniprofileryepnope.js both return 404 not found

Original comment by james.f....@gmail.com on 29 Jun 2011 at 12:21

GoogleCodeExporter commented 8 years ago
Is your application using the built-in routing framework?  If not, check out 
http://code.google.com/p/mvc-mini-profiler/wiki/FrequentlyAskedQuestions for 
how to set it up.

Original comment by jarrod.m.dixon on 29 Jun 2011 at 10:11

GoogleCodeExporter commented 8 years ago
I am using the default routing framework. Also, I am using ASP MVC3 on .NET 
4.0, if that matters

Original comment by james.f....@gmail.com on 30 Jun 2011 at 12:28

GoogleCodeExporter commented 8 years ago
I looked at the link you sent me. I am using IIS7, and the following markup is 
present in my web config:

<system.webServer> 
   <modules runAllManagedModulesForAllRequests="true"/> 
</system.webServer> 

no change in the issues I am seeing

Original comment by james.f....@gmail.com on 11 Jul 2011 at 6:20

GoogleCodeExporter commented 8 years ago
I am also seeing the same error, but I am not including jQuery from google.

All my refs are relative works fine on local machine but I get this error when 
deployed to server:
yepnope is not defined
 yepnope([ 

with this list of includes:

<link href="/Content/main.css" rel="stylesheet" type="text/css" />
<script src="/Scripts/jquery-1.6.1.js" type="text/javascript"></script>
<script src="/Scripts/jquery-ui-1.8.12.custom.min.js" 
type="text/javascript"></script>
<link rel="stylesheet" type="text/css" 
href="/mini-profiler-includes.css?v=1.4.4195.37960">
<script type="text/javascript" src="/mini-profiler-yepnope.1.0.1.js"></script>
<script type="text/javascript">
    yepnope([
        { test: window.jQuery, nope: '/mini-profiler-jquery.1.6.1.js' }

Original comment by priester...@gmail.com on 11 Jul 2011 at 6:45

GoogleCodeExporter commented 8 years ago
I just downloaded the latest and I am getting this error as well. I can't get 
the profiler widget to load.

Original comment by cory.c.t...@gmail.com on 12 Jul 2011 at 1:09

GoogleCodeExporter commented 8 years ago
could it be related to issue 50 ?

Original comment by vdesm...@gmail.com on 12 Jul 2011 at 3:54

GoogleCodeExporter commented 8 years ago
Currently, the profiler's routes are set up through System.Web.Routing and the 
default RouteTable.

Since this is so problematic (could be I'm doing it wrong), we're going to move 
to the more traditional web.config approach to registering <httpHandlers>.

This will be worked on tonight or tomorrow.

Original comment by jarrod.m.dixon on 12 Jul 2011 at 7:20

GoogleCodeExporter commented 8 years ago
Thanks! Let me know if you need any additional debug information and I'll do my 
best to get it to you.

Original comment by cory.c.t...@gmail.com on 12 Jul 2011 at 8:53

GoogleCodeExporter commented 8 years ago
Is there any additional information on this?

Original comment by chris.he...@gmail.com on 7 Aug 2011 at 9:57

GoogleCodeExporter commented 8 years ago
Any update on this?  I just installed the latest via NuGet, Version 1.9.0.0.  
Everything works as expected on my local development machine.  But when I 
deploy to the server, I get 404 Not Found on the following...
http://localhost:9004/mini-profiler-includes.css?v=1.9.0.0
http://localhost:9004/mini-profiler-includes.js?v=1.9.0.0
http://localhost:9004/mini-profiler-jquery.tmpl.beta1.js

Original comment by samm...@gmail.com on 15 Sep 2011 at 5:02

GoogleCodeExporter commented 8 years ago
yepnope is dead ... DEAD

Original comment by sam.saff...@gmail.com on 14 Feb 2012 at 4:03