Perfil de FiredancerFiredancingFotosBlogListas Herramientas Ayuda

Blog


04 noviembre

Crystal Report LOGON FAILED Error In Visual Studio

A knot whose complement has a non-trivial JSJ ...

Image via Wikipedia

For developers who, like me, had set out on the wrong footing, the solution to the LOGON FAILED issue with Crystal Report in Visual Studio is non-trivial.

MSDN has comprehensive tutorials here - http://msdn.microsoft.com/en-us/library/ms225570.aspx .

All the best!

Reblog this post [with Zemanta]

03 junio

Oracle 11g: Unable to start emctl Oracle Enterprise Manager service on Windows

Exasperated, I

Q: I was not able to start the Oracle 11g Enterprise Manager service.

This happened after renaming my computer and although I reconfigured Oracle and my network settings (eg hosts file) for the new computer name it was not enough to get it working.

Basically, the Oracle Enterprise Manager service could not be started on the Windows Services management console. Alternatively, running ‘emctl start dbconsole’ on a command prompt did not do it either.

Checked for solutions on the Internet and found that several others had faced the same problem too.

A: Checking the log file OracleDBConsoleORCLsvc.log (in the oracle_home\computername\sysman\log directory) I found that Oracle had exited with a certain numeric exit code. The log further referred to the log file OracleDBConsoleorcl.nohup which contains a lot more detail on what happened.

In my case, the log file told me that the Java runtime could not find a particular directory (applib) and bombed the startup process. Finding a similar directory elsewhere (which actually contained another log file), I copied it over to where Oracle was looking for it, and this got the EM working again.

Lesson learnt: The OracleDBConsoleorcl.nohup log file contains a wealth of details about the Oracle Enterprise Manager service. It’s helpful to refer to it in solving problems of not being able to start the Oracle Enterprise Manager.

Related articles by Zemanta

Reblog this post [with Zemanta]
10 mayo

Looking For New Technologies?

Adoption of the right and relevant latest technologies is key to survival in the increasingly competitive world. Here’s a place to fast forward into the technological future:

image

Technorati Tags: ,,,,
29 abril

Wordpress 2.7 – Blank Page

Restaurant

Problem: I backed up the database and website files for a particular Wordpress 2.7 installation and moved it over to another computer. When I run the site on the new computer, all I got is a blank page.

Solution: This was the solution that worked for me. Here it is in a nutshell:

  1. Rename the wp-contents/plugins subdirectory to something else
  2. Create a blank new subdirectory there called plugins
  3. Run the site – the site is up again!
  4. Delete the new plugins subdirectory
  5. Rename the old plugins subdirectory back to plugins

As the author of this solution says on his web page, the remedy is mysterious.

28 abril

.Net Repeater Control

Here are some short notes on how to use the .Net Repeater Control.

Templates

The Repeater Control consists of the following subcomponents:

  • HeaderTemplate
  • ItemTemplate
  • AlternatingItemTemplate
  • SeparatorTemplate
  • Footer Template

Place codes and HTML elements in these templates to render complete DataRepeaters.

Binding Data

Data is bound through the DataSource property and the DataBind method. Valid data sources implement the ICollection, IEnumerable or IListSource interfaces.

Implementation

  1. Add and configure a Data Source to the page
  2. Add a DataRepeater Control to the page
  3. Set the DataSource property of the Data Repeater Control to point to the Data Source
  4. Add an ItemTemplate to the DataRepeater
    1. Add databound child controls (HTML markups or Server Controls) to the ItemTemplate
    2. Bind the child controls to the data using the Eval data-binding function

        <td><%#DataBinder.Eval(Container.DataItem, "DataItemName")%></td>

15 abril

SQL Server - @@IDENTITY, SCOPE_IDENTITY, and IDENT_CURRENT

Here’s a quick note and reference point for programmers who are forgetful, like me.

Barley All the Transact-SQL system functions @@IDENTITY, SCOPE_IDENTITY (which has no @@) and IDENT_CURRENT (also no @@) return the last auto-generated row identity  value. What’s the difference?

1. @@IDENTITY returns the last identity column value generated for any table during the current session regardless of whether the number was generated within the scope of the current stored procedure or not – Any table, current session, any scope

