Unable to create InstallScripts for new feature module

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/11/2008 5:46:35 AM
Gravatar
Total Posts 16

Unable to create InstallScripts for new feature module

hii joe,

I'm again stucked while developing news feature module for my website. I could solve those previous errors mentioned in my earlier posts to build the project successfully but my install scripts are not generated now.I'm using the xcopy post build events and it says files copied, during the build but no scripts have been generated and also there are no SchemaInstallScripts and SchemaUpgradeScripts folders created in root folder web/setup/applications/news,only feature definitions folder could be seen. I'm using source from SVN trunk and did SVN update and build the project but could not solve the problem.

Please help me.

 

Thanks

Priya

8/11/2008 6:02:23 AM
Gravatar
Total Posts 18439

Re: Unable to create InstallScripts for new feature module

No scripts are generated for you, you have to create them and put them in the folders in your custom project so that they do get copied to the web setup folders.

You can generate them using MS SQL Management Studio. Right click your db and choose generate scripts. Set the Use Database to false and choose SQL 2000 compatibility, then choose your procedures and tables. Save the script as 0.0.0.1.config in the SchemaInstalScripts/mssql folder of your custom project. As you make changes to the db over time you script off just the changes and increment your version 0.0.0.2.config and put in SchemaUpgeadeScripts/msssql

Hope it helps,

Joe

8/11/2008 8:45:19 AM
Gravatar
Total Posts 16

Re: Unable to create InstallScripts for new feature module

hii joe,

Thanks for quick response. I forgot to mention in the last post that I was unable to create stored procedures and tables for my custom feature. I misunderstood that it was the problem with 0.0.0.1.config file, so only I was unable to create tables and stored procedures.I just copied 0.0.0.1.config file also from source and was trying to execute. In which file exactly stored procedures will be generated(In general)? I'm dumb. Please have a patience to solve my problem.

 

Thanks

Priya

8/11/2008 8:55:01 AM
Gravatar
Total Posts 18439

Re: Unable to create InstallScripts for new feature module

There is nothing to generate a feature for you nor to create tables for you. If you create a table in the database for your feature you can then generate a table creation script for it using MS SQL Management Studio and this can be part of your install script. If you have Codesmtih tools, you can generate stored procedures by pointing a codesmith template at your MS SQL table. I include Codesmith templates in the source under the Codesmith templates folder. However these stored procedures are just for basic stuff and really are meant only as a starting point to save some typing. If you don't understand the generated sql or other code from using Codesmtih then you are just over your head and need to learn a lot of foundation before you can easily do development with mojoportal.

You are assuming too much is done for you. You need to learn a lot of things to do ASP.NET development. I cannot help you much if you don't have the requisite knowledge.

Best,

Joe

8/13/2008 12:05:21 AM
Gravatar
Total Posts 16

Re: Unable to create InstallScripts for new feature module

hii joe,

I'm using the source code given by Asad for creating news module, That is why I had asked you about generating tables and stored procedures. I assumed that code could do everything. Now I solved the problem by generating them myself. I could install the new feature now but while adding content to my page I'm facing the following error.

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The base class includes the field 'UpdatePanel1', but its type (System.Web.UI.UpdatePanel) is not compatible with the type of control (System.Web.UI.UpdatePanel).

Source Error:

Line 16: </div>
Line 17: <asp:Panel ID="pnlCategories" runat="server" CssClass="settingrow" >
Line 18: <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
Line 19: <ContentTemplate>
Line 20: <div class="settingrow">

I know that it is due to version compatibility of System.Web.Extensions assembly. I'm using Visual Studio 2008, .NET framework 3.5. so now I changed the target framework of my project to .NET 2.0 and modified web.config file according to it.But still I'm unable to solve it. I installed AjaxExtensions 1.0.

Please help me out.

Thanks

Priya

8/13/2008 12:43:42 PM
Gravatar
Total Posts 18439

Re: Unable to create InstallScripts for new feature module

I include the correct version of System.Web.Extensions.dll referenced from the _libs folder. Make sure the custom forum project doesn't include one, it may be overwriting my good one with an older version when it gets copied to Web/bin. I have not even looked at that project as I do not have time.

Hope it helps,

Joe

8/28/2008 1:36:21 AM
Gravatar
Total Posts 26

help

hi priya ..

actually i m looking for some developer from india ..your name sounds like an indian ..plz give me your mail id ..i hav some issue with coding i will clarify tht with u..if u allow for the same..

waititng for a reply from ur side..

if u want to help me .plz mail me at..vsranjane@gmail.com

You must sign in to post in the forums. This thread is closed to new posts.