Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  C# Module Template errors
Previous Previous
 
Next Next
New Post 11/9/2007 12:14 PM
Unresolved
User is offline Eric Piraux
19 posts
10th Ranked


C# Module Template errors 

When creating a new module using the module template , using C" as language, the produced code has twoo syntax errors:

  • Error    102    Newline in constant    C:\..\SqlDataProvider.cs    73    17   
  • Error    103    Too many characters in character literal    C:\..\SqlDataProvider.cs    73    17   

Here's where the code is wrong:

If (_connectionString.Length == 0) 
            {
                ' Use connection string specified in provider
                _connectionString = objProvider.Attributes["connectionString"];
            }

The If must be in lowercase: if

The ' for commenting must be //

It seems clear that those errors comes from the translation VB->C# :-)

 

Eric

 
New Post 11/11/2007 7:51 AM
User is offline Rafe Kemmis
75 posts
www.kemmis.info/blog/
10th Ranked


Re: C# Module Template errors 

Yes, it seems silly that they would release code that doesn't compile. If you use this template often you might want to modify the original files inside the Module_CS.zip file in order to fix the syntax errors. On my (vista) machine I found the file here:

C:\Users\YOUR USERNAME\Documents\Visual Studio 2008\Templates\ItemTemplates\Visual Web Developer\

and here:

C:\Users\YOUR USERNAME\Documents\Visual Studio 2005\Templates\ItemTemplates\Visual Web Developer\CSharp\

 
New Post 11/11/2007 8:32 AM
User is offline Sebastian Leupold
13746 posts
www.deutschnetnuke.de
1st Ranked












Re: C# Module Template errors 

please log this in the public issue tracker at support.dotnetnuke.com


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 11/11/2007 8:47 AM
User is offline Rafe Kemmis
75 posts
www.kemmis.info/blog/
10th Ranked


Re: C# Module Template errors 

Sebastian,

I have seen this problem logged in the bug tracker several times... It is such a trivial problem that I think it has been pushed aside for months and months.

Should a new entry be made for this, or is there a way for me to "confirm" the presence of this bug in an existing bug log entry?

Rafe

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  C# Module Template errors
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


PointClick.Net DNN Solutions
DotNetNuke Hosting Platform for Business and personal use.
PointClick.Net Hosted Solutions
Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP