Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Portal Starter Kit - Integrate with other site

0 views
Skip to first unread message

WoodenSWord

unread,
Jun 17, 2004, 5:10:01 PM6/17/04
to
Intergrating Module in an existing Web
Posted: 06-17-2004 05:02 PM

Hello,

I just want to use a Portal Starter kit module ( discussion) to integrate it in an existing site.

I copied all the necessary dll and event.ascx files to my new site but when i do this an exception occurs..

This is my blank aspx page where i want to add discussion
<%@ Page Language="VB" %>
<%@ Register TagPrefix="portal" TagName="forum" Src="Discussion.ascx" %>
<link href='ASPNETPortal.css' type="text/css" rel="stylesheet" />
<script runat="server">
' Insert page code here
'
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<asp:Label id="lblTest" runat="server">Label</asp:Label>
<!-- Insert content here -->
<portal:forum ModNo="19" runat="server" />
</form>
</body>
</html>

The exception is:
Server Error in '/Discussion' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

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:


[NullReferenceException: Object reference not set to an instance of an object.]
ASPNET.StarterKit.Portal.PortalModuleControl.get_ModuleId()
ASPNET.StarterKit.Portal.Discussion.BindList()
ASPNET.StarterKit.Portal.Discussion.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()

Thanks

Edward

unread,
Jun 17, 2004, 9:40:52 PM6/17/04
to
remove some Inherit directive from <%@ control %> line. Portal module
will automatically load it's ModuleId by Basic Class's method get_ModuleId,
because the parent class do so.

you should also check some source files such like Events.DB in the subfolder
"components" to remove some irrelative lines.

and the last step, I'd like to advice you, to build Events.DB into your own
dll, or one seperate DLL. Only 1% usage of ASP.NET.StarterKit.Portal.dll ,
will welcome conflicts in the future, something like ClassNames, static
methods, then you will think about suicide because you check your own codes
day after day, you cannot figure out what happened.


0 new messages