2. SCOPE_IDENTITY() returns the last identity column value generated for any table during the current session and within the current scope only – Any table, current session, current scope

3. IDENT_CURRENT(‘tablename’) returns the last identity column value auto-generated only for the current table regardless of session and scope – Current table, any session, any scope

I use SCOPE_IDENTITY to return identity values due to the following explanation from SQL Server 2008 Book Online -

“For example, there are two tables, T1 and T2, and an INSERT trigger is defined on T1. When a row is inserted to T1, the trigger fires and inserts a row in T2. This scenario illustrates two scopes: the insert on T1, and the insert on T2 by the trigger.

Assuming that both T1 and T2 have identity columns, @@IDENTITY and SCOPE_IDENTITY will return different values at the end of an INSERT statement on T1. @@IDENTITY will return the last identity column value inserted across any scope in the current session. This is the value inserted in T2. SCOPE_IDENTITY() will return the IDENTITY value inserted in T1. This was the last insert that occurred in the same scope. The SCOPE_IDENTITY() function will return the null value if the function is invoked before any INSERT statements into an identity column occur in the scope.”

Books Online further cautions that the value returned by these functions may be untrue if the INSERT operation has ended with an error -

“Failed statements and transactions can change the current identity for a table and create gaps in the identity column values. The identity value is never rolled back even though the transaction that tried to insert the value into the table is not committed. For example, if an INSERT statement fails because of an IGNORE_DUP_KEY violation, the current identity value for the table is still incremented. “

05 abril

How To Create and Inherit From A Base Web User Control

RuneStones

This is a tricky situation.The kind that we turn to runestones to unravel.

Problem - You can create a base User Control in a Windows Form project. Then, you can create another User Control that is inherited from the first quite easily by choosing Add New Item/Inherited User Control from your Solution Explorer (right click your project to get this menu). You cannot do the same for a Web User Control.

Now, why do you want to do this? Well, you’ll want to do this for the same reason you’ll want to create a base class in any other situation – you may wish to embed commonly used attributes and methods into the base class. Then, when you create sub-classes that inherit from it, you only need to write codes for pieces of specialized work that differ from the common functionalities.

Solution – The solution is actually quite simple. Follow these steps -

  1. Create your base class in the App_Code folder (right-click App_Code folder, select to create a Class)
  2. Ensure that your base class is implemented inside a namespace (begin the class declaration with a namespace.. statement and end it with an ..end namespace statement)
  3. Create your sub class and inherit it from the base class (assuming that your sub-class is a visible Web User Control for a DotNetNuke module, right-click on the DesktopModules folder, then select to create a new Web User Control. After it has opened, modify the Class declaration code for the new We User Control by changing the … inherits clause).

I got this solution from a response to a question.


04 abril

Checklist On Initiating A New DotNetNuke Module Project

Technorati Tags:

Aiman Transformer

