Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Dotnetnuke module developmentDotnetnuke module development
Previous
 
Next
New Post
3/30/2006 8:58 PM
 


Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
4/4/2006 5:41 AM
 

Hi Adef

I tried  everything and failed. I have started from scratch again and again. I even downloaded the source code and have checked everything. Now it comes back to the same error.

A critical error has occurred.
Exception has been thrown by the target of an invocation.

I have checked that the database tables and stored procedures have been created. I am using sql server 2000 and visual studio 2005. I also want to know that when the website is built should the dll YourCompany.Modules.GuestBook in the bin folder. At the moment when i build the website i cannot find any traces of YourCompany.Modules.GuestBook dll's in the bin directory folder.

Please help!

 

 

 

 

 
New Post
4/4/2006 2:53 PM
 

You will not see a .dll. The new asp.net 2.0 compilation process doesn't create one.

1. If you delete the pages and folders you created, does the DotNetNuke website work?

2. Download the code from the link provided on the tutorial and use that as a guide.

3. You can also upload the PA (after you delete the pages and folders you created for the module). If it still doesn't work then the problem is your DotNetNuke site not the module.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
4/5/2006 7:21 AM
 

Hi Adef

I managed to get the module to work. The problem had something to do with the YourCompany_GuestBook table which i had to create manually. When i did create this table exactly to your specification in the tutorial  and saved it as YourCompany_GuestBook , i noticed it was the only table in the dotnetnuke database that did not have a (dbo) extension appended to it. For example : Vendor (dbo), UsersOnline (dbo).  I downloaded the source for the tutorial and found the  01.00.00.SqlDataProvider script.

I then deleted the YourCompany_GuestBook table which i initially created and ran the following part of the script in dotnetnuke sql command prompt.

 

IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'{databaseOwner}[{objectQualifier}YourCompany_GuestBook]') and OBJECTPROPERTY(id, N'IsTable') = 1)

DROP TABLE {databaseOwner}[{objectQualifier}YourCompany_GuestBook]

GO

CREATE TABLE {databaseOwner}[{objectQualifier}YourCompany_GuestBook] (

[ID] [int] IDENTITY (1, 1) NOT NULL ,

[ModuleID] [int] NULL ,

[Name] [nvarchar] (50) NULL ,

[Email] [nvarchar] (50) NULL ,

[Message] [nvarchar] (250) NULL ,

[DateEntered] [datetime] NULL

) ON [PRIMARY]

GO

ALTER TABLE {databaseOwner}[YourCompany_GuestBook] ADD

CONSTRAINT [PK_{objectQualifier}YourCompany_GuestBook] PRIMARY KEY CLUSTERED

(

[ID]

) ON [PRIMARY]

GO

 

After i ran the script a table with YourCompany_GuestBook (dbo) appeared in the dnn database and the module worked fine. I know i managed to get the module to work, but i don't understand how.

Why is it that when i created the table manually it did not work and it did not have the extension (dbo).

Can you enlighten me on this!

 

Kind Regards

 

 

 
New Post
4/5/2006 9:04 AM
 

I am glad you have it working and more importantly thank you for posting the solution.

The problem appears to be that you were not logged in as "dbo" (Data Base Owner) when you created the tables. I will update the tutorial to remind people to look for this.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Dotnetnuke module developmentDotnetnuke module development


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out