Though I've been reading the StackOverflow forums for years, it's the first time I post here. I know the problem I'm talking about has been asked before, but, as I've seen, it seems that there's no clear answer to it, so I'm posting my case as detailed as I can to see if someone can help me understand what I'm doing wrong before I jump off a cliff.
The "Map doesn't work in debug mode" myth: is it true? I've read more than once that, while using the debug API key, the map doesn't load properly, but once the app is released and signed in to the market, the problem disappears... Is this so? May I test a half-functioning app assuming that the map works well and then uploaded it to the market hoping that it will work as expected? (Please, say "yes", and release me from this living hell of tiles that don't load!)
What I've done with my app:
Used the "keytool" command to list the certificate fingerprint of my keystore:
$ keytool -list -alias androiddebugkey -keystore ./.android/debug.keystore -storepass android -keypass android
Created an API project and generated an API key using the certificate fingerprint from the step above.
Added the API key and the permissions on the AndroidManifest.xml:
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<permission
android:name="com.mycompany.test1.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="com.mycompany.test1.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
(...)
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AItaSyDGE2yil3tCr9NP45QVDPfmRUP-gNv7uLY" />
Added a map on the XML layout of my activity:
<com.google.android.maps.MapView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="AItaSyDGE2yil3tCr9NP45QVDPfmRUP-gNv7uLY"
/>
<!-- Though the Google page says to use the following code, Eclipse shows an error referring to the "xmlns" tag and it can't be compiled: -->
<!--
<fragment
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="com.google.android.gms.maps.MapFragment"/>
-->
I've tried compiling in the emulator using Google APIs, using Android 4.x, using three real devices with Android 2.3, 4.0 and 4.2, exporting the project's .apk and installing the APK on the device directly from the USB card, but the behavior is always the same: when trying to show the map, LogCat fills with the following error:
IOException processing: 26
java.io.IOException: Server returned: 3
at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)
at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)
at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)
at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
at java.lang.Thread.run(Thread.java:856)
Anybody knows what can be happening? I've followed the Google guide like a thousand times, regenerated my API key, checked my manifest, tested the app on the emulator, on devices, etc. and NOTHING changed anything! As I've said previously in this post, I've read that the maps are, simply, not able to be tested when "testing" the app, so one should wait until the app is published in the market to see them working... However, it sounds me weird! Any ideas?
Thanks in advance for your time and effort! :)
Related
there,
I hope I choosed the right Forum category...
I've uploaded a windows 10 app to the windows store. I've seen that under supported languages is just german, but in my Package.appxmanifest I have
<Resources>
<Resource Language="de-DE" />
<Resource Language="en-US" />
</Resources>
In the Partner-Dashboard I have also german and english in my store entrys..
Thanks for your help!
Chris
The Store listing on dashboard contains two language lists: Languages supported by your packages and Additional Store listing Languages.The Language supported list of the app in the Store is the same as the Languages supported by your packages list in dashboard.
The language shown in the Languages supported by your packages list is the language your package supported. If your project supports multiple languages,not only will you need to add languages in the Package.appxmanifest file (as shown in the code you listed) ,you will also need to add a.resw file for each language in the project.
In your Resource Language list, the first language 'de-DE' is the default language for your project.For more information about this, please see : App manifest language list
After several days of trying to solve this problem, with the help of the Unity people I finally found the answer:
Text edit the Package.appxmanifest file and change from
<Resources>
<Resource Language="x-generate" />
</Resources>
To the languages your game supports.
<Resources>
<Resource Language="en-us" />
<Resource Language="fr" />
<Resource Language="de" />
<Resource Language="nl" />
<Resource Language="pt-br" />
<Resource Language="ja" />
</Resources>
Then edit the vcxproj of your project and before the add this (using the same language codes from before) :
<AppxBundleAutoResourcePackageQualifiers>DXFeatureLevel</AppxBundleAutoResourcePackageQualifiers>
<AppxDefaultResourceQualifiers>Language=EN-US;FR;DE;JA;NL;PT-BR</AppxDefaultResourceQualifiers>
Okay, now just generate the build and send it to the store and all the languages your game supports will appear as expected. =)
When I try to access a website that I built using MVC, I am met with error 500. I contacted my hosting providers and they said the issue was with my web.config file. Problem with that is there wasn't one in the project when I created it through Visual Studio.
I followed this guide to add one: How to: Create Web.config Files. Which is provided by Microsoft.
I'm at a complete loss here as I don't know what sort of info is needed or how to configure it so that it will work.
These are the current contents of the file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<!-- To customize the asp.net core module uncomment and edit the following section.
For more info see https://go.microsoft.com/fwlink/?linkid=838655 -->
<!--
<system.webServer>
<handlers>
<remove name="aspNetCore"/>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
-->
</configuration>
What I'm asking for is a bit of direction as to what I need to do, and why this wasn't included in the website to begin with.
You need to clarify with your provider do they support asp.net core since it has its own runtime library.
Also web.config is related to classical ASP.NET framework not for ASP.NET Core.
Try to create app with any .NET version 4.x in visual studio. Within template you’ll see web.config.
If you still want to use .net core it uses slightly different config mechanisms. You can read more about in www.asp.net tutorial section of asp.net core
So I have a MSAccess dB that is scheduled to open and run every 3 minutes. Immediately when it opens, a dialog window pops up as shown . Through the task manager and services windows, I was able to see that it is being thrown by MSAccess. Online I could only find two references to this issue, unfortunately the answer is blocked unless you subscribe. Ref 1 Ref 2. The process only will continue it you hit "ok", which defeats the reason for automating it. Does anyone know what and/or how to stop this?
Edit: I also should note that I looked through all of a MSAccess menu's and settings and could not find anything that appeared related to this.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft Office 14 Alerts" />
<EventID Qualifiers="0">300</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2016-02-05T14:53:52.000000000Z" />
<EventRecordID>1654</EventRecordID>
<Channel>OAlerts</Channel>
<Computer>OPTI-780-LJS2.boston.hembar.com</Computer>
<Security />
</System>
<EventData>
<Data>Online Meeting</Data>
<Data>Unknown network error.</Data>
<Data>701129</Data>
<Data>14.0.7015.1000</Data>
<Data />
<Data />
</EventData>
</Event>
That was it. Just tried running after removing the /C and it went through fine. I wonder why that was?
My AIR app is showing Allow Application to Check for Updates everytime it's opened? I'm using the ApplicationUpdater and ApplicationUpdaterUI classes and calling:
updaterUI.initialize();
at startup and then on UpdateEvent.INITIALIZED I call:
updaterUI.checkNow();
Is this correct?
Here is the screen I see:
BTW I click the "Check for Updates" button and it then says, "No updates available". I would think that on the next time it opens it would check in the background and only pop up a window when an update is available. This is how it seems to work on other AIR apps.
In ApplicationUpdaterUI set the isCheckForUpdateVisible property to false refer here for more on ApplicationUpdaterUI.(NOTE: A value set using this property overrides the setting in the update configuration file). This will stops the "Check for Update" window from displaying and only shows the update window when there is any update available. If you are using configuration file for UpdaterUI then set like this.
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0" >
<url>app:/server/update.xml</url>
<delay>1</delay>
<defaultUI>
<dialog name="checkForUpdate" visible="false" />
<!-- Other Configs -->
<dialog name="downloadUpdate" visible="true" />
<dialog name="downloadProgress" visible="true" />
<dialog name="installUpdate" visible="true" />
</defaultUI>
</configuration>
I hope this will helps you....
When you download the nativeApplicationUpdater framework, it contains two folder: nativeApplicationUpdater and nativeApplicationUpdaterDemo. Go dig into the nativeApplicationUpdaterDemo folder to understanding how to use the framework.
In my case, I don't use the default Updater UI, just the core nativeApplicationUpdater to check when the update is available (via XML file). If available, download it through APIs and store it into applicationStorageDirectory. At the next time your application launch, you can prompt the user to update, or install it silently and just show the progress bar.
You shouldn't check for update every times your app start, because an user can close and re-open your application many times (Your server will go die). You can log the last time you've check for update to Application Preference, and if (thisTime - lastTimeCheck) > inactivityDuration, then check for update. (I recommend 3 days or a week).
You can search more to learn how to install your application silently, as well as install the Adobe Air run-time silently. Simply un-zip the installer, and install the .msi via command line.
I am trying to add a JSON endpoint to a WCF RIA Service.
I have read many tutorials on this and I have also watched videos on silverlight.net.
Everywhere I find something on this topic, I am told to use the domainService Tag in web.config.
One code example looks like this:
<system.serviceModel>
<domainServices>
<endpoints>
<add name="JSON" type="Microsoft.ServiceModel.DomainServices.Hosting.JsonEndpointFactory, Microsoft.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</endpoints>
</domainServices>
<system.serviceModel>
This is not working and there are two issues:
In Visual Studio 2010 the domainService Tag is underlined blue, with the hint, that this is an unexpected tag.
In IIS the domainService Tag is producing an unknown element error.
Among others, I have referenced the following DLLs in my web project:
-Microsoft.ServiceModel.DomainServices.Hosting
-Microsoft.ServiceModel.DomainServices.Tools
-Microsoft.ServiceModel.DomainServices.LinqToSql
-System.ServiceModel.DomainServices.EntityFramework
-System.ServiceModel.DomainServices.Hosting
-System.ServiceModel.DomainServices.Hosting.OData
-System.ServiceModel.DomainServices.Server
I also have the WCF RIA Services V1.0 SP2 installed.
I really don't know, how to resolve it. I need help. I have googled and searched excessively.
Thank you.
This case is solved. Please read my comments to Jeff's answer. You may find some additional information on this problem.
The JSON endpoint is part of the WCF RIA Services Toolkit, not the product itself. You can get the Toolkit MSI here:
http://www.microsoft.com/en-us/download/details.aspx?id=26939
However, I recommend pulling the JSON endpoint in through NuGet instead, using the RIAServices.Endpoints package:
http://nuget.org/packages/RIAServices.Endpoints
Here's some more information about the NuGet packages available:
http://jeffhandley.com/archive/2012/12/10/RIA-Services-NuGet-Package-Updates-ndash-Including-Support-for-EntityFramework.aspx
For me the correct way to resolve the issue was adding the following to web.config
<configuration>
<configSections>
<sectionGroup name="system.serviceModel">
<section name="domainServices" type="System.ServiceModel.DomainServices.Hosting.DomainServicesSection, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" allowDefinition="MachineToApplication" requirePermission="false" />
</sectionGroup>
</configSections> ...