Background:
My group has developed a web app and it's been in production for months. One part of the application requires a .net assembly download (.DLL) to the client machine. We have a stand-alone program that allows the user to set the site they would like to allow full trust to.
All that works fine. For once, the issue is not with the clients, it's with me (and my workstation).
Late last week I installed .NET 2.0 SDK so that I could try some new options for our installations (like giving fulltrust to our strong name instead of using "site"). Well none of the strong name caspol entries I tried seemed to work, so I gave it up, removed the Strong Name entries from caspol, and re-added our local dev server name as the site to give full trust to (as I've done hundreds of times).
FYI, the command our standalone uses:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -machine -addgroup 1 -site Awesome FullTrust -name Awesome"
Where "Awesome" would be the name of our server.
Later that day I attempt to get some screenshots from our app and I get the all too familiar "Object doesn't support this property or method". Odd, so I go through my normal checklist that I go through with clients:
1) Check caspol -lg to confirm info is correct. Machine level, server name, full trust. Set correctly.
2) Can other users access and download the component - yes, all the other developers can access it just fine.
3) I'm not using Vista or IE 7/8 (I'm XP and IE6), but I add our server to the trusted sites, just to eliminate that possibility.
4) Check the workstation event logs - nothing related there.
5) Check the C:\Windows\Assembly\Download\ folder. Previous downloads are there for our various servers. I use gacutil to clear it and try to access our app again - nothing is being downloaded.
6) Check for Fusion Bind errors in IE History - the last fusion bind error was 2 weeks ago when I was testing.
7) Check IE Security settings - signed .NET assemblies are allowed. Reset "Trusted Sites" zone to "Low" and tried again, no luck.
8) Using caspol I reset all levels to the default settings and add our server again. I also try adding full trust to different zones and to all code. no luck.
So I figure the SDK install must have hosed something up. I:
Uninstall the SDK and try again. No luck
Uninstall .NET Framework 3.5, 3.0, and 2.0 (so 1.1 was all that is left). Reinstall Framework 2.0, set the caspol, and try again. No luck
Do some google searches, uninstall Framework 2.0, use a .NET 2.0 cleanup tool from microsoft, re-install Framework 2.0, set the caspol, and try again. No luck.
Backup the "Config" folder (within Windows\Microsoft.NET\Framework\v2.0.50727\) and replace it with a backup I did early last week. No luck.
-------------------
I'm at a loss. I troubleshoot clients every day who are usually just not following the directions to set security. This is not something I've seen before.
Unless I can get an answer here, my next steps are either to:
Uninstall all framework (including 1.0 and 1.1) and start fresh, but I need to research any issues that might come up with going that far back.
or
Restore my entire laptop from the backup (which I'm hoping was prior to this becoming an issue) and hope that resolves the issue.
Any help would be greatly appreciated. It's a bit awkward being the guy people come to for troubleshooting these issues and I can't even get my own workstation to work correctly.
-ZE
My group has developed a web app and it's been in production for months. One part of the application requires a .net assembly download (.DLL) to the client machine. We have a stand-alone program that allows the user to set the site they would like to allow full trust to.
All that works fine. For once, the issue is not with the clients, it's with me (and my workstation).
Late last week I installed .NET 2.0 SDK so that I could try some new options for our installations (like giving fulltrust to our strong name instead of using "site"). Well none of the strong name caspol entries I tried seemed to work, so I gave it up, removed the Strong Name entries from caspol, and re-added our local dev server name as the site to give full trust to (as I've done hundreds of times).
FYI, the command our standalone uses:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -machine -addgroup 1 -site Awesome FullTrust -name Awesome"
Where "Awesome" would be the name of our server.
Later that day I attempt to get some screenshots from our app and I get the all too familiar "Object doesn't support this property or method". Odd, so I go through my normal checklist that I go through with clients:
1) Check caspol -lg to confirm info is correct. Machine level, server name, full trust. Set correctly.
2) Can other users access and download the component - yes, all the other developers can access it just fine.
3) I'm not using Vista or IE 7/8 (I'm XP and IE6), but I add our server to the trusted sites, just to eliminate that possibility.
4) Check the workstation event logs - nothing related there.
5) Check the C:\Windows\Assembly\Download\ folder. Previous downloads are there for our various servers. I use gacutil to clear it and try to access our app again - nothing is being downloaded.
6) Check for Fusion Bind errors in IE History - the last fusion bind error was 2 weeks ago when I was testing.
7) Check IE Security settings - signed .NET assemblies are allowed. Reset "Trusted Sites" zone to "Low" and tried again, no luck.
8) Using caspol I reset all levels to the default settings and add our server again. I also try adding full trust to different zones and to all code. no luck.
So I figure the SDK install must have hosed something up. I:
Uninstall the SDK and try again. No luck
Uninstall .NET Framework 3.5, 3.0, and 2.0 (so 1.1 was all that is left). Reinstall Framework 2.0, set the caspol, and try again. No luck
Do some google searches, uninstall Framework 2.0, use a .NET 2.0 cleanup tool from microsoft, re-install Framework 2.0, set the caspol, and try again. No luck.
Backup the "Config" folder (within Windows\Microsoft.NET\Framework\v2.0.50727\) and replace it with a backup I did early last week. No luck.
-------------------
I'm at a loss. I troubleshoot clients every day who are usually just not following the directions to set security. This is not something I've seen before.
Unless I can get an answer here, my next steps are either to:
Uninstall all framework (including 1.0 and 1.1) and start fresh, but I need to research any issues that might come up with going that far back.
or
Restore my entire laptop from the backup (which I'm hoping was prior to this becoming an issue) and hope that resolves the issue.
Any help would be greatly appreciated. It's a bit awkward being the guy people come to for troubleshooting these issues and I can't even get my own workstation to work correctly.
-ZE