maybe Bug maybe Not !!

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/23/2011 8:44:31 AM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

maybe Bug maybe Not !!

Hi Joe,

 

I do not know if this a bug, but when I install mojoportal from within Visual studio run (f5) it give me an error as below, the same while it works fine from IIS:

Operating system windows 7 64 bit

file dbPageSettings.cs line131

 sph.DefineSqlParameter("@IncludeInChildSiteMap", SqlDbType.Bit, ParameterDirection.Input, includeInChildSiteMap);

project: mojoPortal.Data.MSSql

 

---- Assert Short Message ----
parameter's name doesn't match cached parameters
 

Error Details:

 

> mojoPortal.Data.DLL!mojoPortal.Data.DBPageSettings.Create(int siteId, int parentId, string pageName, string pageTitle, string skin, int pageOrder, string authorizedRoles, string editRoles, string draftEditRoles, string createChildPageRoles, string createChildDraftRoles, bool requireSsl, bool allowBrowserCache, bool showBreadcrumbs, bool showChildPageBreadcrumbs, string pageKeyWords, string pageDescription, string pageEncoding, string additionalMetaTags, bool useUrl, string url, bool openInNewWindow, bool showChildPageMenu, bool hideMainMenu, bool includeInMenu, string menuImage, string changeFrequency, string siteMapPriority, System.Guid pageGuid, System.Guid parentGuid, bool hideAfterLogin, System.Guid siteGuid, string compiledMeta, System.DateTime compiledMetaUtc, bool includeInSiteMap, bool isClickable, bool showHomeCrumb, bool isPending, string canonicalOverride, bool includeInSearchMap, bool enableComments, bool includeInChildSiteMap, bool expandOnSiteMap, System.Guid pubTeamId, string bodyCssClass, string menuCssClass) Line 131 C#
 

Error details:

 

A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.NullReferenceException' occurred in mojoPortal.Web.DLL
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\Users\Ghalib\AppData\Local\Temp\Temporary ASP.NET Files\root\2f8660fe\65ff9b7c\App_Web_eiubszb4.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
---- DEBUG ASSERTION FAILED ----
---- Assert Short Message ----
parameter's name doesn't match cached parameters
---- Assert Long Message ----


    at SqlParameterHelper.DefineSqlParameter(String paramName, SqlDbType type, String typeName, Int32 size, Byte precision, ParameterDirection dir, Object value, Boolean sizeProvided, Boolean precisionProvided)  C:\inetpub\AlJidara Site\AlJidara\mojoPortal.Data.MSSQL\SQLParameterHelper.cs(135)
    at SqlParameterHelper.DefineSqlParameter(String paramName, SqlDbType type, ParameterDirection dir, Object value)  C:\inetpub\AlJidara Site\AlJidara\mojoPortal.Data.MSSQL\SQLParameterHelper.cs(91)
    at DBPageSettings.Create(Int32 siteId, Int32 parentId, String pageName, String pageTitle, String skin, Int32 pageOrder, String authorizedRoles, String editRoles, String draftEditRoles, String createChildPageRoles, String createChildDraftRoles, Boolean requireSsl, Boolean allowBrowserCache, Boolean showBreadcrumbs, Boolean showChildPageBreadcrumbs, String pageKeyWords, String pageDescription, String pageEncoding, String additionalMetaTags, Boolean useUrl, String url, Boolean openInNewWindow, Boolean showChildPageMenu, Boolean hideMainMenu, Boolean includeInMenu, String menuImage, String changeFrequency, String siteMapPriority, Guid pageGuid, Guid parentGuid, Boolean hideAfterLogin, Guid siteGuid, String compiledMeta, DateTime compiledMetaUtc, Boolean includeInSiteMap, Boolean isClickable, Boolean showHomeCrumb, Boolean isPending, String canonicalOverride, Boolean includeInSearchMap, Boolean enableComments, Boolean includeInChildSiteMap, Boolean expandOnSiteMap, Guid pubTeamId, String bodyCssClass, String menuCssClass)  C:\inetpub\AlJidara Site\AlJidara\mojoPortal.Data.MSSQL\dbPageSettings.cs(129)
    at PageSettings.Create()  C:\inetpub\AlJidara Site\AlJidara\mojoPortal.Business\PageSettings.cs(628)
    at PageSettings.Save()  C:\inetpub\AlJidara Site\AlJidara\mojoPortal.Business\PageSettings.cs(794)
    at mojoSetup.CreatePage(SiteSettings siteSettings, ContentPage contentPage, PageSettings parentPage)  C:\inetpub\AlJidara Site\AlJidara\Web\Components\mojoSetup.cs(798)
    at mojoSetup.SetupDefaultContentPages(SiteSettings siteSettings)  C:\inetpub\AlJidara Site\AlJidara\Web\Components\mojoSetup.cs(738)
    at SetupHome.RunSetup()  C:\inetpub\AlJidara Site\AlJidara\Web\Setup\Default.aspx.cs(214)
    at SetupHome.Page_Load(Object sender, EventArgs e)  C:\inetpub\AlJidara Site\AlJidara\Web\Setup\Default.aspx.cs(88)
    at Control.OnLoad(EventArgs e) 
    at Control.LoadRecursive() 
    at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
    at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
    at Page.ProcessRequest() 
    at Page.ProcessRequestWithNoAssert(HttpContext context) 
    at Page.ProcessRequest(HttpContext context) 
    at setup_default_aspx.ProcessRequest(HttpContext context)  c:\Users\Ghalib\AppData\Local\Temp\Temporary ASP.NET Files\root\2f8660fe\65ff9b7c\App_Web_eiubszb4.0.cs
    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 
    at ApplicationStepManager.ResumeSteps(Exception error) 
    at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) 
    at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) 
    at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) 
    at HttpRuntime.ProcessRequest(HttpWorkerRequest wr) 
    at Request.Process() 
    at Host.ProcessRequest(Connection conn) 

---- DEBUG ASSERTION FAILED ----
---- Assert Short Message ----
parameter's name doesn't match cached parameters
---- Assert Long Message ----


    at SqlParameterHelper.DefineSqlParameter(String paramName, SqlDbType type, String typeName, Int32 size, Byte precision, ParameterDirection dir, Object value, Boolean sizeProvided, Boolean precisionProvided)  C:\inetpub\AlJidara Site\AlJidara\mojoPortal.Data.MSSQL\SQLParameterHelper.cs(135)
    at SqlParameterHelper.DefineSqlParameter(String paramName, SqlDbType type, ParameterDirection dir, Object value)  C:\inetpub\AlJidara Site\AlJidara\mojoPortal.Data.MSSQL\SQLParameterHelper.cs(91)
    at DBPageSettings.Create(Int32 siteId, Int32 parentId, String pageName, String pageTitle, String skin, Int32 pageOrder, String authorizedRoles, String editRoles, String draftEditRoles, String createChildPageRoles, String createChildDraftRoles, Boolean requireSsl, Boolean allowBrowserCache, Boolean showBreadcrumbs, Boolean showChildPageBreadcrumbs, String pageKeyWords, String pageDescription, String pageEncoding, String additionalMetaTags, Boolean useUrl, String url, Boolean openInNewWindow, Boolean showChildPageMenu, Boolean hideMainMenu, Boolean includeInMenu, String menuImage, String changeFrequency, String siteMapPriority, Guid pageGuid, Guid parentGuid, Boolean hideAfterLogin, Guid siteGuid, String compiledMeta, DateTime compiledMetaUtc, Boolean includeInSiteMap, Boolean isClickable, Boolean showHomeCrumb, Boolean isPending, String canonicalOverride, Boolean includeInSearchMap, Boolean enableComments, Boolean includeInChildSiteMap, Boolean expandOnSiteMap, Guid pubTeamId, String bodyCssClass, String menuCssClass)  C:\inetpub\AlJidara Site\AlJidara\mojoPortal.Data.MSSQL\dbPageSettings.cs(130)
    at PageSettings.Create()  C:\inetpub\AlJidara Site\AlJidara\mojoPortal.Business\PageSettings.cs(628)
    at PageSettings.Save()  C:\inetpub\AlJidara Site\AlJidara\mojoPortal.Business\PageSettings.cs(794)
    at mojoSetup.CreatePage(SiteSettings siteSettings, ContentPage contentPage, PageSettings parentPage)  C:\inetpub\AlJidara Site\AlJidara\Web\Components\mojoSetup.cs(798)
    at mojoSetup.SetupDefaultContentPages(SiteSettings siteSettings)  C:\inetpub\AlJidara Site\AlJidara\Web\Components\mojoSetup.cs(738)
    at SetupHome.RunSetup()  C:\inetpub\AlJidara Site\AlJidara\Web\Setup\Default.aspx.cs(214)
    at SetupHome.Page_Load(Object sender, EventArgs e)  C:\inetpub\AlJidara Site\AlJidara\Web\Setup\Default.aspx.cs(88)
    at Control.OnLoad(EventArgs e) 
    at Control.LoadRecursive() 
    at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
    at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
    at Page.ProcessRequest() 
    at Page.ProcessRequestWithNoAssert(HttpContext context) 
    at Page.ProcessRequest(HttpContext context) 
    at setup_default_aspx.ProcessRequest(HttpContext context)  c:\Users\Ghalib\AppData\Local\Temp\Temporary ASP.NET Files\root\2f8660fe\65ff9b7c\App_Web_eiubszb4.0.cs
    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 
    at ApplicationStepManager.ResumeSteps(Exception error) 
    at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) 
    at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) 
    at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) 
    at HttpRuntime.ProcessRequest(HttpWorkerRequest wr) 
    at Request.Process() 
    at Host.ProcessRequest(Connection conn) 

4/23/2011 8:51:21 AM
Gravatar
Total Posts 18439

Re: maybe Bug maybe Not !!

It isn't a bug, the debugger will stop on all errors even errors that would be handled. If you rebuild the entire solution first, then you can just click continue on each error in the debugger, the error will be handled and it will redirect to /Setup/Default.aspx to run the needed upgrade script. Or instead of launching the debugger, just rebuild the solution, then right click the Default.aspx page in the root and choose "View in Browser". This is much faster than running it in the debugger and it won't break on every error like in the debugger. I only use the debugger when I really need to step through the code.

Best,

Joe

4/23/2011 8:52:50 AM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

Re: maybe Bug maybe Not !!

version is 1768, it is related to the cache, i cleaned all the cache , but still appear:

it give me popup error with header:

"parameter's name doesn't match cached parameters"

4/23/2011 8:54:13 AM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

Re: maybe Bug maybe Not !!

ok, done

thanks

You must sign in to post in the forums. This thread is closed to new posts.