Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages<12
Sql Server 2008 upgradation isse
jifeng
#22 Posted : Thursday, January 05, 2012 1:56:03 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
It also work fine in the 3.02, the configuration is the same. Do you need my helps to deploy the site, PM me.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
kaustubh007
#23 Posted : Thursday, January 12, 2012 7:24:30 AM(UTC)
Rank: Member
Groups: Registered

Joined: 12/22/2011(UTC)
Posts: 24
Location: new delhi
Hi jifeng,

Thanks for the help.

Thanks & Regards,
Kaustubh Shukla
kaustubh007
#24 Posted : Tuesday, January 24, 2012 8:38:48 AM(UTC)
Rank: Member
Groups: Registered

Joined: 12/22/2011(UTC)
Posts: 24
Location: new delhi
Hi jifeng,

I think some settings has been changed. I am trying to create a new page and still seeing the Create page page when I click on Save & Return or Save & Publish..

Which settings I need to check and reset?

Thanks & Regards,
Kaustubh Shukla
kaustubh007
#25 Posted : Tuesday, January 24, 2012 12:42:15 PM(UTC)
Rank: Member
Groups: Registered

Joined: 12/22/2011(UTC)
Posts: 24
Location: new delhi
I got the reason behind this issue. Actually CMS was getting opened in the IE 9 compatible mode. That's why it is happening.


Thanks & Regards,

Kaustubh Shukla.
kaustubh007
#26 Posted : Wednesday, January 25, 2012 8:44:59 AM(UTC)
Rank: Member
Groups: Registered

Joined: 12/22/2011(UTC)
Posts: 24
Location: new delhi
Hi Jifeng,

I got an error when I was trying to create page by adding View to it.

Cannot perform runtime binding on a null reference


what's the reason for this issue? how I can solve this problem??

Following is the log generated:

Quote:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/25/2012 12:38:25 PM
Event time (UTC): 1/25/2012 7:08:25 AM
Event ID: 086ce6c0a31145aebc607cc0c02a1541
Event sequence: 838
Event occurrence: 6
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/23/ROOT/CMS-5-129719453245485192
Trust level: Medium
Application Virtual Path: /CMS
Application Path: D:\FinalPublished\24Jan2012Final\CMS\
Machine name: CHETUIWK328

Process information:
Process ID: 1928
Process name: w3wp.exe
Account name: IIS APPPOOL\ASP.NET v4.0

Exception information:
Exception type: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
Exception message: Cannot perform runtime binding on a null reference

Request information:
Request URL: http://192.168.12.220:2323/CMS/dev~BookaRestaurantFinal/AboutUs
Request path: /CMS/dev~BookaRestaurantFinal/AboutUs
User host address: 192.168.12.220
User: admin
Is authenticated: True
Authentication Type: Forms
Thread account name: IIS APPPOOL\ASP.NET v4.0

Thread information:
Thread ID: 7
Thread account name: IIS APPPOOL\ASP.NET v4.0
Is impersonating: False
Stack trace: at CallSite.Target(Closure , CallSite , Object )

at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)

at ASP._Page_Cms_Data_Sites_BookaRestaurantFinal_Templates_Views_AboutUS_template_cshtml.Execute() in d:\FinalPublished\24Jan2012Final\CMS\Cms_Data\Sites\BookaRestaurantFinal\templates\views\AboutUS\template.cshtml:line 2

at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()

at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()

at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)

at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)

at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)

at Kooboo.CMS.Sites.View.FrontHtmlHelper.RenderViewInternal(HtmlHelper htmlHelper, String viewPath, ViewDataDictionary viewData, Object model)

at Kooboo.CMS.Sites.View.FrontHtmlHelper.RenderView(String viewName, ViewDataDictionary viewData, Boolean executeDataRule)

at Kooboo.CMS.Sites.View.FrontHtmlHelper.RenderView(ViewPosition viewPosition)

at Kooboo.CMS.Sites.View.FrontHtmlHelper.<RenderPositionContents>d__7.MoveNext()

at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

