I am hosting BlogEngine.Net 220.127.116.11 and am seeing some issues with getting the DefaultNetworkCredentials property.
You can't see that off hand on the pages, but the sites fails to produce proper js scripts with js.axd module.
It fails in the lines of the code that call:
client.Credentials = CredentialCache.DefaultNetworkCredentials;
It can be seen if you run fiddler. It turns out that one of the references to jscript returns a HTTP302 that redirects to the error (HTTP404) page.
The link to the script that fails is the one:
(or some other identifier as the id generated might depend on session or maybe some other factors).
To see precisely the link that fails for you, run Fiddler (or similar HTTP monitoring tool) and look for the link that is similar to the above and generates 302 with redirect to
If you turn CustomErrors (set to Off) in Web.config for the /blog/application.
Then you will get the error page with the call stack:
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust
level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209
As a result, the java script files are not properly generated and there are jscript errors that make some featueres fail (like posting comments).
Please, let me know what you think of the error or if you know a remedy to it.