c# - Hosting a .NET 4.0 Web Service in IIS 6 -


i trying host 2nd website (outside of default web site, used) web service supported .net 4. iis 6.

the default web page using .net 2.0. in iis 6 can have 2 seperate websites running different versions of .net creating 2 distinct application pools. i've done this.

however running common problem asp.net tab not appear in iis. tab allows set version of .net site uses.

my workaround change .net version each site references through command line:

aspnet_regiis -s (site path) 

the other solution problem switch iis 64-bit mode, causes asp.net tab appear. problem switching iis 64-bit not jive existing website, after reconfiguring iis reference following directory,

microsoft.net/framework64

as opposed to

microsoft.net/framework

is experienced hosting seperate pages on 1 server this? nightmare. can 2nd page work, original default page fails, , vice versa.

i have iis in 32-bit mode , ran following cmd line:

c:\windows\microsoft.net\framework\v4.0.30319>aspnet_regiis -lk w3svc/  2.0.50727.3053 w3svc/1/root/   2.0.50727.3053 w3svc/87257621/root/    4.0.30319.1 

which shows 2nd website (which has id 8725721) set .net 4 whereas original set (id 1) set .net 2. in seperate application pools.

under configuration initial site works. on new site can browse directory .asmx page produces 404 error.

i have gotten .asmx page work intended, when enabled iis 64-bit mode, default web site gave 'service unavailable' generic error because .net installed framework path rather framework64 path. after switching framework64 path more errors came default page.

also, before change target framework of website im trying run .net 4, error shows in event viewer:

failed initialize appdomain:/lm/w3svc/87257621/root

exception: system.io.fileloadexception

message: not load file or assembly 'system.web, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' or 1 of dependencies. access denied.

under web service extensions in iis, asp.net 4.0 set allowed?


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -