After uploading my website off visual studio using Azure deployment, my site only shows what looks like my Shared Layout and not my views.
http://ideagendocument.azurewebsites.net/Account/Login
In my local deployment, it shows the login screen as it should. Why would it not be picking up any of my views or css?
Most likely, the reason is that these files are not included in the project.
Can you unload a project and then click "Edit project" and see if references are there?
Related
I upload images to the server via ajax which are saved in the directory wwwroot.
After this operation page auto refreshing like "browser link".
How can I disable tracking for change in some directories in wwwroot ?
Thanks!
It seems you are talking about the Browser Link and not Browser Sync which is an extension in Visual Studio for ASP.NET projects.
Unfortunately, in either of them, there is no way you can disable it for specific directories. You can only disable them completely. Click on the link given above to learn more on that.
I published my azure website (asp.net with c# controller) as a WebApp but when I call the website there are no picture.
If I deploy the website on LocalHost I can see the picture.
<img class="img-responsive" style="height:90%;width:90%" src="../Content/images/test.png" />
I also tried to change the path to:
src="~/Content/images/test.png" /
src="/Content/images/test.png" /
But after uploading the webapp I cannot see any picture.
In other question I read that I have to use Azure Blob Storage. But I just have a few (ca. 5 picture) on my website. Maybe there is a simpler way?
Or is it possible to upload the file and create the image folder in the azure portal?
i think its because the images folder is not created after publishing. just drag and drop a file in to this folder in your visual studio. then publish the images will appear. having a file in the folder tells visual studio that this folder needs to be published
Right click on image folder of the project and Include in project did the trick for me, earlier it was excluded from the project.
For some reason, the Xap file of my Silverlight project, isn't loaded in the Asp.Net MVC website.
Checked the page -> --> is ok.
Checked build -> is ok
Checked Xap file -> is there
It could be the Xap is not adjusted after modifying the Silverlight application, but i thought it was autogenerated.
Can anyone help me to fix this problem?
Edit: followup:
The Xap is in the ClientBin and referenced in the Silverlight Applications "property" (checked again to be sure).
It just won't load when i start the page, it has a black/white background (and yes, when i right-click, i can see the "Silverlight"-menu), but the element itself is not loaded :(.
I have solved it myself.
Their are some reasons.
It's not yet referenced in your project. Go the the settings for the website and select the Silverlight project.
The IIS is not yet configured to handle the different Mime-Types, you can find more information:
For IIS Express
For IIS
It should be these mime-types:
application/x-silverlight-app
application/xaml+xml
application/x-ms-xbap
4.Or the Link to the XAP File is wrong.
You can check it out with Fiddler2 (which also solved my problem).
Hoped that helped someone :)
I have to guess that you are adding your Silverlight project to an MVC website that was created separately (as MVC is not the default website type for a Silverlight project).
If that is the case, you need to go to your project settings for the website and select the Silverlight Applications tab on the left, the press Add and select your Silverlight project. By default that will also add a test page for that Silverlight app to your website (might come in handy for testing).
This creates the relationship that will copy the XAP to the ClientBin folder of the Website.
This is hard to describe but I'll try this...
Let's say I am working on a multiple page web solution and make a small change to one web page. The small change needs to get published but I want to be able to publish it without having to republish the entire site. How do i do that? How do i publish a single page of a multi-page solution in Visual Studio 2010?
Simply FTP the ASPX page to the server, along with any other static files such as images, CSS or JavaScript that the page uses. If there is code involved, you will have to rebuild the solution and deploy the DLL file also.
My default browser is Chrome.
When I run my web applications within VS 2008 IDE, it uses chrome.
I want to use IE for this. Is there an option in VS 2008 to make IE the browser to load the web applications?
I just want this when using VS 2008 - I don't want to change my default browser each time otherwise.
EDIT: when creating a silverlight application.
Right click on .aspx file in your solution tree, and click Browse With...
then specify your default browser.
See this question: How do you change Visual Studio's default web browser?
But basically, create an html file inside your silverlight project, right click on it, select browse with... set the default browser. Now you can erase the html if you want to. The next time you debug your project, it will open with the browser you specified for the html file.
You could create a post-build event that runs FireFox.exe, pointing to the url of your website. You can edit post-build events by right-clicking on your Web Application, going to Compile, and clicking the Build Events button. Your post-build command could be something like "C:\Program Files\Mozilla Firefox\firefox.exe" http://localhost/mysite for example.
It sounds like you only have a Silverlight project in your solution. You need to add a web site like ASP.NET to your solution to use Browse With and post-build commands.