What do you do when you have a request for a new DNN module? These are my recommended first actions to take:

  1. Get your basic DNN website running
  2. Make sure your DotNetNuke Visual Studio solution can compile correctly
  3. Create the Visual Studio directory framework for your new module
  4. Right-click on your Website directory and choose new DotNetNuke Dynamic Module
  5. Rename your App_Code and Desktop_Modules subdirectories
  6. More here (a pretty good tutorial for creating modules in C#)
  7. Create a basic test stub in your module. I recommend assessing a shared TEST table with some data in your DotNetNuke database. This forces you to
  8. Create a Data Access test stub
  9. Create a User Interface test stub
  10. Define the new module on your DotNetNuke Host/Module definitions page
  11. Run your test stubs in a page on your site

My recommendation is not to delay taking these steps even if you are busy. You are only ready to code when you have completed these steps properly. From my experience, when I delay taking these steps and the time to start coding creeps up on me, I find that sometimes I am taken by surprise that some of these things for the new modules do NOT work. Common problems, for some ghostly reason or another, are

  1. The database tables mismatch against the ones in the Data Access codes
  2. The DotNetNuke solution cannot be compiled (even though it used to be all okay!)
  3. The new module cannot be placed on a page

And then I wish I had taken these assurances well in time.

checklist-initiating-dotnetnuke-module-project

01 abril

Microsoft SQL Server Error 3154


If, like me, you are used to restoring databases by right-clicking the database in your SQL Server Enterprise Manager and then selecting Tasks/Restore, it may get a bit sticky when you try to restore a different database over another database.

Problem: When you do the above, you get an Error 3154, even after you have chosen the WITH REPLACE option on the Restore/Options tab.

Solution: Do NOT attempt to restore the database by right-clicking on the particular database name over which you wish to restore, instead right click on the Databases node in SQL Server Enterprise Manager, then choose Tasks/Restore Database. On the General Tab, make sure you choose the name of the database you wish to restore over and on the options tab, choose the WITH REPLACE option.

Powered by ScribeFire.


29 marzo

Unable to compile DotNetNuke 3.9 IFrames module

You may wish to fully qualify all references to DataProvider in the Iframes module to DotNetNuke.Modules.IFrame.Data.DataProvider

These are unlike references to DataProvider in the other modules which refer to DotNetNuke.Data.DataProvider (in DNN 3.9 you may wish to fully qualify them as well for a successful compile).

You should successfully compile your DNN 3.9 website after making these changes:

image

Adding non-VB modules to DNN

Problem: I had this error compiling my DotNetNuke 3.9 website - The file 'x' and 'y' use a different language, which is not allowed since they need to be compiled together.

Solution: Here are instructions on how to add modules in non-VB languages to a DotNetNuke website, from the LinqThings4Sale tutorial

1. In the web.config file, add the line

<add directoryName="yourDirectoryName" /> to the section <codeSubDirectories>.

For example, the section in my web.config file looks like this

<!-- register your app_code subfolders to generate granular assemblies during compilation -->
      <codeSubDirectories>
        <add directoryName="LinqThings4Sale"/>
        <add directoryName="Template"/>
        <add directoryName="KLIMS"/>
        <add directoryName="CommonEntities"/>
        <add directoryName="Employment"/>
      </codeSubDirectories>

2. Then, refresh your App_Code folder. The folders added to the above section should now have changed folder icons to reflect that they are special folders.

Powered by ScribeFire.

19 marzo

A Handy HTML Tag Reference

Summarized to a pageful that one most often needs.

Powered by ScribeFire.

Technorati Profile

How to catch DBNulls from .Net SQLRows

There's plenty of discussion on this out there. A Try..Catch block worked best for me. Since the error is thrown from the SQLRow innards, Convert.IsDBNull etc does not work.

Dim strRes As String = ""
            Dim a As New SqlDataAdapter("SELECT * FROM CMN_Settings WHERE SettingKey = '" & pKey & "'", Config.GetConnectionString("SiteSQLServer"))
            Dim d As New DSCommonEntities.CMN_SettingsDataTable
            a.Fill(d)
            If d.Rows.Count > 0 Then
                Dim r As DSCommonEntities.CMN_SettingsRow
                r = d.Rows(0)
                Try
                    strRes = r.setingValue
                Catch e As Exception
                    strRes = ""
                End Try
            End If
            Return strRes


Powered by ScribeFire.

A Compilable DotNetNuke 4.9

Provided on an "as is" basis, this is my working copy and although the DNN core had not been modified, it includes additional and developmental skins and modules.

14 marzo

Taskpool & XULRunner

Taskpool is a great, small application that helps you organize a to-do list and keep track of time spent on the to-do items. It runs on XULRunner, a revolutionary platform developed by the Mozilla community for executing lightweight XUL applications. See more sample XULRunner-based applications here.

12 marzo

Script.NET, S#, Zero footprint .NET Forms applications

A very interesting find on scripting! Here's a sample program by Piter.

And here's a very extensive article on creating a zero-footprint, web-deployed, Windows Form application.

Powered by ScribeFire.

09 marzo

Microsoft .Net Provider Classes - The Origin

A number of provider classes are provided by the Microsoft .Net platform. Sometimes it is useful to understand the logic behind these provider classes in order to understand the implemented framework. Here is an article that went back all the way to .Net Framework 1.1 when the Provider classes were being mooted out, which gives a good feel about the thinking behind these classes and the way they were implemented.

Here is an example of a Provider class that is commonly used in .Net website.

Technorati Tags:

Powered by ScribeFire.

19 mayo

How to install DotNet Nuke

Sometimes, finding an effective guide isn't easy. Here's one -
http://www.installationwiki.org/DotNetNuke
Technorati Tags: