Hi
I am trying to get an online gallery to work (www.ngallery.org). I have
managed to get it all working on my local host but I can not get it to work
on my web space.
The site can be found at www.gallerox.com which should re-direct to
www.gallerox.com/gallerox/default.aspx
I have put the bin directory in the /gallerox folder as I have a re-director
page that points to the appropriate folder which should prevent me from
having to duplicate the bin directory on the root.
I just copied across all the files and imported the database from a .bak
file. I compiled the web application on my local machine but I am not sure
if I have to compile it on the server. In which case I have no idea on how
to do this.
I got 1&1 to set the directory to an application directory and I set the
permissions on the folder to Read and Write through the 1&1 Web Files >>
Rights Management console.
However, when I try to access the default.aspx page, I get back a security
exception which is detailed at the bottom of this post.
Does anyone know how I could resole this problem?
Regards, Carl Gilbert
Server Error in '/gallerox' Application.
Security Exception
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 .SecurityExcept ion: Request for the
permission of type System.Security .Permissions.Fi leIOPermission, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9 failed.
Source Error:
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.
Stack Trace:
[SecurityExcepti on: Request for the permission of type
System.Security .Permissions.Fi leIOPermission, mscorlib, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9 failed.]
System.Security .CodeAccessSecu rityEngine.Chec kHelper(Permiss ionSet
grantedSet, PermissionSet deniedSet, CodeAccessPermi ssion demand,
PermissionToken permToken) +675
System.Security .CodeAccessSecu rityEngine.Chec k(PermissionTok en permToken,
CodeAccessPermi ssion demand, StackCrawlMark& stackMark, Int32 checkFrames,
Int32 unrestrictedOve rride) +0
System.Security .CodeAccessSecu rityEngine.Chec k(CodeAccessPer mission cap,
StackCrawlMark& stackMark) +88
System.Security .CodeAccessPerm ission.Demand() +62
System.Web.Http Request.MapPath (String virtualPath, String baseVirtualDir,
Boolean allowCrossAppMa pping) +327
System.Web.Http ServerUtility.M apPath(String path) +61
nGallery._defau lt.Page_Load(Ob ject sender, EventArgs e) in
default.aspx.cs :69
System.EventHan dler.Invoke(Obj ect sender, EventArgs e) +0
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +2112
System.Web.UI.P age.ProcessRequ est() +218
System.Web.UI.P age.ProcessRequ est(HttpContext context) +18
System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on+IExecutionSt ep.Execute()
+179
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +87
Version Information: Microsoft .NET Framework Version:1.1.432 2.2300; ASP.NET
Version:1.1.432 2.2300