Hi!
I got the exact same error on my fresh vista installation.
Here is what i did in order to get it to work:
While debugging if found that the redirect comes from file "PageBase.vb" (Line 530). The comment above the line says "suppress AJAX error in Medium Trust", but it actual prevents the error page from showing redirecting you to the page you came from.
Set a break point there and inspect the "objBasePortalException.Message" for the error you got.
Mine was:
System.Security.SecurityException: Request for ConfigurationPermission failed while attempting to access configuration section 'system.web/deployment'. To allow all callers to access the data for this section, set section attribute 'requirePermission' equal 'false' in the configuration file where this section is declared. ---> System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca)
The action that failed was:
Demand
So i edited the file "C:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config" and added the value requirePermission="false" to the section "compilation" and "deployment".
Thats it - everything's OK for me now.
Hope that helpes you too!
Cheers
Guenther