Index: /trunk/BazaReklam.sln
===================================================================
--- /trunk/BazaReklam.sln (revision 597)
+++ /trunk/BazaReklam.sln (revision 607)
@@ -10,5 +10,5 @@
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExportToCDN", "TruckExpoCDN\ExportToCDN.csproj", "{E06D8F95-3C3F-4369-A60C-9DFF6703E8A0}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Updater", "Updater\Updater.csproj", "{D79A9AD4-2E15-4A9B-98C9-467B25D47FEA}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BazaReklam.Updater", "Updater\BazaReklam.Updater.csproj", "{D79A9AD4-2E15-4A9B-98C9-467B25D47FEA}"
 EndProject
 Global
Index: /trunk/Updater/BazaReklam.Updater.csproj
===================================================================
--- /trunk/Updater/BazaReklam.Updater.csproj (revision 607)
+++ /trunk/Updater/BazaReklam.Updater.csproj (revision 607)
@@ -0,0 +1,140 @@
+﻿<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{D79A9AD4-2E15-4A9B-98C9-467B25D47FEA}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Updater</RootNamespace>
+    <AssemblyName>BazaReklam.Updater</AssemblyName>
+    <ApplicationIcon>29.ico</ApplicationIcon>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Deployment" />
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.Windows.Forms" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="FormUpdate.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormUpdate.designer.cs">
+      <DependentUpon>FormUpdate.cs</DependentUpon>
+    </Compile>
+    <Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2Constants.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2Exception.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2InputStream.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2OutputStream.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Checksums\Adler32.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Checksums\CRC32.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Checksums\IChecksum.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Checksums\StrangeCRC.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Core\FileSystemScanner.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Core\INameTransform.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Core\IScanFilter.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Core\NameFilter.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Core\PathFilter.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Core\StreamUtils.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Core\WindowsPathUtils.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Encryption\PkzipClassic.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\GZip\GZIPConstants.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\GZip\GZipException.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\GZip\GzipInputStream.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\GZip\GzipOutputStream.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\SharpZipBaseException.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Tar\InvalidHeaderException.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarArchive.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarBuffer.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarEntry.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarException.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarHeader.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarInputStream.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarOutputStream.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Deflater.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterConstants.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterEngine.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterHuffman.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterPending.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Inflater.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\InflaterDynHeader.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\InflaterHuffmanTree.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\PendingBuffer.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\DeflaterOutputStream.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\InflaterInputStream.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\OutputWindow.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\StreamManipulator.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\FastZip.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\IEntryFactory.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\WindowsNameTransform.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipConstants.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipEntry.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipEntryFactory.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipException.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipExtraData.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipFile.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipHelperStream.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipInputStream.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipNameTransform.cs" />
+    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipOutputStream.cs" />
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <EmbeddedResource Include="FormUpdate.resx">
+      <DependentUpon>FormUpdate.cs</DependentUpon>
+      <SubType>Designer</SubType>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Properties\Resources.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+      <SubType>Designer</SubType>
+    </EmbeddedResource>
+    <Compile Include="Properties\Resources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Resources.resx</DependentUpon>
+      <DesignTime>True</DesignTime>
+    </Compile>
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+    <Compile Include="Properties\Settings.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Settings.settings</DependentUpon>
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
+    </Compile>
+    <Compile Include="Helpers\ZipHelper.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="29.ico" />
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
Index: /trunk/Updater/Properties/AssemblyInfo.cs
===================================================================
--- /trunk/Updater/Properties/AssemblyInfo.cs (revision 597)
+++ /trunk/Updater/Properties/AssemblyInfo.cs (revision 607)
@@ -6,9 +6,9 @@
 // set of attributes. Change these attribute values to modify the information
 // associated with an assembly.
