FineUI Mvc empty project on Windows Azure - asp.net-mvc

Anyone has experience with FineUI UI component? I downloaded the Mvc trial package and deployed their included EmptyProject to windows Azure as an App Service, but got the following error:
The page cannot be displayed because an internal server error has occurred.
The App service URL looks like
http://mytestapp.azurewebsites.net/
There is no any details to explain this error. I even tried to set customErrors to off, but Azure didn't return more info regarding the error.

The error from Azure are resulting from below two configurations
Managed Pipeline Mode
FineUIMvc.EmptyProject is using Classic mode, we need change to Integrated as Azure App Settings is using Integrated mode by default.
targetFramework version
FineUIMvc.EmptyProject is using 4.5 by default, so you need change its version to 4.7 in Web.config to match Azure App settings. Azure provides 3.5 and 4.7 but not 4.5.
We provide the following steps to fix this:
On Azure, (SETTINGS -> Application settings -> General settings), update .NET Framework version to 4.7, and set Managed Pipeline Mode to Integrated if not. (see Azure App Settings.png file)
In project Web.config, comment out system.web httpModules and httpHandlers, instead add for modules and handlers (see http://mvc.fineui.us/#/Config/ModifyWebConfig)
Update targetFramework to 4.7
Change project Managed Pipeline Mode to Integrated
Republish the project updates to Azure and try again
We also created a testing service https://fineuitest.azurewebsites.net/ for your reference.
Of course, you can also keep Classic mode, but change targetFramework to 4.7 in Web.confg and change App Settings to Classic mode.
Hope above explanation helps.

Related

Unable to run the mvc5 project on IIS server

I wanted to publish the my mvc5 application on IIS server and gone through with some references and finally I was able publish the project (through file system) from visual studio 2017.. After all my efforts I'm able to see the below screen when I browse the URL.
But it is not I expected, my actual running application in localhost is shown below.
I want to run the my actual project in IIS URL. What I can do to achieve this.
EDIT:
For more info..
Initially I got the issue which is shown in below image. For this fix, I've enabled the Directory Browsing in IIS server for my application. After enabling I face the above mentioned issue (shown in first image).
Any kind of suggestions are more helpful.
#Lex Li as you mentioned, the issue is caused the wrong CLR related settings for the application. And its my bad, I had used DefaultAppPool. Fixed the issue by giving the application pool as .Net v4.5. And also turned on the .Net extensibility 4.7 feature (in control panel -> programs and features -> Turn windows features on or off) as shown in below.
Now the application is running as expected in IIS server.
Thank you for all your comments which helped me to dig more into this. :)

WebApp and supported WebJob SDK

My contnuous webjob stops after some time. I understand that potential reason for this could be because the WebJob SDK used to create webjob may not be supported by webapp. See details here
I am using Microsoft.Azure.WebJobs (Version: 1.1.0-beta1(Prerelease) nuget package to create my webjob.
Is this SDK supported in WebApp?My WebApp is deployed in a ResourceGroup.
Yes, the WebJobs SDK is fully supported in the Web Apps - that's the primary hosting scenario for the SDK.
As David mentioned in the other post, there are times when it is expected that your job will restart (site setting changes, file changes, etc.) If the restarts you're seeing aren't expected due to any of those reasons, then you'll want to check error logs to see what errors in your application might be causing this.

Azure Continuous Integration

I have an MVC 4 application on .NET 4.5.I have my application deployed on Azure cloud.
Up until yesterday I would make changed to my application, then check in to TFS, then my application would automatically get deployed on azure. And everything worked just fine.
But today, after I made some changes, the deployment failed with the following error message:
"The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v4.0'. This application requires 'v4.5'."
In the azure configuration management page I have .NET FRAMEWORK VERSION set to 4.5. Furthermore there is no option for 4.0, only 3.5 or 4.5. So this seems strange.
Any ideas what could cause the problem.
p.s. I only made small changes in my Views, I didn't add any libraries or anything like that.
It is not an error in your code/configuration. There was an error in TFS service and many people had the same issue. But now it should be fixed. You can find more information on this page:
bug tracker

my webapi mvc4 not run in server with net.4.0

hello I made one applicattion(WEB API MVC4 which connect with SQL server) using framework 4.5, in my IIS express run fine but I try publish in other server which uses framework 4.0, my applicattion not run ?
I change in properties of my application works with framework 4.0 and in my IIS express run fine but other server not run.
I can't upload version framework in the other server.
thanks for the asnwers and sorry for my english I'm learning
Maybe you have changed target framework attribute in your web application that isn't sufficient to deploy. In your codes you may use libraries that require .net 4.5 while you only have changed the setting. About running this in your iis express must say that your system by default supports .net 4.5 while your app says i need only .net 4.0. So .net 4.5 related parts will be compiled and executed on local server and no ambiguous thing is here.
Running .NET4.5 based app on .NET4 machine is not supported. Simply because .NET4.5 is a super set of .NET4. Everything that's built for .NET4 works on .NET4.5 but not the other way around. If you are using Visual Studio 2012, you can change TargetFramework (in project properties) to .NET Framework 4, this will ensure that your app is built for .NET4.
--Varun
(.NET Framework Team)

.Net MVC Web Deployment

I have Visutal Studio 2012, MVC 4 & Razor. I am having trouble getting a website up and running with this technology.
The Web Server is a Windows Server 2008 server. I tried deploying using the Web Deploy method but am consistently getting something like 'set ACL" error.
I tried deploying using the File System. All files got deployed, but when I try and run the website, it fails because of missing ASP.NET MVC infrastruccture files.
Two things:
•If I use Web-Deploy, how do I solve the ACL error, because I assume with this method, everything needed will get deployed.
Note that the Web Deploy 3.0 service is on the server and started.
•If I use File System, where can I find the downloads needed to deploy on the server where MVC WILL work.
◦Note that I downloaded the 4.5 Framework and was successfully installed.
You need to be a bit more precise with what you need help with.
What's the exact error.
Often times you need to give the IIS users group access to at least read from the directory where you've deployed. Did you do this already?
Do you have .NET 4.5 and MVC4 installed on the server? If not, are you expecting those DLLs to be "packaged" with your deployment? They generally are not since they are "standard" assemblies. But if you want them to be included in your deployment you can do that by selecting the references in VS and saying "copy." This is not recommended because when you install patches to .NET and MVC on the server, those updates will not carry through to your app, since it'll use the local (old) copies of your assemblies.
This may be more of an IIS issue, but not sure based on the details in your question.
Check that the application pool that the site is running under is using .net 4.0.
Just a thought I would check.

Resources