Products

Solutions

Resources

Partners

Community

About

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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMapMapConversion from string "0500-01" to type Conversion from string "0500-01" to type 'Integer' is not valid.
Previous
 
Next
New Post
4/28/2009 3:59 PM
 

OK I think I've cracked it!

I've done a successfull test on my local dev environment under 5.0.1 and the immediate problem of not being able to add markers does not happen with the new DotNetNuke.Modules.Map.dll i have built.

However, now comes the tricky part. I don't have a production environment running 5.0.1 that I can test this on so I'm afraid it'll be down to you folks to test if it works on your installation. I have built a release version of the DLL and uploaded it in a zip file on my FTP server here. The username and password are the same - dnnMap (note the capital M!).

First, and most important, please back up your site. Obviously, you're agreeing to test this at your own risk and I accept no liability whatsoever for any problems with it so please don't skip the backup step!!

Next, replace the existing DotNetNuke.Modules.Map.dll in the bin folder of your website with the version in the Zip file.

You may need to restart your application using the HOST Settings screen before the new DLL is picked up but I'm hoping that once you recycle the site, you should be able to go in and add a marker on the Interface panel. Please can you check this, and also check that you can edit the marker after. Obviously, you should test as comprehensively as possible here as I have been focussed on this particular scenario and haven't been checking to see if anything else breaks. As I said before, I'm not part of the project team and don't have access to test scripts etc!

Anyway, please let me know if this works for you. There's a possibility I may need to rebuild a couple of other DLLs that depend on this but I'm not sure on this so I'll need your feedback!

Fingers crossed it works for you...


Regards,
Sean

www.puffettfoto.com
 
New Post
4/29/2009 3:27 PM
 

Great job Sean, it does in fact solve the issue for me. Thank you. Any chance you would share your changes immediately? I am making other changes to the module and I would like to integrate your modification into my code. Thanks again

 
New Post
4/30/2009 3:24 AM
 

Sean,

Many thanks. This has fixed the error adding a point using the interface screen on my DNN050001 portal, however when i try and add other points using the data screen, it shows "fetching data" but does not add the point. This used to work fine for adding multiple points on DNN040902.

 
New Post
4/30/2009 5:28 AM
 

XYZ XYZ wrote
 

Great job Sean, it does in fact solve the issue for me. Thank you. Any chance you would share your changes immediately? I am making other changes to the module and I would like to integrate your modification into my code. Thanks again

Yeah, no problem! The code changes take place in the ControlPanelBase.vb file in the setUrlControl and getUrlControl functions. You need to comment out the If CInt(..) line and add the following code to replace it:

' get application version
Dim strVersion As String
Dim arrVersion As Array = DotNetNuke.Common.Assembly.glbAppVersion.Split(CType(".", Char))
Dim intMajor As Integer = CType(arrVersion.GetValue((0)), Integer)
Dim intMinor As Integer = CType(arrVersion.GetValue((1)), Integer)
Dim intBuild As Integer = CType(arrVersion.GetValue((2)), Integer)
strVersion = intMajor.ToString + intMinor.ToString + intBuild.ToString

If CInt(strVersion) > 451 Then

Don't forget to replace it in both functions! I actually got this code from somewhere else in the source, or an earlier version of the map module. I actually can't remember - too many late nights


Regards,
Sean

www.puffettfoto.com
 
New Post
4/30/2009 5:31 AM
 

paul beckett wrote
 

Sean,

Many thanks. This has fixed the error adding a point using the interface screen on my DNN050001 portal, however when i try and add other points using the data screen, it shows "fetching data" but does not add the point. This used to work fine for adding multiple points on DNN040902.

Hi Paul, just have a check at the zoom values you have for the points you're trying to add. Are any of them non-zero? If so, can you change them all to be zeros and try again. This would be for both zoom and hide zoom values.

I only ask as I helped someone else who had a value of 15 and there's a problem in that there's no specific code in the source to pass these zoom values to the Google API's and it resulted in points not rendering for him.

If this doesn't help, can you tell me does the "Fetching Data..." stay on the bottom of the map, or does it disappear and leave no points visible?


Regards,
Sean

www.puffettfoto.com
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMapMapConversion from string "0500-01" to type Conversion from string "0500-01" to type 'Integer' is not valid.


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