Click here to Skip to main content
15,886,748 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
ZurdoDev3-Feb-20 5:35
professionalZurdoDev3-Feb-20 5:35 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
Stephen Holdorf3-Feb-20 5:48
Stephen Holdorf3-Feb-20 5:48 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
ZurdoDev3-Feb-20 5:56
professionalZurdoDev3-Feb-20 5:56 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
Stephen Holdorf3-Feb-20 7:09
Stephen Holdorf3-Feb-20 7:09 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
ZurdoDev3-Feb-20 7:28
professionalZurdoDev3-Feb-20 7:28 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
Stephen Holdorf3-Feb-20 7:34
Stephen Holdorf3-Feb-20 7:34 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
ZurdoDev3-Feb-20 7:41
professionalZurdoDev3-Feb-20 7:41 
QuestionF12 console JavaScript browser errors when browsing to a WIndows 2012 website Pin
Stephen Holdorf1-Feb-20 9:52
Stephen Holdorf1-Feb-20 9:52 
I have deployed an ASP .NET application with a JavaScript Google Map on the home page to a Windows 2012 website. Now when I browse to the application it comes up fine except the Google Map never loads. One thing that does work is if I publish it as a Web Application and using localhost works. It's just when it's published as a website to IIS is where it fails. As a WebSite on the F12 Console windows debugger here are the errors I'm getting:

SEC7120: Origin http://mymachinename not found in Access-Control-Allow-Origin header.

SCRIPTING7002: XMLHttpRequest: Network error 0X80700013, Could not complete operation due to error 80700013.

getPreferences failed when constructing GPToolsService: undefined

JavaScript
<script type="text/javascript">

        var map;

        MoW.ready(function () {
            map = new MoW.Map({
                target: 'MoWmap'
            });
        });

        window.onload = function () {

            MoW.ready(function () {

                if (document.getElementById('<%= KMLOPString.ClientID %>').value !== "") {
                    var overlayPropertiesOP = {
                        "name": "Openations KML",
                        "url": document.getElementById('<%= KMLOPString.ClientID %>').value,
                        "type": MoW.protocols.KMLProtocol.TYPE.STRING,
                        "description": "Demonstrating KML overlay",
                        "mapTypeId": "google.map.mapTypeId.ROADMAP"
                    };

                    var newOverlayObjectOP = MoW.Factory.createKMLOverlay(overlayPropertiesOP);

                    map.addOverlay(newOverlayObjectOP, {
                        showAlert: true

                    });

       //             map.setBasemap(MoW.Basemap.ID.ROADMAP);
                }

                if (document.getElementById('<%= KMLESString.ClientID %>').value !== "") {
                    var overlayPropertiesES = {
                        "name": "Exercises KML",
                        "url": document.getElementById('<%= KMLESString.ClientID %>').value,
                        "type": MoW.protocols.KMLProtocol.TYPE.STRING,
                        "description": "Demonstrating KML overlay",
                        "mapTypeId": "google.map.mapTypeId.ROADMAP"
                    };

                    var newOverlayObjectES = MoW.Factory.createKMLOverlay(overlayPropertiesES);

                    map.addOverlay(newOverlayObjectES, {
                        showAlert: true

                    });
                }

         //       map.setBasemap(MoW.Basemap.ID.ROADMAP);

            });

        }


        function kmlBtnClick() {

            var overlayProperties = {
                "name": "Example KML Overlay",
                "url": document.getElementById('<%= KMLESString.ClientID %>').value,
                "type": MoW.protocols.KMLProtocol.TYPE.STRING,
                "description": "Demonstrating KML overlay"
            };

            var newOverlayObject = MoW.Factory.createKMLOverlay(overlayProperties);

            map.addOverlay(newOverlayObject, {
                showAlert: true
            });

            map.setBasemap(google.maps.mapTypeId.ROADMAP);
        }

    </script>


modified 3-Feb-20 8:18am.

QuestionArchitectural Guidance Pin
cjb11019-Jan-20 21:30
cjb11019-Jan-20 21:30 
QuestionCalling Web API From Xamarin Forms Pin
Kevin Marois16-Jan-20 9:50
professionalKevin Marois16-Jan-20 9:50 
AnswerRe: Calling Web API From Xamarin Forms Pin
Richard Deeming17-Jan-20 0:48
mveRichard Deeming17-Jan-20 0:48 
QuestionHow to handle api call in Angularjs using webservice http method Pin
praveena Tatikonda14-Jan-20 23:46
praveena Tatikonda14-Jan-20 23:46 
AnswerRe: How to handle api call in Angularjs using webservice http method Pin
Richard MacCutchan15-Jan-20 0:01
mveRichard MacCutchan15-Jan-20 0:01 
QuestionPHP MVC :: Which file is responsible for collecting user input? Pin
BlowMagnum14-Jan-20 10:28
BlowMagnum14-Jan-20 10:28 
Questionwhich one is best AngularJS or ReactJS? Pin
Member 147054432-Jan-20 7:27
Member 147054432-Jan-20 7:27 
AnswerRe: which one is best AngularJS or ReactJS? Pin
Richard MacCutchan2-Jan-20 22:02
mveRichard MacCutchan2-Jan-20 22:02 
AnswerRe: which one is best AngularJS or ReactJS? Pin
Nathan Minier6-Jan-20 1:10
professionalNathan Minier6-Jan-20 1:10 
AnswerRe: which one is best AngularJS or ReactJS? Pin
CSSChopper10-Jan-20 0:23
CSSChopper10-Jan-20 0:23 
AnswerRe: which one is best AngularJS or ReactJS? Pin
Member 1473168331-Jan-20 0:22
professionalMember 1473168331-Jan-20 0:22 
QuestionSQLSTATE[42S22]: Column not found: 1054 Unknown column in 'field list' Pin
BlowMagnum25-Dec-19 7:40
BlowMagnum25-Dec-19 7:40 
AnswerRe: SQLSTATE[42S22]: Column not found: 1054 Unknown column in 'field list' Pin
Graham Breach25-Dec-19 20:29
Graham Breach25-Dec-19 20:29 
GeneralRe: SQLSTATE[42S22]: Column not found: 1054 Unknown column in 'field list' Pin
BlowMagnum26-Dec-19 7:32
BlowMagnum26-Dec-19 7:32 
QuestionbNorton Safeweb - anyone else come across this? Pin
DerekT-P18-Dec-19 7:46
professionalDerekT-P18-Dec-19 7:46 
AnswerRe: Norton Safeweb - anyone else come across this? Pin
phil.o25-Dec-19 23:04
professionalphil.o25-Dec-19 23:04 
QuestionWhat is considered "Reusable CSS?" Pin
BlowMagnum18-Dec-19 2:41
BlowMagnum18-Dec-19 2:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.