[mapguide-users] Re: PLease Help He

Ivan Miličević ivan at ineo.hr
Tue Jul 4 03:50:55 EDT 2006


https://mapguide.osgeo.org/docs/BuildConfigureMgOpenSourceOnWindows.pdf

 

Did you follow instructions in this file?

 

What is your system configuration? OS?

 

  _____  

From: sukalyan chakraborty [mailto:chakraborty.sarkar at gmail.com] 
Sent: 4. srpanj 2006 7:53
To: users at mapguide.osgeo.org
Subject: Re: [mapguide-users] Re: PLease Help He

 

Yes the problem solved now next problem 

 

Resource was not found:
Library://Samples/Sheboygan/Layouts/SheboyganAsp.WebLayout
Resource was not found:
Library://Samples/Sheboygan/Layouts/SheboyganAsp.WebLayout Exception
occurred in method MgResourceDefinitionManager.GetDocument at line 483 in
file
c:\build_tux_area\mgdev\server\src\services\resource\ResourceDefinitionManag
er.cpp 

 

now if i go to load the resource using

 

http://localhost/mapguide/mapadmin/login.php

 

Using Administrator & admin as uname & pass

 

It gives the another error:

 


Fatal error: Call to undefined function MgInitializeWebTier() in C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\mapadmin\login.php on line
68
 

Please Help Me Again.

 

On 7/4/06, Andy Morsell <amorsell at spatialgis.com> wrote: 

Try adding C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\mapviewernet\bin to your
Windows path, reboot, and try again. 

 

Andy 

  _____  

From: sukalyan chakraborty [mailto:chakraborty.sarkar at gmail.com] 

Sent: Monday, July 03, 2006 10:12 PM


To: users at mapguide.osgeo.org

Subject: SPAM-LOW: [mapguide-users] Re: PLease Help He

 

Hi 

 

I'm Tll now facing same problems.

Is there any more solution ???

 

I've checked the framework version & keeping the bin folder inside the
samples

& also keeping the all dlls open from  the bin folder.

 

Inspite of that i'm getting same error.

 

On 6/30/06, sukalyan chakraborty <chakraborty.sarkar at gmail.com
<mailto:chakraborty.sarkar at gmail.com> > wrote: 

please help me...

 

 

When I'm Running pages from MGStudio then it is running fine but 

If I running like

 

http://localhost/mapguide/dotnetviewersample/ajaxtiledviewersample.aspx 

or

http://localhost/mapguide/dotnetviewersample/dwfviewersample.aspx 

then getting the error


I'm using Framework v2.0.50727


Server Error in '/mapguide' Application. 



  _____  



Compilation Error 


Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately. 

Compiler Error Message: CS0246: The type or namespace name 'OSGeo' could not
be found (are you missing a using directive or an assembly reference?)

Source Error:


 


Line 17: <%@ Import Namespace="System.Collections" %>
Line 18: <%@ Import Namespace="System.IO" %>
Line 19: <%@ Import Namespace="OSGeo.MapGuide" %>
Line 20: <script language="c#" runat="server">
Line 21: 


Source File: c:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample\utilityf
unctions.aspx    Line: 19 



Show Detailed Compiler Output:

 


C:\WINDOWS\system32> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe"
/t:library /utf8output
/R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11
d50a3a\System.EnterpriseServices.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a
3a\System.Web.Services.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50
a3a\System.Configuration.dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll
"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System
.Xml.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.
Data.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a
\System.Web.Mobile.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\Sy
stem.Drawing.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.W
eb.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary 
ASP.NET <http://asp.net/>
Files\mapguide\6330db03\7cea0d17\App_Web_ajaxtiledviewersample.aspx.305c7238
.rr15dqlk.dll" /debug- /optimize+
/win32res:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary 
ASP.NET <http://asp.net/>  Files\mapguide\6330db03\7cea0d17\3tjlg3zd.res"
/w:4 /nowarn:1659;1699
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary 
ASP.NET <http://asp.net/>
Files\mapguide\6330db03\7cea0d17\App_Web_ajaxtiledviewersample.aspx.305c7238
.rr15dqlk.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary 
ASP.NET <http://asp.net/>
Files\mapguide\6330db03\7cea0d17\App_Web_ajaxtiledviewersample.aspx.305c7238
.rr15dqlk.1.cs"
 
 
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
 
c:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample\utilityf
unctions.aspx(19,11): error CS0246: The type or namespace name 'OSGeo' could
not be found (are you missing a using directive or an assembly reference?)
c:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample\utilityf
unctions.aspx(39,24): error CS0246: The type or namespace name 'MgMap' could
not be found (are you missing a using directive or an assembly reference?)
c:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample\utilityf
unctions.aspx(39,1): error CS0246: The type or namespace name 'MgLayer'
could not be found (are you missing a using directive or an assembly
reference?)
c:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample\utilityf
unctions.aspx(55,26): error CS0246: The type or namespace name
'MgByteReader' could not be found (are you missing a using directive or an
assembly reference?)

 

Show Complete Compilation Source:

 


Line 1:    <%--
Line 2:    Copyright (C) 2004-2006  Autodesk, Inc.
Line 3:    This library is free software; you can redistribute it and/or
Line 4:    modify it under the terms of version 2.1 of the GNU Lesser
Line 5:    General Public License as published by the Free Software
Foundation.
Line 6:    
Line 7:    This library is distributed in the hope that it will be useful,
Line 8:    but WITHOUT ANY WARRANTY; without even the implied warranty of
Line 9:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Line 10:   Lesser General Public License for more details.
Line 11:   
Line 12:   You should have received a copy of the GNU Lesser General Public
Line 13:   License along with this library; if not, write to the Free
Software
Line 14:   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301  USA
Line 15:   --%>
Line 16:   
Line 17:   <%@ Import Namespace="System.Collections" %>
Line 18:   <%@ Import Namespace="System.IO" %>
Line 19:   <%@ Import Namespace="OSGeo.MapGuide" %>
Line 20:   <script language="c#" runat="server">
Line 21:   
Line 22:   NameValueCollection GetParameters()
Line 23:   {
Line 24:       return Request.HttpMethod == "GET" ? Request.QueryString :
Request.Form;
Line 25:   }
Line 26:   
Line 27:   void InitializeWebTier()
Line 28:   {
Line 29:       // Initialize web tier with the site configuration file.  The
config
Line 30:       // file should be in the same folder as this script.
Line 31:       //
Line 32:       string realPath =
Request.ServerVariables["APPL_PHYSICAL_PATH"];
Line 33:       String configPath =  realPath + "webconfig.ini";
Line 34:       MapGuideApi.MgInitializeWebTier(configPath);
Line 35:   }
Line 36:   
Line 37:   // Searches the map for a layer with the specified name.
Line 38:   
Line 39:   MgLayer GetLayerByName(MgMap map, String layerName)
Line 40:   {
Line 41:       MgLayer layer = null;
Line 42:       for (int i = 0; i < map.GetLayers().GetCount(); i++)
Line 43:       {
Line 44:           MgLayer nextLayer = map.GetLayers().GetItem(i);
Line 45:           if (nextLayer.GetName() == layerName)
Line 46:           {
Line 47:               layer = nextLayer;
Line 48:               break;
Line 49:           }
Line 50:       }
Line 51:       return layer;
Line 52:   }
Line 53:   
Line 54:   // Read the content from an MgByteReader and send it back as the
response.
Line 55:   void OutputReaderContent(MgByteReader byteReader, HttpResponse
response)
Line 56:   {
Line 57:       MemoryStream memBuf = new MemoryStream();
Line 58:   
Line 59:       byte[] byteBuffer = new byte[1024];
Line 60:       int numBytes = byteReader.Read(byteBuffer, 1024);
Line 61:       while(numBytes > 0)
Line 62:       {
Line 63:           memBuf.Write(byteBuffer, 0, numBytes);
Line 64:           numBytes = byteReader.Read(byteBuffer, 1024);
Line 65:       }
Line 66:   
Line 67:       response.ContentType = byteReader.GetMimeType();
Line 68:       byte [] content = memBuf.ToArray();
Line 69:       response.OutputStream.Write(content , 0, content.Length);
Line 70:   }
Line 71:   
Line 72:   </script>
Line 73:   

 

  _____  

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
<http://asp.net/>  Version: 2.0.50727.42 





 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060704/4a889eaa/attachment.html


More information about the Mapguide-users mailing list