-[assembly: AssemblyTitle("ctUpdater")]
-[assembly: AssemblyDescription("")]
+[assembly: AssemblyTitle("BazaReklam.Updater")]
+[assembly: AssemblyDescription("Automatically updates BazaReklam application")]
 [assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Commercial Travellers")]
-[assembly: AssemblyProduct("ctUpdater")]
+[assembly: AssemblyCompany("AACT")]
+[assembly: AssemblyProduct("BazaReklam.Updater")]
 [assembly: AssemblyCopyright("Copyright © Commercial Travellers 2009")]
 [assembly: AssemblyTrademark("")]
Index: /unk/Updater/Updater.csproj
===================================================================
--- /trunk/Updater/Updater.csproj (revision 597)
+++  (revision )
@@ -1,140 +1,0 @@
-﻿<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProductVersion>8.0.50727</ProductVersion>
-    <SchemaVersion>2.0</SchemaVersion>
-    <ProjectGuid>{D79A9AD4-2E15-4A9B-98C9-467B25D47FEA}</ProjectGuid>
-    <OutputType>WinExe</OutputType>
-    <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>Updater</RootNamespace>
-    <AssemblyName>Updater</AssemblyName>
-    <ApplicationIcon>29.ico</ApplicationIcon>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <Optimize>false</Optimize>
-    <OutputPath>bin\Debug\</OutputPath>
-    <DefineConstants>DEBUG;TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <DebugType>pdbonly</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>bin\Release\</OutputPath>
-    <DefineConstants>TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="System" />
-    <Reference Include="System.Data" />
-    <Reference Include="System.Deployment" />
-    <Reference Include="System.Drawing" />
-    <Reference Include="System.Windows.Forms" />
-    <Reference Include="System.Xml" />
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="FormUpdate.cs">
-      <SubType>Form</SubType>
-    </Compile>
-    <Compile Include="FormUpdate.designer.cs">
-      <DependentUpon>FormUpdate.cs</DependentUpon>
-    </Compile>
-    <Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2Constants.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2Exception.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2InputStream.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2OutputStream.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Checksums\Adler32.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Checksums\CRC32.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Checksums\IChecksum.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Checksums\StrangeCRC.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Core\FileSystemScanner.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Core\INameTransform.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Core\IScanFilter.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Core\NameFilter.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Core\PathFilter.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Core\StreamUtils.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Core\WindowsPathUtils.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Encryption\PkzipClassic.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\GZip\GZIPConstants.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\GZip\GZipException.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\GZip\GzipInputStream.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\GZip\GzipOutputStream.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\SharpZipBaseException.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Tar\InvalidHeaderException.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarArchive.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarBuffer.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarEntry.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarException.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarHeader.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarInputStream.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Tar\TarOutputStream.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Deflater.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterConstants.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterEngine.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterHuffman.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterPending.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Inflater.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\InflaterDynHeader.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\InflaterHuffmanTree.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\PendingBuffer.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\DeflaterOutputStream.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\InflaterInputStream.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\OutputWindow.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\StreamManipulator.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\FastZip.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\IEntryFactory.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\WindowsNameTransform.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipConstants.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipEntry.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipEntryFactory.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipException.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipExtraData.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipFile.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipHelperStream.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipInputStream.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipNameTransform.cs" />
-    <Compile Include="ICSharpCode.SharpZipLib\Zip\ZipOutputStream.cs" />
-    <Compile Include="Program.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-    <EmbeddedResource Include="FormUpdate.resx">
-      <DependentUpon>FormUpdate.cs</DependentUpon>
-      <SubType>Designer</SubType>
-    </EmbeddedResource>
-    <EmbeddedResource Include="Properties\Resources.resx">
-      <Generator>ResXFileCodeGenerator</Generator>
-      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
-      <SubType>Designer</SubType>
-    </EmbeddedResource>
-    <Compile Include="Properties\Resources.Designer.cs">
-      <AutoGen>True</AutoGen>
-      <DependentUpon>Resources.resx</DependentUpon>
-      <DesignTime>True</DesignTime>
-    </Compile>
-    <None Include="Properties\Settings.settings">
-      <Generator>SettingsSingleFileGenerator</Generator>
-      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
-    </None>
-    <Compile Include="Properties\Settings.Designer.cs">
-      <AutoGen>True</AutoGen>
-      <DependentUpon>Settings.settings</DependentUpon>
-      <DesignTimeSharedInput>True</DesignTimeSharedInput>
-    </Compile>
-    <Compile Include="Helpers\ZipHelper.cs" />
-  </ItemGroup>
-  <ItemGroup>
-    <Content Include="29.ico" />
-  </ItemGroup>
-  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
-  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
-  -->
-</Project>
Index: /trunk/BazaReklam/OrdersForm.cs
===================================================================
--- /trunk/BazaReklam/OrdersForm.cs (revision 591)
+++ /trunk/BazaReklam/OrdersForm.cs (revision 607)
@@ -4,4 +4,5 @@
 using System.Data.SqlClient;
 using System.Windows.Forms;
+using Baza_Reklam.Classes;
 using Baza_Reklam.Classes.Helpers;
 using Baza_Reklam.Classes.Interfaces;
@@ -1204,4 +1205,8 @@
                 if (!pdfHelper.DisplayPdf())
                     MessageBox.Show(pdfHelper.ErrorMessage);
+            }
+            catch (System.Net.WebException exception)
+            {
+                PdfHelper.HandleWebException(exception);
             }
             finally
