[mapguide-users] InitializeWebTier
Jackie Ng
jackie.ng at aecsystems.com.au
Thu Feb 28 01:36:56 EST 2008
Oh, and the folder you put your code in, make sure it is configured as an
application in IIS targeting ASP.net 2.0
- Jackie
Jackie Ng wrote:
>
> InitializeWebTier() is defined in the utilityfunctions.aspx that you
> omitted from inclusion.
>
> The reason you are getting errors in are probably because of:
>
> - You are using frames (evil, but unavoidable since that's how the AJAX
> viewer was designed). Visual Studio has no designer support for
> frames/framesets and can throw false errors, and most of the time these
> are non-fatal validation errors becuase you are validating a frameset
> document with a non-frameset doctype.
>
> - You are probably running your asp.net application with Visual Studio's
> built in webserver (Cassini), this will NOT WORK because it requires
> access to the mapviewernet and mapagent directories that Cassini does not
> and will not know about. You must configure your project to launch in IIS.
>
> - All the sample code is inline like classic asp, which goes against the
> common asp.net code-behind model, making it hard to "copy and paste" to
> your asp.net projects.
>
> - The dotnetviewersample was done with the expectation that it is to be
> deployed in the www folder of your MGOS installation (because it is
> hardcoded to look for webconfig.ini in that folder). If you have copied
> the dotnetviewersample, file-by-file, line-by-line it will probably fail
> if it is not inside the www folder.
>
> So my recommendation is:
>
> - Put your code in a folder inside MapGuide's www directory.
> - Put that include utilityfunctions.aspx line back in.
> - Ignore any non-compliation errors Visual Studio throws at you.
>
> Hope that helps.
>
> - Jackie
>
>
> swetha1 wrote:
>>
>> Hi,
>>
>> I am trying to open this dotnetviewersample in Visual studio, It is
>> giving an error in the utilityfunction.aspx....so i created my own
>> project where in i pasted the code from ajaxviewersample and deleted the
>> line #include file="utilityfunctions.aspx"......and tried calling the
>> weblayout in that file.... where it is giving the error in
>> initializewebtier().....cant understand what to do and how to proceed
>> with...
>>
>>
>
>
--
View this message in context: http://www.nabble.com/InitializeWebTier-tp15729918s16610p15730590.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list