ASP.NET State Service version issues; public service - 1.1, website - 3.5

I have an ASP.NET 3.5 website running on Windows Server 2003 and I am using ASP.NET public service for session management. It seems to work, and I regularly get a message that my code must have version 2.0 of a public service running to work (I think as he said, I temporarily switched to saving InProc sessions). Refresh the page and the error will go away (a little, it will definitely come back).

So, I looked at the ASP.NET public service properties in the Services frontend and mapped it to the .exe in the 1.1 folder:

C: \ WINDOWS \ Microsoft.NET \ Framework \ v1.1.4322 \ aspnet_state.exe

There is a corresponding version in the 2.0 framework folder, but I don't know how to add it as a new service. I'm also not sure if adding version 2.0 (and stopping and / or removing version 1.1) will fix the problem.

Thanks in advance for any help anyone can provide.

Mick

+2


source to share


3 answers


OK, found a solution somewhere else which seems to work. Almost the same as above:

  • Change to .NET2.0 directory on command line
  • run 'aspnet_regiis -i -enable'
  • the computer sits there chewing for a minute and then everything works.


I checked "ASP.NET Public Service" in the Services console and now pointed to .NET2.0 version (not .NET1.1).

The only strange thing I did that might have led to this scenario was to install .NET3.5 directly on a box that had previously only installed .NET1.1. I figured this would put .NET2.0 in that path (which it kind of did), but must have forgotten about the session.

+1


source


I had a similar problem running ASP.net 4 alongside ASP.net 2.0 on Win Server 2003 SP3 and all in 32 bit mode.

At some point, something nuked ASPNET_State from the C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 directory but didn't tell the ASPNET_State server that it should now be pointing to C: \ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319 \ ASPNET_State.exe. I can only imagine what it was when .Net 4 was installed, but I can't be sure.

So I ran



sc config aspnet_state binpath = C: \ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319 \ aspnet_state.exe

and it all seemed to work after that.

(Please note the space after "binpath =" - I'm afraid whoever made the original post (Mick Byrne) didn't include this, and therefore explains why ... "However, this just doesn't work at all and just calls for instructions on how to use the "sc" command for this branch - see comments in the original post)

+2


source


Can you run aspnet_regiis -? From the framework 2.0 directory to update the website.

0


source







All Articles