Index: /trunk/BazaReklam/ListaReklamNaWydanieForm.cs
===================================================================
--- /trunk/BazaReklam/ListaReklamNaWydanieForm.cs (revision 591)
+++ /trunk/BazaReklam/ListaReklamNaWydanieForm.cs (revision 607)
@@ -5,4 +5,5 @@
 using System.Drawing;
 using System.Windows.Forms;
+using Baza_Reklam.Classes;
 using Baza_Reklam.Classes.Helpers;
 using Baza_Reklam.Classes.Interfaces;
@@ -350,4 +351,8 @@
                     MessageBox.Show(pdfHelper.ErrorMessage);
             }
+            catch (System.Net.WebException exception)
+            {
+                PdfHelper.HandleWebException(exception);
+            }
             finally
             {
Index: /trunk/BazaReklam/Classes/Helpers/PdfHelper.cs
===================================================================
--- /trunk/BazaReklam/Classes/Helpers/PdfHelper.cs (revision 591)
+++ /trunk/BazaReklam/Classes/Helpers/PdfHelper.cs (revision 607)
@@ -3,4 +3,5 @@
 using System.Globalization;
 using System.IO;
+using System.Windows.Forms;
 
 namespace Baza_Reklam.Classes.Helpers
@@ -23,4 +24,7 @@
         public bool DisplayPdf()
         {
+            throw new System.Net.WebException("test");
+
+
             string url = ConfigurationHelper.GetSettingByKey("Application.Pdf.Date") ??
              "http://truck.pl/ogloszenia/_getFile.asp?pdfdate,{0},,";
@@ -33,5 +37,4 @@
             if (!DateTime.TryParse(pdfDate, null, DateTimeStyles.None, out pdfDateTime))
             {
-                //MessageBox.Show("Nie znaleziono pliku PDF dla wybranej reklamy");
                 _errorMessage = "Nie znaleziono pliku PDF dla wybranej reklamy";
                 return false;
@@ -84,4 +87,14 @@
             }
         }
+
+        public static void HandleWebException(Exception exception)
+        {
+            string errorMsg = string.Format("{0}\n\n{1}\n{2}",
+                                "Problem z serwerem który dostarcza pliki PDF",
+                                "Szczegó³y wyj¹tku:",
+                                exception);
+            MessageBox.Show(errorMsg, "Baza Reklam - Podgl¹d PDF", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+            Logger.LogException(exception, User.Instance().Login, DateTime.Now);
+        }
     }
 }
Index: /trunk/BazaReklam/app.config
===================================================================
--- /trunk/BazaReklam/app.config (revision 604)
+++ /trunk/BazaReklam/app.config (revision 607)
@@ -8,4 +8,6 @@
   <connectionStrings>
     <clear />
+    <add name="BAZA_REKLAM_TEST" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM_TEST;Persist Security Info=True"
+      providerName="System.Data.SqlClient" />
     <add name="BAZA_REKLAM" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM;Persist Security Info=True"
       providerName="System.Data.SqlClient" />
Index: /trunk/BazaReklam/ProductionForm.cs
===================================================================
--- /trunk/BazaReklam/ProductionForm.cs (revision 597)
+++ /trunk/BazaReklam/ProductionForm.cs (revision 607)
@@ -907,4 +907,8 @@
                     MessageBox.Show(pdfHelper.ErrorMessage);
             }
+            catch (System.Net.WebException exception)
+            {
+                PdfHelper.HandleWebException(exception);
+            }
             finally
             {
Index: /trunk/BazaReklam/ClientsForm.cs
===================================================================
--- /trunk/BazaReklam/ClientsForm.cs (revision 597)
+++ /trunk/BazaReklam/ClientsForm.cs (revision 607)
@@ -7,4 +7,5 @@
 using System.IO;
 using System.Text.RegularExpressions;
+using Baza_Reklam.Classes;
 using Baza_Reklam.Classes.Helpers;
 using Baza_Reklam.Classes.Interfaces;
@@ -1217,4 +1218,8 @@
                 if (!pdfHelper.DisplayPdf())
                     MessageBox.Show(pdfHelper.ErrorMessage);
+            }
+            catch (System.Net.WebException exception)
+            {
+                PdfHelper.HandleWebException(exception);
             }
             finally
