This project is read-only.

Artem is undefined when published

Oct 7, 2009 at 5:59 PM

Artem Control in my project is very good worked but in local server mode!

but when i publish and upload files on the server then Artem Control does not work (tested with Chrome,IE7,Firefox)!

My Api key is true and i use .Net framework 3.5 with VS 2008 on a .Net 3.5 Host server.

please help me to true this!

Oct 8, 2009 at 6:38 AM
Edited Oct 8, 2009 at 6:47 AM


<%@ Page Language="C#" AutoEventWireup="false"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "">
<html xmlns="" xmlns:v="urn:schemas-microsoft-com:vml">

<head runat="server">
    <title>Artem Test</title>
    <form id="form1" runat="server">
 <artem:GoogleMap ID="GoogleMap1" runat="server" Width="500px" Height="600px" Key="<Censored Key>"
 Latitude="32" Longitude="42">

when i publish this project to my domain i receive this error:

-- Microsoft JScript runtime error: 'Artem' is undefined --

in debug mode this error occured in "var GoogleMap1 = new Artem.Web.GoogleMap({ ...... " line.

<script type="text/javascript">
var GoogleMap1 = new Artem.Web.GoogleMap({"Address":null,"BaseCountryCode":null,"ClientID":"GoogleMap1","ClientMapID":"GoogleMap1","DefaultAddress":null,"DefaultMapView":0,"Directions":[],"EnableContinuousZoom":false,"EnableDoubleClickZoom":false,"EnableDragging":true,"EnableGoogleBar":false,"EnableInfoWindow":true,"EnableMarkerManager":false,"EnableReverseGeocoding":false,"EnableScrollWheelZoom":false,"Height":"600px","IsStreetView":false,"IsStatic":false,"Key":"<Censored Api Key>","Latitude":32,"Longitude":53,"MapEvents":{},"MarkerEvents":{},"PolygonEvents":{},"PolylineEvents":{},"ShowMapTypeControl":true,"ShowScaleControl":false,"ShowTraffic":false,"StreetViewMode":0,"StreetViewPanoID":null,"Width":"500px","Zoom":4,"ZoomPanType":0});

Please Help me!


Oct 10, 2009 at 7:35 AM


So, I took a look at your online page.
The JS include of the embedded GoogleMap control scripts is there:
<script src="/WebResource.axd?d=lQ8lCFJBcoFfrzxjw9WUuC4oetThLTvt4iTIzQdBthO_1Wx46uwa_r6C0hQScaQBXB7z_OtS4CvZYl0Gk1UndO1sN8UCT4yuMW5vhJKletI1&t=633906364654027397" type="text/javascript"></script>

The server response to that is:

<html><head><title>Error</title></head><body>The system cannot find the file specified.

So, for some reason the server cannot find the embedde JS resource of the GoogleMap control.
The reason for that could be:

  • Artem.GoogleMap.dll is not presented in your website Bin folder;
  • GoogleMap control assembly is not registered in your web.config file. You should have in your online web.config file, under /configuration/system.web/pages/controls, next line:
    <add tagPrefix="artem" namespace="Artem.Web.UI.Controls" assembly="Artem.GoogleMap"/>

Hope this helps.

Oct 15, 2009 at 8:24 PM

thanks for your reply

unfortunately i could not run my web page with Artem control when published!"

when i add Googlemap control in default.aspx VS2008 project i see an error on control rectangle that is:

"Error Creating Control - artem:googlemap

Request is not available in this context"

may be this caused a solution for my problem with Artem on published state!????

Mar 2, 2011 at 11:57 AM

For me it was because my .Net redirector on v4 was redirecting WebResource.axd to some other page.