Question: I'm having difficulties assigning the value of an image to an image view image. I've tested that the source image has a value at the time of assignment to the image view image, and indeed it does. However, the assignment just does't appear to happen, and the image view image remains null. Can anyone help me with what I'm doing wrong?

Thanks.

```
- (void)viewDidLoad {
    [super viewDidLoad];

    self.scrollView.contentSize = self.imageView.image.size;
    self.scrollView.delegate = self;
    self.scrollView.minimumZoomScale = 1.0;
    self.scrollView.maximumZoomScale = 100.0;

    dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul);
    dispatch_async(queue, ^{

        NSString *imageName = @"http://my.domain.com/image.png";
        UIImage *img = [[UIImage alloc] init];
        NSURL *imageURL = [NSURL URLWithString:imageName];

        [self.activityIndicator startAnimating];

        NSData *imageData = [NSData dataWithContentsOfURL:imageURL];
        img = [UIImage imageWithData:imageData];

        dispatch_async(dispatch_get_main_queue(), ^{

            self.imageView.image = img;//img HAS a value, but self.imageView.image does NOT receive it

            [self.activityIndicator stopAnimating];
            [self.imageView setNeedsDisplay];
        });
    });
}

```

Answer: 
So I was able to get the source code for the class library that loads the connection string and it turns out the code is loading a collection of connectionstrings like so:

```
   var collection = System.Web.Configuration.WebConfigurationManager.ConnectionStrings ?? System.Configuration.ConfigurationManager.ConnectionStrings;

        if (collection[1].Name == null)
            throw new Exception("Unable to detect connection string in app.config or web.config! Default connection string name is \'DbConnection.\'");

        db = new Database(collection[1].Name);

```

My machine.config happened to have a connection string in it for MySql, called LocalMySqlServer. This connection string may have been added by the .NET MySql Connector installation or I may have made the change myself.

So the connectionstring collection was loading a connection from my machine.config, so `collection[1]` array position did not have the expected connection string in it. This explains why some developers had no issue on their machines and other developers did have issues on their machine.
**Option 1:**

```
<connectionStrings>
    <add name="DbConnection" connectionString="Data Source=la-foo-server\development,1444;Initial Catalog=mydb;user id=myId;password=myPassword;" providerName="System.Data.SqlClient" />
  </connectionStrings>

```

**Option 2:**

```
  <connectionStrings>
    <add name="DbConnection" connectionString="Data Source=la-foo-server\development;Initial Catalog=mydb;user id=myId;password=myPassword;" providerName="System.Data.SqlClient" />
  </connectionStrings>

```