"No webpage was found for the web address: http://localhost:9001/" after upgrading from .net 2.2 to .net 7 - model-view-controller

Installed .NET 7.0 SDK (v7.0.200) - Windows x64 Installer
Upgraded all packages and references to .net 7.0.
Updated codebase to only have the Program.cs
Using the routing as :
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
Also tried the Endpoint routing.
However, keep getting the 404 - No webpage was found for the web address: http://localhost:9001/
What can I do to Debug and fix this ?
Any guidance is appreciated. Thanks.

Related

Strong name signature not valid for this assembly Microsoft.LightSwitch.Model.Xaml.dll

I deployed a desktop lightswitch application and my users are getting this error when they install the application:
Strong name signature not valid for this assembly Microsoft.LightSwitch.Model.Xaml.dll
This error is causing the install to fail. Does anyone know the cause of this error or where to start looking?
What happened in my case is that VS 2013 has upgraded my LightSwitch app to .net 4.5 framework. The app works ok on machines with .net 4.5 but on machines with 4.0 I get the exact same error during installation process. You can either downgrade the app to .net 4.0 or ask users to install .net 4.5.

Microsoft ASP.NET Web API 2 on .net 4.0

Is it possible to use ASP.NET Web API 2 with .net 4.0? I tried to upgrade from an older version but I get:
Could not install package 'Microsoft.AspNet.WebApi.Client 5.0.0'. You
are trying to install this package into a project that targets
'.NETFramework,Version=v4.0'
To answer my own question:
No, it is NOT possible to use Web API 2 with .net 4.0:
This is taken from a slide by Damian Edwards. You can find additinal info here.
FWIW, I had a .NET 4.0 requirement on the client (die WinXP!), but I could do .NET 4.5 on the server. So, I have WebApi2 running server side, but the WebApi1 client package running on the client, handling serialization, etc.
Using the Package Manager Console in Visual Studio and choosing my client project in the default project dropdown, I was able to:
Install-Package Microsoft.AspNet.WebApi.Client -Version 4.0.30506.0
Everything thereafter worked well.

configuring website using windows server2003,IIS6.0 and MVC

I have been going through http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx but so far I have not been able to configure my website. These are the steps I have done:
Downloaded and installed .net 4.0
I have built and published my website to inetpub/root on windows server2003
I have used IIS to do the cofiguration as per haacked. It seems that despite setting the asp.net 4.0(please see image) in the webservice extensions
did you install MVC on the server? So that it has the MVC DLLs
MVC install
You should change the path to aspnet_isapi.dll to the one from .NET 4:
C:\Windows\Microsoft.NET\Framework\v4.0.21006\aspnet_isapi.dll

Visual Studio vshost32.exe has stopped working

I have developing in Visual Studio 2010 on the same machine for the past year. Yesterday I installed the Java JDK as well as the Android SDK and since then I cannot run ANY project in Visual Studio. I reveive the following error:
vshost32.exe has stopped working
Problem signature:
Problem Event Name: APPCRASH
Application Name: xxxMyApp.vshost.exe
Application Version: 10.0.30319.1
Application Timestamp: 4ba2084b
Fault Module Name: ntdll.dll
Fault Module Version: 6.1.7601.17514
Fault Module Timestamp: 4ce7b96e
Exception Code: c0000008
Exception Offset: 0004708f
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 7177
Additional Information 1: 62c6
Additional Information 2: 62c6367c0a4a7a6a13fec4af66486182
Additional Information 3: b338
Additional Information 4: b338e77b24caadf81f02d002dd08805e
I have tried enabling/disabling the hosting process, have rebuilt, have run registry cleaners, etc.
Has anyone come across something like this before? Any suggestions?
I managed to solve this by uninstalling both JDK and Android, reinstalling VS 2010, and then reinstalling JDK and Android again.
I am none the wiser as to why this long process needed to take place... but it works now...

getting error while converting target framework of an asp.net web application from 2.0 to 3.5

While converting the taget framework of an asp.net web application from 2.0 to 3.5 in visual studio 2008, i am getting the error : Exception of type 'System.Runtime.InteropServices.ExternalException' was thrown
I solved the issue, my web application didn't have a web.config.I added a deafult web.config and then converted it.It worked fine.
I recently upgraded the target framework in the my web project's (Asp.NET web forms) properties from 4.8 to 4.8.1.
I searched the web.config for any "targetFramework" where it was referencing older versions and changed them to "4.8.1". Save. Recompile.

Resources