Server Error in '/' Application.

Could not find a part of the path 'C:\inetpub\wwwroot\ticaretportal\uploaded\temp\Un_Nisasta_Makarna_Sehriye_Vb._Urunler_Ile_Hazir_Gidalarin_(et\sebze_Sulari_Hazir_Corbalar_Vb.).pdf'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\inetpub\wwwroot\ticaretportal\uploaded\temp\Un_Nisasta_Makarna_Sehriye_Vb._Urunler_Ile_Hazir_Gidalarin_(et\sebze_Sulari_Hazir_Corbalar_Vb.).pdf'.

Source Error:


Line 22:             string dosya = string.Format("{0}{1}.pdf", SiteOperations.KlasorUploadTemp, dosyaAdi);
Line 23: 
Line 24:             PdfWriter.GetInstance(d, new FileStream(dosya, FileMode.Create));
Line 25:             d.AddAuthor("Satso Ticaret Portali");
Line 26:             d.AddCreator("SATSO");

Source File: c:\inetpub\wwwroot\ticaretportal\FirmalarAltPDF.ashx    Line: 24

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'C:\inetpub\wwwroot\ticaretportal\uploaded\temp\Un_Nisasta_Makarna_Sehriye_Vb._Urunler_Ile_Hazir_Gidalarin_(et\sebze_Sulari_Hazir_Corbalar_Vb.).pdf'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +281
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +1242
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +132
   System.IO.FileStream..ctor(String path, FileMode mode) +99
   FirmalarAltPDF.ProcessRequest(HttpContext context) in c:\inetpub\wwwroot\ticaretportal\FirmalarAltPDF.ashx:24
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0