Problems Starting an ASP.NET Application with IIS

I wrote a small ASP.NET application. It works fine on startup with a small IIS installation that ships with Visual Studio 2005, but not when trying using IIS. I created a virtual directory in IIS where the application is located (this is done with both IIS and VS 2005), but it does not work. At first, I thought this could be caused by the web.config file, but after several tests I think the problem is with IIS (not sure about this).

Some of the errors I get are

Unable to start debugging on the web server. The connected connection was closed: an unexpected error occurred on the receiver. Click Help for more information.

Can someone give me a suggestion on what to do next?

+1
source share
7 answers

Did you run aspnet_regiis ?

Here is a review site for different versions of IIS and should help if there are other questions / problems

+6
source

Try reinstalling aspnet_regiis.exe.

If you are using .net frameworkype 4.0 and using a 64-bit system,

Go to Run, type cmd and Command Prompt, then type

%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

If you are using a 34-bit system,

Go to Run Type cmd and type

%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
+1
source

?

0

:

  • , web.config, . "Release".
  • , .NET.
  • .
0

, customErrors "" web.config. .

, IIS .NET framework.

, - , dev.

URL - IIS.

0

.NET framework. IIS , . .

0

, IIS. , IIS: Run- > inetmgr enter. , IIS, : http://chalaki.com/install-iis6-windows-xp-professional-sp3-setup-run-csharp-cgi/425/

- Visual Developer IIS "Default ASP.NET Development Server". - "" "", , IIS Server. IIS " ", "" "HTTP" " ".

Visual Developer 2008 - > - > → " IIS" , , IIS . " " " URL".

, Visual Developer 2008 IIS ( IIS), :

- → "" → " IIS", " IIS" (ITI vitual Directory, , IIS) →

/ , -, -, -, " IIS", - , IIS.

Visual Developer 2008 IIS. IIS Visual Studio, , -:

Run → cmd press enter (then type the following command) → C: \ WINDOWS \ Microsoft.NET \ Framework \ Version # aspnet_regiis -i press Enter, after which you will receive a message after 3 seconds. "ASP.net has been successfully installed." (* Version # will be in most cases v2.0.50727)

0
source

Source: https://habr.com/ru/post/1702226/


All Articles