Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

How do you deploy your website in Azure so that it looks exactly like when you run it in your localhost? This is a very simple website that I created following the ASP.NET MVC4 tutorials. However, I added a new background image and it doesn't show. Is there anything else I need to do to make sure all of my files are being deployed?

Here is the code that "should" be on my site. This is the pone in my solution.

 <head profile="http://gmpg.org/xfn/11">
 <title>LOTUS Marketing Solutions</title>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 <meta http-equiv="imagetoolbar" content="no" />
 <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
 <meta name="viewport" content="width=device-width" />
 <link rel="stylesheet" href="Content/Site.css" type="text/css" />
 <script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
 <script type="text/javascript" src="Scripts/jquery.jcarousel.pack.js"></script>
 <script type="text/javascript" src="Scripts/jquery.jcarousel.setup.js"></script>
 @Styles.Render("~/Content/css")
 @Scripts.Render("~/bundles/modernizr")
 </head>

this is what I "actually" showing on the site view source code

  <head>
    <meta charset="utf-8" />
    <title>Home Page - LOTUS Marketing Solutions</title>
    <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    <link href="/Content/css?v=Zxt_kvPMVcEtaCRbYJCSpGOy25BUARXyn8EetggjSF01" rel="stylesheet"/>

    <script src="/bundles/modernizr?v=qVODBytEBVVePTNtSFXgRX0NCEjh9U_Oj8ePaSiRcGg1"></script>

  </head>

clearly, something is wrong. The contents are not remotely alike!

I was able to pull this out

CA0058 Error Running Code Analysis CA0058 : The referenced assembly 'DotNetOpenAuth.AspNet, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' could not be found. This assembly is required for analysis and was referenced by: C:\Users\lotusms\Desktop\LOTUS MARKETING\ASP.NET\WebsiteManager\WebsiteManager\bin\WebsiteManager.dll, C:\Users\lotusms\Desktop\LOTUS MARKETING\ASP.NET\WebsiteManager\packages\Microsoft.AspNet.WebPages.OAuth.2.0.20710.0\lib\net40\Microsoft.Web.WebPages.OAuth.dll. [Errors and Warnings] (Global)

CA0001 Error Running Code Analysis CA0001 : The following error was encountered while reading module 'Microsoft.Web.WebPages.OAuth': Assembly reference cannot be resolved: DotNetOpenAuth.AspNet, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246. [Errors and Warnings] (Global)

Could this have something to do with the problem?

share|improve this question

closed as off topic by Joris Timmermans, gnat, Jim G., billy.bob, GlenH7 May 15 '13 at 16:24

Questions on Programmers Stack Exchange are expected to relate to software development within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
possible duplicate of ASP.NET MVC4 uploading files –  Joris Timmermans May 15 '13 at 13:37
    
re: your edit - Come on dude, I just explained below why they are different! –  jmo21 May 15 '13 at 14:32
    
I know, I mean, look at other things like the meta charset tag or even the title. That is the way the original template <head> is designed. –  Rei Brazilva May 15 '13 at 14:37

1 Answer 1

up vote 0 down vote accepted

It should just work assuming your project solution is correct.

Make sure the file is actually included in the solution (Show all files, right click, include in project).

View the source, is the image tag you have used at least in the HTML?

How are you deploying it? What output is there in Visual Studio when you do a deploy?

Or are you packaging then uploading on the Azure Management website? Make sure you are uploading the correct package. You may have changed build configuration (built under Release for example) then when you try to upload the package, the Azure wbesite File,Open windows is still defaulted to your packaged debug folder.

share|improve this answer
    
Thank you for your response. As you can see I am a noob in ASP.NET. This is only the first tutorial. But to answer your question, this is what the code is linking to for styleshhet: <link href="/Content/css?v=Zxt_kvPMVcEtaCRbYJCSpGOy25BUARXyn8EetggjSF01" rel="stylesheet"/> It should be: <link href="/Content/css" rel="stylesheet"/> What did I do? –  Rei Brazilva May 15 '13 at 14:01
    
you do have a lot to learn :-) This is what the CSS link looks like once it's bundled. Copy and paste that odd looking URL into your browser (after the root domain) and you should be able to download your minified CSS –  jmo21 May 15 '13 at 14:06
    
I clicked on it and to open it and it showed the css file in a compressed form with no white spaces. No download options tho. What am I supposed to do then? Copy and paste it over the original css file in my VS and re-publish? –  Rei Brazilva May 15 '13 at 14:13
    
I was just pointing out that the link URL is not an error. Forget the image and CSS for now. Is any textual change on your site being published? –  jmo21 May 15 '13 at 14:26
    
Yes, the actual content is fine. Menus work, functionality was not altered, only the look. (background, logo, site colors, fonts, etc...) If I could post a screenshot I would –  Rei Brazilva May 15 '13 at 14:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.