I am new to monoDevelop 3.0.4.7 . In that there is no MVC4 template so,any one tell me how to get the template for developing mobile web application ?
While Mono 3.0 now includes the MVC4 stack, the release notes for MonoDevelop 3.0.4 only mention support for MVC2 & MVC3.
If you're using MonoDevelop then I'd recommend sticking with MVC3 for the time being.
I've not come across an MVC3 template for MonoDevelop yet so for my last project I created an MVC3 bare bones application in Visual Studio and then made the necessary adjustments to get it to run with MonoDevelop on my Mac.
There are a couple of pages here and here that have useful information for getting an MVC3 application running with MonoDevelop.
Related
I'm having trouble with Visual Studio 2019 not finding the .NET Core SDKs.
I have installed a preview version of .NET Core 3.0 (v.9) and removed all the previous version of .NET Core SDKs.
When I am trying to create an ASP.NET Core Web Application from the template form in VS2019, I am getting the following error below:
No .NET Core SDKs were detected, ensure they are included in the environment variable 'PATH'. https://i.imgur.com/ye1rliG.png
I have checked on my environment variables and the paths to the dotnet core folders are available. https://i.imgur.com/Jz8T9eQ.png
Also, I have the Use previews of the .NET Core SDKs in the Tools->Options->Environment->Preview Features, selected.
Has anyone else got any ideas where I can take it from as I have followed Microsoft help guide on this issue but to no avail?
I have spent quite a time trying to load the Initial Project generated by the AspnetBoilerplate startup template all to no avail. This is a .net core template (JQuery with MVC) with Target Cross platform.
See error sample below
I installed the dotnet core 2 for VS 2017. The project won't just build. I can not see anything related to NetStandard, yet that seems to be what the project supports
Any help i can get will be appreciated
I'm trying desperatly to setup a MVC 4 (in the worst caes 3) with Razor on Monodevelop. I'm sitting on a Mac OS X machine, with Mono 2.11.4.
It seems to not have all the assemblies required. System.Web.Helper for instance, doesn't seem to be found. And MonoDevelop can only find System.Web.Mvc version 3 (With NET framework 4.5 selected) or version 2 (with NET Framework 4.0 selected). Does anyone know how to get MVC 4 with Razor to work?
(Razor pages worked with Mono, in theory, with version 2.10.x series, but you had to bundle Microsoft's assemblies with it into your Linux box.)
Since Mono 2.11.1, these assemblies are now bundled by default in Mono, because Microsoft open sourced Razor recently (on March 2012). So: you're using the correct version of Mono.
The catch is that, as explained in this blogpost, MVC4 depends on the async ASP.NET API stack, which is not ready yet in Mono. So yes you can now use Razor with Mono without the need to deploy MS assemblies from Windows, but, you need to stick with MVC3, not 4, for now.
(Copy-pasted my answer from this other stackoverflow question and tweaked it a bit.)
I modified the VS2010 MVC4 Project Template to run out-of-the-zipfile in Xamarin Studio/MonoDevelop on Mac & Linux: http://www.cafe-encounter.net/p1319/run-asp-net-mvc4-on-mono-monodevelop-on-mac-the-c-template-project.
Update: I've done a MVC4 on .Net 4.5 template with notes at http://www.cafe-encounter.net/p1510/asp-net-mvc4-net-framework-version-4-5-c-razor-template-for-mono-on-mac-and-linux including link to github.
According to the Compatibility page on the Mono site MVC4 is supported with the exception of the async features. Unless there is a part of the MVC4 framework that is uses async by default, then those new features will only be a problem if you have added that pattern to your code.
I've just downloaded and installed Visual Studio 11 Beta. I looks great and I was thinking about upgrading some of my website to ASP.NET MVC 4 and .NET 4.5. The question I have is if I can run such a website on a hosting plan that has only .NET 4 installed? Maybe by marking the necessary dependencies as "copy local"? I've search around, but as this beta is fresh from the oven, I couldn't find any helpful data.
I think you should have problems with your hosting. Anyway as many will say using beta for production is not a good idea (although I had done it several times). My suggestion is to switch to some HyperV hosting and install all necessary frameworks there.
i had similar problem,i have visual studio 2012 and my host running for .net 4.0
but my site was .net 4.5
when uploaded and saw the site i got error.
i backed up program.
then went to
C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework
there were 3 folder v3.5 v4.0 v4.5
then i created 2 back up folder one for 4.0 and other for 4.5
from each v4.0 and v4.5 copy these:
1-System.ComponentModel.DataAnnotations.dll
2-System.ComponentModel.DataAnnotations.xml
3-System.Data.Linq.dll
4-System.Data.Linq.xml
now that i had back ups did these:
1-change target framework to 4.0 from project options
2-copied above assemblies from folder v4.5 to v4.0
then build application
everything went well.
good luck.
I'd like to use ELMAH in an ASP.NET MVC 2 application running on .NET 4, but according to the project hosting site on Google code, it only supports .NET 1.1 and 2.0.
Is there a .NET 4 version of ELMAH already, or do I have to download the source and update whatever breaks myself?
Elmah works perfectly fine for ASP.NET 4.0.
However, there are a few tricks in getting it setup to work perfectly on an MVC website.
I have recently starting blogging about this topic so be sure to check out my blog series on logging in MVC. The first article covers getting Elmah set up and running for MVC using all the tricks that you can find about it on StackOverflow.
There is a link to downloadable code at the end of the article. Hope that helps.
http://dotnetdarren.wordpress.com/
I am using .NET 4.0 and I dont about a new version.... but I am using the elmah 1.1 and it works....:)..You may have to change source though to add custom fields or log additional values..which is bit of a pain...but get started here
Well it's open source nothing should prevent you from recompiling it using the .NET 4.0 framework.
This link has some information about running pre .NET4 web apps and .NET4 web apps in a server.
EDIT:
Actually you won't need to recompile ELMAH. According to this and this article the In-Process side by side execution should do the trick.
I had the same question so I downloaded the 1.1 src, opened it up in visual studio 2010, changed the project to target 4.0 and rebuilt it. I then dropped the dll in my ASP.NET MVC 2.0 app and it has worked fine.