nmduc073 Gold Membership
 Nuke Active Member Posts:27

 |
| 7/23/2008 8:37 PM |
|
I want to create a new module for my personal site. When I researched, I found that I could build from Repository module. However, I want to put the source code of Repository module to my module. Is there any way to do that? Please help me. |
|
http://www.nguyenminhduc.net: My personal site |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12800


 |
| 7/24/2008 12:18 AM |
|
| You would download the repository source code and integrate it in manually. |
|
Scott McCulloch Site Administrator |
|
|
nmduc073 Gold Membership
 Nuke Active Member Posts:27

 |
| 7/24/2008 12:27 AM |
|
| I did it. I put them in MyRepVB module. I also changed the namespace of each file to MyRepVB. Then I created module definition. However, there are error when I run the module. THe error content is The type initializer for 'MyRepVB.DataProvider' threw an exception. |
|
http://www.nguyenminhduc.net: My personal site |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12800


 |
| 7/24/2008 12:41 AM |
|
| You probably really need to know what you are doing here, typically it's because the typeName of the data provider is incorrect. |
|
Scott McCulloch Site Administrator |
|
|
nmduc073 Gold Membership
 Nuke Active Member Posts:27

 |
| 7/24/2008 12:49 AM |
|
| You are correct. I tried to change DotNetNuke.Modules.Repository in objProvider = CType(Framework.Reflection.CreateObject("data", "DotNetNuke.Modules.Repository", "DotNetNuke.Modules.Repository"), DataProvider) to MyRepVB. And it threw that exception. What should I do? |
|
http://www.nguyenminhduc.net: My personal site |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12800


 |
| 7/24/2008 2:08 AM |
|
| Look at the object browser ctrl+alt+j to see if the assembly is called that type. |
|
Scott McCulloch Site Administrator |
|
|
nmduc073 Gold Membership
 Nuke Active Member Posts:27

 |
| 7/24/2008 2:25 AM |
|
| Can someone write a tutorial on how to customize an existing module, please? |
|
http://www.nguyenminhduc.net: My personal site |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12800


 |
| 7/24/2008 5:22 AM |
|
| It is more a visual studio setup issue then anything else. Why not just loadup the repository project and customise from there? |
|
Scott McCulloch Site Administrator |
|
|
nmduc073 Gold Membership
 Nuke Active Member Posts:27

 |
| 7/24/2008 5:56 AM |
|
| If I load up repository project, it means I have to use Repository folder. I make changes in that project. When I recompile, I have a custom Repository. However, the name isn't changed. As a result, I can't use orginal and my custom Repository module at the same time. |
|
http://www.nguyenminhduc.net: My personal site |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12800


 |
| 7/24/2008 6:04 AM |
|
Not if you rename the folder, module definitions, assembly name, etc. You probably need to know your way around module development to work this out, there is not much I can do on a forum to help. |
|
Scott McCulloch Site Administrator |
|
|
nmduc073 Gold Membership
 Nuke Active Member Posts:27

 |
| 7/24/2008 7:03 AM |
|
| Thank. I will try to find a way around. |
|
http://www.nguyenminhduc.net: My personal site |
|
|