georeference.org
Subscribe to this thread
Home - General / All posts - asp.net vb.net ajax IMS sample
jonno

337 post(s)
#26-Mar-07 10:42

Okay, it's not the best IMS I have ever done and I designed it about a year ago but it gives you a rough idea of how to interact with the Manifold Object Model in .net

It's meant to look like this:-

http://map-analysis.sequence.co.uk/health/

Attachments:
Health.zip


To err is human. To really foul things up requires a computer and a Very BIG Head

chrismarx

815 post(s)
#26-Mar-07 11:35

great!! it's so nice to see an ims that doesn't have the page reloading. one quick question, what's the role for the web.config file? i dropped the whole example on to my testing server and the page is failing to load because of a line in this file. thanks again!!

KlausDE


3,275 post(s)
#26-Mar-07 14:12

Response time really makes a difference. And I like that functions ment to be used alternativly are controled by a Combobox and do not swamp the site.

Chris, here is a little entering to the web.config. As long as you can't offer a table or view [kayt01].[Health] on a SQL Server the ConnectionString defined in line 13 is invalid. Here authentication and authorization that web.config could organize are not used.

jonno

337 post(s)
#27-Mar-07 00:57

Further to Klaus' explanation of what is going on - namely my lack of attention to detail - please delete this section in the web.config file:-


To err is human. To really foul things up requires a computer and a Very BIG Head

chrismarx

815 post(s)
#27-Mar-07 07:54

hi, thanks for the info. deleting that section was actually the first thing i tried, but that just resulting in other errors with other sections of the web.config after reading through Klaus' link, i still don't really where the web.config file is being called from. anybody else try to get this example to work on their own system?

jonno

337 post(s)
#27-Mar-07 08:02

chris,

What were the other errors? The web config file is a system file in asp.net and gets called automatically.

The only other potential error I can think of is when it tries to load the manifold object - which version do you have??

Jonathan


To err is human. To really foul things up requires a computer and a Very BIG Head

chrismarx

815 post(s)
#27-Mar-07 08:15

if i remove that line, it fails on

Line 12: --Unrecognized configuration section 'connectionStrings'

if i remove the connectionstrings tags i get

Line 53: ---It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.

at that point, i didn't really know where to go from there-

jonno

337 post(s)
#27-Mar-07 08:25

Okay - have you got it set up properly in IIS ?? It sounds like you haven't got it set up as a virtual directory

Jonathan

Also - changing "Windows" to "Forms" should work


To err is human. To really foul things up requires a computer and a Very BIG Head

SeaTrails
849 post(s)
#27-Mar-07 08:37

I downloaded it, set up an IIS application, set all the rights for Inet_user to full, removed the assemblies section, and re-added a reference to the 3.5 type library. Then it worked like a charm.

<?xml version="1.0"?>

jonno

337 post(s)
#27-Mar-07 08:36

Who is this guy - he seems to know more than all of put together??


To err is human. To really foul things up requires a computer and a Very BIG Head

SeaTrails
849 post(s)
#27-Mar-07 08:39

Thanks, but you should see my British Secret Weapon can do!

mdsumner


2,971 post(s)
#27-Mar-07 13:58

Who is this guy - he seems to know more than all of put together?? Oh I want quotations back in the forum . . .


cuda shuda wuda

jonno

337 post(s)
#27-Mar-07 14:15

Nothing quite like a generic bit of buttering up!!


To err is human. To really foul things up requires a computer and a Very BIG Head

qwasdo101 post(s)
#28-Mar-07 15:16

OK Mike, you are also one of the Big 5. You can chose between lion, leopard, cheetah, black rhino and elephant. I forgot, you are an Ozzy, aren't ya? So it's white shark, taipan snake, tasmanian devil, beast of bourbon or flying milkman. (Sorry; for my excuse, it's Feierabend in Germany by now, I'm out of duty and have a glass of jummy OZ Shiraz to your health.)

Bernd

mdsumner


2,971 post(s)
#28-Mar-07 16:15

Hey I wasn't fishing, but since you've asked: I suppose we should make it elephant seal. Feierabend


cuda shuda wuda

BUITENDYKW63 post(s)
#27-Mar-07 10:03

Thanks for the example Jonno. It will help me as a reference in my own design.

Just curious, the link you gave for what I assume is the production run (http://map-analysis.sequence.co.uk/health/) - is it disconnected from App_Data? It seems that changing the parameters and then hitting the 'Change Map' button is not changing anything.

Also, I had to change the smtp server in the default.aspx.vb file from localhost to my isp smtp mailserver to work properly (I used my own email as well). However, I'm sure you are getting quite a few emails:)

Cheers

jonno

337 post(s)
#27-Mar-07 10:13

It should be working properly - there is data in an xml file and the manifold file which the system uses - it's probably just down to the "hues of blue" that I am using for the theming

re smtp server: See the above comment about my lack of attention to detail - that was just a way for me get notified if anyone visited the site - you can comment it out to your heart's content!!


To err is human. To really foul things up requires a computer and a Very BIG Head

Kenneth55 post(s)
#27-Aug-08 16:13

Hi Jonno,

I tried your website.

I can run it in Visual Web Developer, the http address shown as http://localhost:3532/Health, and the web display properly.

But when I try to access by ip address such as http://10.0.1.3/Health, It doen't work.

What is the 3532, and why i cannot access with ip address? Thank you

vincent

635 post(s)
#27-Aug-08 16:36

And if you try something like http://10.0.1.3:3532/Health ?

3532 is a port number.


IMS codes, trainings and programming services available at www.dynamicmaps.net

Kenneth55 post(s)
#27-Aug-08 19:58

Solved.

I did not configure the ASPNET.

Need to run aspnet_regiis to register Aspnet for IIS.

0 msec Copyright (C) 2007-2008 Manifold.net. All rights reserved.