10/25/2014 6:55:49 PM
440
Reputation
38
Total posts
Hi,
I was trying to insert a code block on a page, my wall, but keep getting an error like this:
c:\Users\Sam\Documents\My Web
Sites\EmptySite10\MonoX\Pages\UserProfile\MyWall.aspx(20): error CS1518:
Expected class, delegate, enum, interface, or struct
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath
virtualPath)at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath
virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
allowBuildInPrecompile, Boolean throwIfNotFound, Boolean
ensureIsUpToDate)at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath
virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath
virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context,
String requestType, String virtualPath, String path)at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Also, when I try to insert it in a different part of the page, it says something like Code block not allowed in this context.
Any help would be helpful.
Samtg
Rating history (Content is rated 0.00 of 0 vote(s).)
Shows who have rated the content, and the rating score.