Error when creating Azure ASP.NET MVC4. roletemplatedata.xml file cannot be found - asp.net-mvc-4

I installed VS 2012. I am trying to create a new Azure project with MVC4 Web Role. When I press ok, I get this error:
The project template references by the roletemplatedata.xml file cannot be found
I found something similar used to happen with MVC2 a few years back.
Is anyone else having this issue ?

Related

Publishing single page from ASP.NET Core project

I have an ASP.NET Core project using Razor pages,
I published the project from Visual studio 2019 to an Azure web app,
Its working fine.
But when I doing a change in a single page, I want to publish the only modified page to the project,
I'm doing this from : Project menu----> Publish page.cshtml, Visual studio is telling me the file has published successfully, but I do not see any change in the online page.
Is there is any missing step after publishing the page?
Kindly help me regarding this issue.
#ZanestMahmood,
Good morning. Could you please visit https://websiteName.scm.azurewebsites.net and verify that your changes exist. If the latest files exist, then could you please try to stop and start the web app. Please refer to the URL for additional information. https://github.com/projectkudu/kudu/wiki/Kudu-console

Building and Publishing on Azure Devops Failed

I wanted to publish my project in Azure Devops pipeline but I encountered several errors.
I tried to publish one of the .csproj file of my solution (.sln) from VisualStudio2017 it worked perfectly but when I try it with Azure Devops pipeline then it shows the below error. I've googled everywhere but not able to find the correct solution to solve my error.
My pipeline looks like this
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\Node.js Tools\Microsoft.NodejsTools.targets(201,5): Error : web.config not found in project, to create a project to deploy to Microsoft Azure you must create an Azure Node.js project. Process 'msbuild.exe' exited with code '1'
Tried adding the basic web.config file even that doesn't work.
Building and Publishing on Azure Devops Failed
To resolve this issue, you can try a quick way to solve it is by creating a Blank Azure Node.js Web Application and copy-paste the web.config into your project.
Check more details on section "Converting to an Azure project type" of page: https://github.com/Microsoft/nodejstools/wiki/Publish-to-Azure-Website-using-Web-Deploy:
The easiest way to get them is to create a new temporary Azure project
type, such as:
Blank Azure Node.js Web Application Basic Azure Node.js Express
Application Starter Azure Node.js Express Application Basic Azure
Node.js Express 4 Application And copy the missing web.config and bin
folder from the new project to your existing project.
Note that in web.config, the starter .js file (app.js, server.js or
something else) appears a few times. Make sure that it matches your
starter file, otherwise your application won't run properly when it's
deployed on Azure.
Hope this helps.
Try to delete delete and create a new solution or override the existing solution.
Then build it locally and then, check-in & build in azure CI pipeline.
It worked for me hope it works for you too.

ASP.NET MVC Website first start

Hello i am currently learning ASP.NET MV4 with Visual Studio 2012, i created a new project, not an empty project, an internet application but anytime i try to run it i keep getting an error.
There is no much else i can say about this, i am just now learning ASP.NET with Razor.
I would very much appreciate some help on this. The error itself seems to be originating from my machine.config file but i'm kinda afraid of opening that file.
This is the error:
http://prntscr.com/3a6ltl
Add MySQL.Web as your reference with NuGet Install-Package MySql.Web.
Or remove the red line from your machine.config if you are not going to use the MySQL Membership provider
It is located here: c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config

MVC 4 - Getting error while trying to add a new report

Followed the steps within this link, I succeeded to run a report using a DXperience ASP.Net MVC Web application project wizard, but when I tried to reproduce exactly the same thing using a basic ASP.Net MVC Web application project wizard, I got no debugger error while compiling, but the browser returned the the following error:
It doesn't look like the DevExpress extensions are visible in the namespace of your view. Add a using, or add it to your Web.Config under ~/Views
#using Devexpress; // or whatever the namespace is
Also, you need to make sure that Devexpress is added as a reference to the project, if it's not already added.

Missing assemblies with mono 3 MVC web app

I've installed the freshly released Mono 3 and MonoDevelop on my Mac, and I was keen to get a simple MVC web application working with razor view pages.
When I File-New-Solution up a MVC 3 Web Application (razor), the thing doesn't compile, giving the error:
The type or namespace GlobalFilterCollection could not be found
It's because 2 references are not working - System.Web.Helpers and System.Web.WebPages. When I look at these in the references list in MonoDevelop, they are red with "Assembly not available" - looking at the references in more detail it seems I'm referencing system.web.mvc 2.0.0.0, whereas everything else is 4.0.0.0. Can anyone advise?
I eventually got mine to run by referencing the System.Web.Mvc.dll found in /Library/Frameworks/Mono.framework/Libraries/mono/4.5/
I also had to bring over System.Web.Helpers.dll from a Windows box and update the Web.Config using one generated by Visual Studio.
There's probably a better way to do this (please be a better way), but figured I'd pass on what I found.
Add packeges "Microsoft ASP.NET MVC" and "Microsoft ASP.NET Web Pages" from NuGet.