Showing posts with label Development Problems and Fixes. Show all posts
Showing posts with label Development Problems and Fixes. Show all posts

Wednesday, 16 December 2015

Code First Problems and Fixes

Problem

After you delete a database and come across this problem

"Cannot attach the file  ERROR"  -    after Deleting MDF (database) file

Fix

  1. Remove old database connection string out of Web.Config
  2. Open the "Developer Command Propmpt for VisualStudio" under your start/programs menu.
  3. Run the following commands:
    sqllocaldb.exe stop v11.0
    sqllocaldb.exe delete v11.0

Thursday, 10 December 2015

Azure How To Problems And Fixes

HOW TO

Database First Design Project which you can Deploy To Azure  Guide

https://www.asp.net/mvc/overview/getting-started/database-first-development/setting-up-database

 


--------------------

PROBLEMS AND FIXES

 

Azure Mobile Service

Problem
HTTP RESONSE ERROR ON GET data, before database is created


Fix

below is an invalid name due to . charecter

<add key="MS_MobileServiceName" value="ProximityShoppingApp.Service" />


The below is the succesful working change

<add key="MS_MobileServiceName" value="ProximityShoppingAppService" />


Problem
Cannot connect to Azure Database Server Via SQL MANAGEMENT STUDIO
Cannot publish database to Azure Database Server.


Fix

Company Service Desk (i.e SMSMT) might be blocking ip address in firewall, so will not be able to connect to it.

go into command prompt
 type nslookup 'http://put database server address here"

this will tell the database servers ip address.
then tell service desk to allow access to it via the firewall.


Friday, 4 December 2015

Xamarin Installation, setup issues


Manual Installation



Potential Errors/Problems


---------------------------------------------------------------------------------------------------

Problem

Changing what directory AVD saves newly created emulators too, so xamarin can pick up the changes immediately.


Fix





  •  create new environment variable;
  •  System >
  • Click the Advanced System Settings link in the left column.
  • In the System Properties window, click on the Advanced tab,
  • then click the Environment Variables button near the bottom of that tab.
  • Add a new system variable with the below details.

  • Variable Name :
      ANDROID_SDK_HOME
    Variable Value:    ***directory***

    ---------------------------------------------------------------------------------------------------

    Problem

     fastDev assembly couldnt be created


    Fix

     turn off fast deployment in android options

    ---------------------------------------------------------------------------------------------------
    Problem

    Andriod Emulator Issues

    Fix

    Download Visual Stuidio Emulator for Andriod from 
    https://www.visualstudio.com/en-us/features/msft-android-emulator-vs.aspx


    If app doesn’t load after emulator loads follow steps below



    1. Launch the emulator (F5 in VS, then cancel the deployment using the Build/Cancel menu)
    2. Click on the chevron icon in the toolbar to the right of the emulator
    3. Select the Network tab
    4. Locate the preferred network ip address
    5. Back in VS, click on the Open Adb Command Prompt toolbar button
    6. Type adb connect [the emulator ip address]
    7. Press F5 again in VS


    ---------------------------------------------------------------------------------------------------
    Problem

    Xamarin.Forms.Platform.Android.FormsApplicationActivity  not exist

    Update xamarin.forms nuget package

    Fix

    Get the gethub extension for visual stuido from here https://visualstudio.github.com/

    ---------------------------------------------------------------------------------------------------
    Problem

    "CreateAdditionalLibraryResourceCache" task failed unexpectedly


     Fix

    Moving your project to a directory that has a shorter path (e.g. c:\dev\project).

    ---------------------------------------------------------------------------------------------------

    Problem

    "CopyAndConvertResources" task failed unexpectedly

    Fix

    1. Delete the bin\ and obj\ folders.
    2. Check out the Resources\ folder from TFS (recursively).
    ---------------------------------------------------------------------------------------------------
    Android
    enable debugger on phone

    Xamarin.Forms Quickstart

     https://developer.xamarin.com/guides/cross-platform/xamarin-forms/getting-started/hello-xamarin-forms-multiscreen/quickstart/


    Beacon programming QUickstart

    https://github.com/aritchie/estimotes-xplat


    --------------------------------------------------------------------------------------------------------

    CANT VISUALIZE  XAML CHANGES UNTIL RUNTIME


    http://www.gorillaplayer.com/