My MVC 4 App fails to load on Azure. How do I find out what is wrong?
We have an app that we recently upgraded from MVC 3 to MVC 4 and from
Visual Studio 2010 to 2012. We're trying to deploy it to Azure, but it
doesn't seem to want to run there. It works locally, in IIS Express and
the Azure emulator. We can build the image just fine through Visual Studio
and via our msbuild project on the command line. We deploy just fine as
well.
Then when we browse to our deployment's URL, we get a 500 error, with the
message "There is a problem with the resource you are looking for, and it
cannot be displayed." It's not a YSOD, which leads me to believe the app
can't even start, but the message above is the only feedback I get.
We've tried a bunch of things to get it to work:
Upgraded to the latest Azure SDK
Changed the target framework on the app to .NET 4.5
Deployed on Windows Server 2012 instance
Nothing seems to help. If you know exactly what is wrong, please enlighten
me. But what would help immensely is to find the details on that 500 error
message I get when I browse. How can I get that?
Wednesday, 4 September 2013
Tuesday, 3 September 2013
Decreasing height of bootstrap 3.0 navbar
Decreasing height of bootstrap 3.0 navbar
I am trying to decrease bootstrap 3.0 navbar height which is used with
fixed top behavior. Here i am using code.
HTML
<div class="navbar navbar-fixed-top" role="banner">
<div class="navbar-inner-sm">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse"
data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<nav class="collapse navbar-collapse" role="navigation">
<ul class="nav navbar-nav pull-right">
<li class="active">
<a href="../getting-started">Getting started</a>
</li>
<li>
<a href="../css">Ext01</a>
</li>
<li>
<a href="../components">Language</a>
</li>
<li>
<a href="../javascript">My Account</a>
</li>
<li>
<a href="../customize">Sign Out</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
CSS
.tnav .navbar { background:#F06; height:30px; }
.navbar-inner-sm{background-color: #282828;padding: 1px
20px;background-repeat: repeat-x;-webkit-box-shadow: 0 1px 3px rgba(0, 0,
0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1);-moz-box-shadow: 0 1px 3px
rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1);box-shadow: 0 1px 3px
rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1);background-image:
linear-gradient(top, #333333, #222222);}
.navbar-inner-sm .nav {position: relative;left: 0;display: block;float:
left;margin: 0 10px 0 0;}
.navbar-inner-sm .nav.pull-right {float: right;}
.navbar-inner-sm .nav > li {display: block;float: left;}
.navbar-inner-sm .nav > li > a {float: none;padding: 4px 5px;line-height:
19px;color: #999999;text-decoration: none;text-shadow: 0 -1px 0 rgba(0, 0,
0, 0.25);}
.navbar-inner-sm .nav > li > a:hover {background-color: transparent;color:
#ffffff;text-decoration: none;}
.navbar-inner-sm .nav .active > a,.navbar .nav .active > a:hover {color:
#ffffff;text-decoration: none;background-color: #003753;}
.navbar-inner-sm .divider-vertical {height: 27px;width: 1px;margin: 0
9px;overflow: hidden;background-color: #282828;border-left: 1px solid
#3f3f3f; border-right: 1px solid #161616;}
.navbar-inner-sm .nav.pull-right {margin-left: 10px;margin-right: 0;}
Result
From screen it shows, nav bar decreased in output but height doesn't
decreased. original height is shown in pink color.
Above css script almost work well in bootstrap 2.*
Is there any way to decrease height properly.
I am trying to decrease bootstrap 3.0 navbar height which is used with
fixed top behavior. Here i am using code.
HTML
<div class="navbar navbar-fixed-top" role="banner">
<div class="navbar-inner-sm">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse"
data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<nav class="collapse navbar-collapse" role="navigation">
<ul class="nav navbar-nav pull-right">
<li class="active">
<a href="../getting-started">Getting started</a>
</li>
<li>
<a href="../css">Ext01</a>
</li>
<li>
<a href="../components">Language</a>
</li>
<li>
<a href="../javascript">My Account</a>
</li>
<li>
<a href="../customize">Sign Out</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
CSS
.tnav .navbar { background:#F06; height:30px; }
.navbar-inner-sm{background-color: #282828;padding: 1px
20px;background-repeat: repeat-x;-webkit-box-shadow: 0 1px 3px rgba(0, 0,
0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1);-moz-box-shadow: 0 1px 3px
rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1);box-shadow: 0 1px 3px
rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1);background-image:
linear-gradient(top, #333333, #222222);}
.navbar-inner-sm .nav {position: relative;left: 0;display: block;float:
left;margin: 0 10px 0 0;}
.navbar-inner-sm .nav.pull-right {float: right;}
.navbar-inner-sm .nav > li {display: block;float: left;}
.navbar-inner-sm .nav > li > a {float: none;padding: 4px 5px;line-height:
19px;color: #999999;text-decoration: none;text-shadow: 0 -1px 0 rgba(0, 0,
0, 0.25);}
.navbar-inner-sm .nav > li > a:hover {background-color: transparent;color:
#ffffff;text-decoration: none;}
.navbar-inner-sm .nav .active > a,.navbar .nav .active > a:hover {color:
#ffffff;text-decoration: none;background-color: #003753;}
.navbar-inner-sm .divider-vertical {height: 27px;width: 1px;margin: 0
9px;overflow: hidden;background-color: #282828;border-left: 1px solid
#3f3f3f; border-right: 1px solid #161616;}
.navbar-inner-sm .nav.pull-right {margin-left: 10px;margin-right: 0;}
Result
From screen it shows, nav bar decreased in output but height doesn't
decreased. original height is shown in pink color.
Above css script almost work well in bootstrap 2.*
Is there any way to decrease height properly.
10 million records from SQL to excel/access/csv?
10 million records from SQL to excel/access/csv?
I have 10 million records in my SQL table.Is it possible to export it to
excel/csv format ? What is the best way to export the data out from SQL
Server?
I have 10 million records in my SQL table.Is it possible to export it to
excel/csv format ? What is the best way to export the data out from SQL
Server?
Positioning of HTML elements with css
Positioning of HTML elements with css
HTML Code
<header>
<h1>Event Heading</h1>
<div class="meta">09 JUL 2014</div>
<div class="textblock">Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam
malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper
suscipit, posuere a, pede.</div>
</header>
Issue
I have this HTML structure which I can not edit/rearrange. I would like to
position the h1, div.meta and div.textblock is as in the picture below.
I can't work it out with floats the way I want to because of the sequence
of the HTML.
Illustration
HTML Code
<header>
<h1>Event Heading</h1>
<div class="meta">09 JUL 2014</div>
<div class="textblock">Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam
malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper
suscipit, posuere a, pede.</div>
</header>
Issue
I have this HTML structure which I can not edit/rearrange. I would like to
position the h1, div.meta and div.textblock is as in the picture below.
I can't work it out with floats the way I want to because of the sequence
of the HTML.
Illustration
cJSON: can't understand something of it's source code
cJSON: can't understand something of it's source code
when i read the code of cJSON, and have problem understanding these code:
static void *(*cJSON_malloc)(size_t sz) = malloc; static void
(*cJSON_free)(void *ptr) = free;
when i read the code of cJSON, and have problem understanding these code:
static void *(*cJSON_malloc)(size_t sz) = malloc; static void
(*cJSON_free)(void *ptr) = free;
Monday, 2 September 2013
circular progress view with custom image
circular progress view with custom image
I need to add circular progress view on button click. I have an image to
make the circular path. This is the image.
I looked upon this example to implement the custom circular progress view
with image. Using circular progress bar with masked image?
But I am unable to implement the same in my app. If anyone has some idea
how to do that. Please help me.
Thanks in advance.
I need to add circular progress view on button click. I have an image to
make the circular path. This is the image.
I looked upon this example to implement the custom circular progress view
with image. Using circular progress bar with masked image?
But I am unable to implement the same in my app. If anyone has some idea
how to do that. Please help me.
Thanks in advance.
How to find the path of the DLL which is under execution in linux?
How to find the path of the DLL which is under execution in linux?
How to find the path of the DLL which is under execution in linux?
In windows,it can be done by GetModuleFileName() function.
Tried with /proc/self/exe,but it is returning the path of the calling
process and not the DLL which is called by calling process.
For eg: My process resides in /opt/myproc.exe. This myproc.exe calls DLL
which resides in /root/Desktop/myprocdl.dll . I need the path of my
DLL(which in this case if /root/Desktop/myprocdl.dll).
How to find the path of the DLL which is under execution in linux?
In windows,it can be done by GetModuleFileName() function.
Tried with /proc/self/exe,but it is returning the path of the calling
process and not the DLL which is called by calling process.
For eg: My process resides in /opt/myproc.exe. This myproc.exe calls DLL
which resides in /root/Desktop/myprocdl.dll . I need the path of my
DLL(which in this case if /root/Desktop/myprocdl.dll).
Subscribe to:
Posts (Atom)