• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 322
  • Last Modified:

Changing .Net versions

I have had to change .Net version due to what is installed on the server.  I get the error below.  Any ideas what I can do to solve this?

Error      1      Failed to execute command: ""C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\ResGen.exe" /useSourcePath "/r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" "/r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll/r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Deployment.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll "/r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /compile "My Project\Resources.resx,obj\x86\Debug\File_Archive_Tool.Resources.resources"". The handle is invalid.      C:\Users\csymington\AppData\Local\Temporary Projects\File Archive Tool\TRACKER      File Archive Tool
  • 2
1 Solution
Please install the correct .Net version on the server and run aspnet_regiis -i so you can use it in the IIS web server.

Clearly your application requires a specific .Net version and this cannot be willy nilly changed on the fly based on whim.
What version was your app developed against and what version do you have on server?
AlyantoAuthor Commented:
I have been able to find a solution. This is my write up of it in the attachment.

Also supporting information @ http://support.microsoft.com/kb/2028833
AlyantoAuthor Commented:
I was able to solve the problem.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now