Wednesday, January 07, 2009
Categories
My Blog

Error in SharePoint after applying SP1

SharePoint 3/22/2008 8:39 AM

 After applying SP1 you may see this error in your Application event log:

 Retrieving the COM class factory for component with CLSID {3D42CCB1-4665-4620-92A3-478F47389230} failed due to the following error: 80070005.
 
This is a security error. To fix this you need to reconfigure security entries for OSearch DCOM component. Follow these steps:
  • Go to Start --> Administrative Tools Component Services 
  • Expand Component Services --> Computers --> My Computer --> DCOM Config
  • Find Osearch, right click and select Properties
  • Select Security tab
  • Edit Launch and Activation Permissions
    • Add WSS_ADMIN_WPG with Local Launch and Local Activation
    • Add WSS_WPG with Local Launch and Local Activation
  • Edit Access Permissions
    • Add WSS_ADMIN_WPG with Local Access
    • Add WSS_WPG with Local Access
 
Comments (0)
 

How to Check if Current Page is in Edit or Preview Mode

DotNetNuke 7/30/2007 9:34 PM
As part of the sequel “How to do simple things in DotNetNuke after you created your first module”, I’ll show you today how to recognize inside your module, when the page is in edit mode and when is in preview mode. 
 
 Me.EditMode property is not enough to show this state of the page. You need also to evaluate the a cookie used to indicate if the page is in preview or not.
  
If Me.EditMode Then
  Dim objPreview As HttpCookie
  objPreview = Request.Cookies("_Tab_Admin_Preview" & PortalSettings.PortalId.ToString)
  If Not objPreview Is Nothing AndAlso CType(objPreview.Value, Boolean) Then
   'the page is in preview mode
   '...
  
Else
   'the page is in edit mode
   '...
  
  End If
End If
  
This is useful, obviously when you want to show different things when the page is in edit mode rather than preview.
Comments (0)
 

How to Create a Page Programmatically in DotNetNuke

DotNetNuke 7/30/2007 4:44 AM
This snippet of code shows you how to programmatically create a page (tab) in DotNetNuke 4.x from a template.
It is called from the context of a module, so we have access to some of the main objects of DNN framework, such as PortalSettings.
Few properties are copied from the current active page: TabPermissions, SkinSrc, ContainerSrc. With a little effort you can specify your own values, if these ones are not appropriate.
 
The most important point is the use of the page template. By default, DotNetNuke comes with one template that is adding a HTML module to the main ContentPane. This template is placed in “…\Portals\_default\Templates\ Default.page.template” file. It is a XML file and you can easily change it or clone it to create your own template.
 
'create new hidden page 
Dim ctrTab As New DotNetNuke.Entities.Tabs.TabController
Dim objTab As New DotNetNuke.Entities.Tabs.TabInfo
Dim objActiveTab As DotNetNuke.Entities.Tabs.TabInfo
objActiveTab = Me.PortalSettings.ActiveTab
objTab.IsVisible = False
objTab.PortalID = Me.PortalId
objTab.TabID = Null.NullInteger
objTab.PortalID = PortalId
objTab.TabName = "Page Name"
objTab.Title = "Page Name"
objTab.Description = "Description"
objTab.KeyWords = ""
'we make it hidden this time
objTab.IsVisible = False
objTab.DisableLink = False
objTab.ParentId = -1
objTab.IconFile = ""
objTab.IsDeleted = False
objTab.Url = "N"
'get the same permissions as the current active page
objTab.TabPermissions = objActiveTab.TabPermissions
'get the same skin as the current active page
objTab.SkinSrc = objActiveTab.SkinSrc
objTab.ContainerSrc = objActiveTab.ContainerSrc
objTab.TabPath = GenerateTabPath(objTab.ParentId, objTab.TabName)
objTab.StartDate = Null.NullDate
objTab.EndDate = Null.NullDate
objTab.PageHeadText = ""
objTab.TabID = ctrTab.AddTab(objTab)
'create the page from our template
Dim xmlDoc As New System.Xml.XmlDocument
xmlDoc.Load(Server.MapPath(Me.Page.TemplateSourceDirectory & "/Portals/_default/Templates") & _
"\Default.page.template")
I will conclude that creating pages programmatically is not complicated in DotNetNuke, and can be useful in the process of custom module creation, when we want to save the admin user few extra steps.
Comments (1)
 

Next features of zsReport

zsReport 7/29/2007 1:59 AM

Here is a list of features I am currently working on for next release of zsReport:

  • Localization.
  • Support for linked reports
  • My Favorites reports
  • Top 10 Reports eventually by category. (Add categories).
  • Improve visual look.
  • Get better at running multiple modules on the same page. Good for building dashboards.
  • Allow the admin to control the target of the links (drill-downs) in reports.
  • Allow parameter zone and toolbar to be hidden or visible.
  • Build DNN specific subscription rather than using Reporting Services server side subscription.
  • Thumbnail view of the reports list. With automatic or on demand thumbnail generation.
  • Improve administration and management functions: usage activity reports, update and upload etc
  • Allow multiple source of Reporting Services Servers to be merged into the same module.
  • Improve social functions: share-it, email-it, digg-it etc. Expose RSS feed as an option. Admin controllable.
  • Integrate with Business Objects reports.
  • Change the name of the module to zsReport (to incorporate with other products of mine)
Comments (0)
 

Workaround Module Installer Problems With Same Filename In Different Locations

DotNetNuke 6/4/2007 2:52 AM
The problem I have with dnn module installer/packager is that I cannot pack files with same name that reside in different locations of your module subfolders.
Comments (0)More...
 

Export ColdFusion 7 Settings

2/1/2007 8:08 PM
If you want to export/import ColdFusion server settings you should read this: http://www.doughughes.net/index.cfm?event=viewEntry&entryId=73
Comments (0)More...
 

Writing text file from a T-SQL script

SQL 8/30/2006 3:24 PM

There are several ways, all involves master..xp_cmdshell:

declare @cmd varchar(1000)
select @cmd = 'osql -U -P -S -Q"select * from master..sysobjects" -o"c:\osqloutput.txt" -w500'
exec master..xp_cmdshell @cmd

master..xp_cmdshell 'bcp master..sysobjects out c:\file.bcp -S -U -P -c '

exec master..xp_cmdshell 'echo Hello World > c:\file.txt'

 

Comments (0)
 

Re activate the demo site for this tag.

CFX DynamicImage 7/30/2006 12:30 PM
It's been a whyle since I didnt do anything about this tag, but it's time to catch up. I reactivated the demo site for this site.
Comments (0)More...
 

How to Migrate HTML module source code from DNN 3.x to DNN 4.x

DotNetNuke 7/23/2006 9:47 PM
Four steps for migrating HTML module source code from DNN 3 to DNN 4
Comments (0)More...
 
Privacy Statement  |  Terms Of Use
Copyright 2008 by dumitrascu.NET