at Kooboo.CMS.Sites.Web.AggregateHtmlString..ctor(IEnumerable`1 htmlStrings)

at Kooboo.CMS.Sites.View.FrontHtmlHelper.Position(String positionID)

at ASP._Page_Cms_Data_Sites_BookaRestaurantFinal_Templates_Layouts_two_column_template_cshtml.Execute() in d:\FinalPublished\24Jan2012Final\CMS\Cms_Data\Sites\BookaRestaurantFinal\templates\layouts\two_column\template.cshtml:line 28

at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()

at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()

at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)

at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)

at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)

at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)

at Kooboo.CMS.Sites.View.FrontViewResult.ExecuteResult(ControllerContext context)

at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)

at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19()

at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)

at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b()

at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)

at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b()

at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)

at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)

at System.Web.Mvc.Controller.ExecuteCore()

at Kooboo.CMS.Sites.Controllers.Front.FrontControllerBase.ExecuteCore()

at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)

at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext)

at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5()

at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0()

at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _)

at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()

at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d()

at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)

at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)

at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)

at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)

at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)






Thanks & Regards,
Kaustubh Shukla
jifeng
#27 Posted : Friday, January 27, 2012 10:47:54 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
Do you use RenderView to render the "AboutUs" view in the layout? I think the problem cause by the AboutUs need some data but it do not be queried.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
kaustubh007
#28 Posted : Monday, January 30, 2012 5:54:52 AM(UTC)
Rank: Member
Groups: Registered

Joined: 12/22/2011(UTC)
Posts: 24
Location: new delhi
This is what I have done so far.

I created a content type of PagesDetails with two fields Heading(textbox) and ContentDetails(Tinymce). And added content in the content Section under folder name PagesDetails. After that I created a view named AboutUs with data rule name AboutUs



This is I have got in the view.
<div>
<h3 class="title">@Html.Raw(ViewBag.AboutUs.Heading ?? "")</h3>
<div class="content">

<div>
@Html.Raw(ViewBag.AboutUs.ContentDetails ?? "")
</div>

</div>
</div>

After this I am adding this view in the page using AddView option available.

What is creating an error? how I can solve this one?


Thanks & Regards,
Kaustubh Shukla

jifeng
#29 Posted : Monday, January 30, 2012 6:47:53 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
Is the value of Userkey in the querystring?
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
kaustubh007
#30 Posted : Monday, January 30, 2012 7:26:53 AM(UTC)
Rank: Member
Groups: Registered

Joined: 12/22/2011(UTC)
Posts: 24
Location: new delhi
Hi Jifeng,

Well, I got the reason behind this. I was previewing the page from the CMS which is not getting query string value. What is the best way to create detail pages? As I only want to create detail pages, not both List-Details pages. Is there any better approach for creating detail pages than using datarules??


One more thing how I can save Images and other static data in the SQL database repository??

Thanks & Regards,
Kaustubh Shukla
jifeng
#31 Posted : Monday, January 30, 2012 9:55:56 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
If the userkey is const for the page, please use the const value instead of {UserKey}, for example: AboutUs.


I think your question have send to us already via email.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
kaustubh007
#32 Posted : Wednesday, February 01, 2012 6:29:16 AM(UTC)
Rank: Member
Groups: Registered

Joined: 12/22/2011(UTC)
Posts: 24
Location: new delhi
Hi Jifeng

I want to show page data which is stored in my SQL database using KooBoo API in my own Application. Can you provide me guidelines how to do that ??


This is the table schema.





I was looking forward to add reference to Kooboo.CMS.Content.Persistence.SQLServer in my App. But I wasn't able to figure out how to implement it. Was I adding the right dll reference? Can you provide some code snippet to query PagesContents field data?


Thanks & Regards,
Kaustubh Shukla
jifeng
#33 Posted : Wednesday, February 01, 2012 7:27:09 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
Please use the content query API.

Code:

using Kooboo.CMS.Content.Model;
using Kooboo.CMS.Content.Query;

var repository = new Repository("SampleSite");

var textFolder = new TextFolder(repository,"folder1");

var contents = textFolder.CreateQuery();



Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
kaustubh007
#34 Posted : Wednesday, February 01, 2012 11:32:55 AM(UTC)
Rank: Member
Groups: Registered

Joined: 12/22/2011(UTC)
Posts: 24
Location: new delhi
Hi Jifeng,

Thanks for the code snippet. But, unfortunately it's not working for me. I am getting Object reference error. I am also a bit confused about querying the folder for the content, as my page data is getting stored in the SQL table. Then I should query the database for the page data, not the folder. What you say? Please help me with the Object reference error too. :)

Thanks & Regards,
Kausttubh Shukla
jifeng
#35 Posted : Wednesday, February 01, 2012 3:35:10 PM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
Do you save the page data in the content type? If the data saved in the content type, the content query api works for you.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
jifeng
#36 Posted : Wednesday, February 01, 2012 3:59:29 PM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
Please read more from the wiki: http://wiki.kooboo.com/w...ts_via_content_query_API
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
kaustubh007
#37 Posted : Thursday, February 02, 2012 8:52:27 AM(UTC)
Rank: Member
Groups: Registered

Joined: 12/22/2011(UTC)
Posts: 24
Location: new delhi
Hi Jifeng,

I tried what you have told me. But unfortunately, problem still exists. I think scenario is a bit different. CMS application is inside my application. What I want to do is to add some Kooboo DLL references by which I will get some method to get page data which is stored in database. That finally want to show the data which I will get into the MVC view created inside my project.

How can I do this?



Thanks & Regards,
Kaustubh Shukla
jifeng
#38 Posted : Thursday, February 02, 2012 9:15:45 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
One problem, does the page data manage by Kooboo CMS?
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
kaustubh007
#39 Posted : Thursday, February 02, 2012 9:46:18 AM(UTC)
Rank: Member
Groups: Registered

Joined: 12/22/2011(UTC)
Posts: 24
Location: new delhi
Hello Jifeng,

I created a content type of PagesDetails with two fields Heading(textbox) and ContentDetails(Tinymce). And added the content in the content Section under folder name PagesDetails. Following table schema is created in the SQL server database.




Now I want to query page data stored in the above table using Kooboo API.Is it possible? If yes, then please tell me how can I do this?


Thanks & Regards,
Kaustubh Shukla
Users browsing this topic
Guest
2 Pages<12
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.392 seconds.