[ZS2] Re: [mapguide-users] asp site setup

ed57gmc-bus at yahoo.com ed57gmc-bus at yahoo.com
Thu Jan 15 16:04:30 EST 2009


Sounds like it will. I believe the only folder in mapguide I really need to include in the vs project is one similar to mapviewernetsample so that I can write code in the weblayout.
 
Ed Jobe




________________________________
From: "Kenneth Skovhede, GEOGRAF A/S" <ks at geograf.dk>
To: MapGuide Users Mail List <mapguide-users at lists.osgeo.org>
Sent: Thursday, January 15, 2009 12:56:56 PM
Subject: Re: [ZS2] Re: [mapguide-users] asp site setup

IMO, using the built in ASP server only hides a lot of problems that occur when deploying the site to IIS.
As annoying as it may be to strugle with IIS during development, its even worse to do so AFTER the project is completed.

If you can help it at all, you should not mix the files from the MapGuide install with your own files at all.
If you do, upgrading will be a real pain.

You can register a virtual directory under the mapviewernet folder, but you have to do it in more steps:
1. Create the VS solution on the IIS
2. Open IIS admin
3. Create the new virtual dir in IIS under the "mapviewer" folder (or anywhere you like).
4. On the properties pages, change the url to point to the new location.

You can now reference you ASPX files from the WebLayout using relative paths.

Will that help you accomplish what you want?

Regards, Kenneth Skovhede, GEOGRAF A/S


Ed Jobe skrev: 
Well, I'm new to asp, so maybe I'm not doing something right. What I'm trying to set up is a site at C:\inetpub\wwwroot where the main asp site lives but with mapguide as part of the solution so that users who login to the main site will already be logged in to mapguide. I also want to have a parallel site for development. But I don't want to copy all the mapguide stuff, just the www folder. However, my first attempt at this returned a lot of compile errors for broken links.

I started server development by getting mapguide up and running. Now I need to focus on getting the main site up and integrated with mapguide. My VS project only showed regular folders under wwwroot. It didn't show the virtual folder for mapguide. So I tried opening mapguide as a site, but VS only sees that as a regular site. IOW, if I want to add a new page to the mapguide application, only html page templates are shown. None of the asp templates show up. I can't find a way in IIS or VS to turn an existing application into an asp application. BTW, I'm using IIS7 on Server2008 and VS 2008. 

So I'm still struggling with the concepts of good site organization. The asp guides I've seen so far only show you how to create a new site under wwwroot. I can't find anything that speaks about best practices for site organization and development and then publishing. Once I get over that, coding should be a breeze.
 
Ed Jobe




________________________________
From: "Kenneth Skovhede, GEOGRAF A/S (via Nabble)" <ml-user+64672-1813992732 at ...>
To: Ed Jobe <ed57gmc-bus at ...>
Sent: Thursday, January 15, 2009 2:35:23 AM
Subject: Re: [mapguide-users] asp site setup

Short answer: yes, it is possible. 

But you will have to manually set up the PHP and mapagent.fcgi mappings 
in IIS 
on the new location. 
The steps here should explain what you need to setup in the new location: 
http://trac.osgeo.org/mapguide/wiki/MGOS2onVistaIIS7

I can't think of  a situation where you would think this was a better 
solution though. 
Could you elaborate on the kind of trouble you have? 

Regards, Kenneth Skovhede, GEOGRAF A/S 



Ed Jobe skrev: 
> I'm having difficulty setting up the organization of my asp website. I keep 
> running into issues due to having the Mapguide www folder in Program Files. 
> Is is possible to move this folder to my inetpub folder? 
>   
> Ed Jobe 
> 
>   
_______________________________________________ 
mapguide-users mailing list 
mapguide-users at ... 
http://lists.osgeo.org/mailman/listinfo/mapguide-users


________________________________

This email is a reply to your post @ http://n2.nabble.com/asp-site-setup-tp2152742p2161751.html
You can reply by email or by visting the link above.


________________________________
View this message in context: Re: [mapguide-users] asp site setup
Sent from the MapGuide Users mailing list archive at Nabble.com.


________________________________

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090115/080c5de3/attachment.html


More information about the mapguide-users mailing list