Re: [mapguide-users] Application develop environment

2007-11-14 Thread Gunter Becker

I found out that my application works when I put the error throwing code in
try-catch blocks. Every time I put another piece of code into a try-catch
block there is another error message which begin with "Failed to retrieve
message for ...". It seems that the error isn't critical for the application
and only belongs to haven't access to the file that stores the error
messages.

So, I suppose that MapGuide couldn't find the ResourcesPath in the
webconfig.ini. Is someone out there who agree with me? Like I've said in my
previous message I don't know if it must be an absoulte path or an UNC-Path.
Could it be that it doesn't work at all.

Maybe the correct develop environment is like that:

First machine: Webapplication + MapGuide WebExtensions
Second machine: MapGuide Server

I've seen a similar post in the Autodesk Discussion Group that discribes the
same problem but also with no solution:
http://discussion.autodesk.com/thread.jspa?messageID=5622633
MgInitializeWebTier - crashes  

I can't believe that there is no one out there who have webapplication and
MapGuideOpenSource installed on different computers. There must be someone.
I think it doesn't make sense to have all application on the same machine
with regard to load balancing and performance.

Gunter
-- 
View this message in context: 
http://www.nabble.com/Application-develop-environment-tf4796625s16610.html#a13744430
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Application develop environment

2007-11-13 Thread Gunter Becker

Yes, configPath points to my webconfig.ini.
(C:\inetpub\wwwroot\MainWeb\webconfig.ini)
And I've also tested Page.ResolveUrl(). That's OK.

By the way, can I have that UNC-Path or must it be the default path (local
path) as seen from WebExtension on the server? Does my application need to
reference these files?

Gunter










Jackie Ng wrote:
> 
> Does configPath actually point to your webconfig.ini?
> 
> It could be that it's looking for webconfig.ini in the "temporary asp.net
> files" folder.
> 
> Have you tried Page.ResolveUrl() for the webconfig.ini path?
> 
> - Jackie
> 
> 
> Gunter Becker wrote:
>> 
>> Hi,
>> 
>> I wonder how to set up my develop environment. I'd like to have my
>> webapplication on a different computer (on my client machine) than the
>> MapGuide OpenSource Software (on the server).
>> Currently I'm developing with Visual Studio and the .NET Framework. I
>> copied the required dll's into the bin folder and also copied the
>> "webconfig.ini" to my webapplication (into the root directory). 
>> In the "webconfig.ini" I've done the following changes.
>> 
>> - changed the IpAddress-Parameter under [SiteConnectionProperties] to the
>> servers IP
>> - changed the ResourcesPath to an UNC-Path to Resource folder
>> (\\vm-mgos\MapGuideOpenSource\WebServerExtensions\www\mapagent\Resources)
>> 
>> So, most time this works for me but sometimes I notice this exception:
>> 
>> - Failed to retrieve message for "MgFileIoException". (happens at
>> MapGuideApi.MgInitializeWebTier(configPath))
>> 
>> Are there some other settings I have to do?
>> 
>> Gunter
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Application-develop-environment-tf4796625s16610.html#a13722950
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Application develop environment

2007-11-13 Thread Jackie Ng

Does configPath actually point to your webconfig.ini?

It could be that it's looking for webconfig.ini in the "temporary asp.net
files" folder.

Have you tried Page.ResolveUrl() for the webconfig.ini path?

- Jackie


Gunter Becker wrote:
> 
> Hi,
> 
> I wonder how to set up my develop environment. I'd like to have my
> webapplication on a different computer (on my client machine) than the
> MapGuide OpenSource Software (on the server).
> Currently I'm developing with Visual Studio and the .NET Framework. I
> copied the required dll's into the bin folder and also copied the
> "webconfig.ini" to my webapplication (into the root directory). 
> In the "webconfig.ini" I've done the following changes.
> 
> - changed the IpAddress-Parameter under [SiteConnectionProperties] to the
> servers IP
> - changed the ResourcesPath to an UNC-Path to Resource folder
> (\\vm-mgos\MapGuideOpenSource\WebServerExtensions\www\mapagent\Resources)
> 
> So, most time this works for me but sometimes I notice this exception:
> 
> - Failed to retrieve message for "MgFileIoException". (happens at
> MapGuideApi.MgInitializeWebTier(configPath))
> 
> Are there some other settings I have to do?
> 
> Gunter
> 

-- 
View this message in context: 
http://www.nabble.com/Application-develop-environment-tf4796625s16610.html#a13722662
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users