Welcome Guest Search | Active Topics | Sign In | Register

EO Web Dynamic Download Options
Phil
Posted: Thursday, October 29, 2020 5:55:37 AM
Rank: Advanced Member
Groups: Member

Joined: 11/16/2010
Posts: 48
I frequently get the following error when using EO Web Dynamic Download. It woeks OK on my development machine under localHost but fails when deployed to my production server.
Other EO web controls work fine, and the temparary folder I use (Server.MapPath("~/PCS_Data/_downloads") is accessed OK by other functions in my web app.
What am I doing wrong?

I create a fille with a textwriter and close it.
My code says
Quote:

Dim args As New NameValueCollection()
args("fn") = tempFIle
e.DynamicDownload(GetType(FileContentGenerator), args) 'e is EO.Web.DownloadEventArgs

Then
Private Class FileContentGenerator
Inherits EO.Web.DynamicDownloadContent

Protected Overrides Sub GenerateContent()
SetFileName(Path.GetFileName(Me.Arguments("fn")), -1)
Dim buffer As Byte() = ReadAllBytes(Me.Arguments("fn"))
Write(buffer, 0, buffer.Length)
File.Delete(Me.Arguments("fn"))
End Sub
End Class

On the web form I have

<eo:Downloader ID="Downloader" runat="server" AutoHideDownloadButton="False" DownloadButtonID="cmdDownload" DynamicContent="true"></eo:Downloader>



The error I get is
Code:

Error in page :http://photocompentries.net/eo_web.ashx?id=D877A66C-9E75-4d29-BD48-426B705280FD&dldp=98C7A0785FB81890D6778D31E8AAFF5E97AF1D39F98D968A9C3A949743B929CF3320AE9275F1867C5107DC8794BF757A7276E246ACABE1BDFB1DB09480750CEFC488911E9927339C28743CAB6D995FA2112867A27E812A3A840CCAC5B6BC72753A02B73CACAD3D9C5CD64F90E023D64046E6737428BB5DCA9CFFE8B0BEF471734B60E44F708EC40FC6B887BB18C3E488EEB29165098E9BDF17854D2E29E9989A543785CF7BB42E8A0DB8558A0080FCE43A748C3A2A3B85F4041C06840E54773537DDB88FFB7680B81FC75AF781E0CB22EA05A969FA42D54BBDB0212F83F81FA6A4D6B922C1C46397193633E59A81E4C9E4BB85A171F72416DAF9153EA1DFE9804F7D0699B4190CDA712BC90F9D793E5993E1CD435863D225C06B5319E1AD5FB928A7C072622B8ACDBFC6E981439013B39AB7C7ACD26D073AC8BF74CFE0CA6D421248F1E94BEA75FBAF511ED6D954D259CE9A14F97FF6F40B07697584C87D681D826F6965804E961272960FDB86640A9A8279404F404534AA6079151D95FFC86B98CEE24F40BEF9E91646E519A4ED75327D9D700BDF979582A8062BDF6C8EDCD7F815689B9565EBCC02137C91F9E703C337DAD889B157816DAD24E8E7BC39B1291BDDBFF35C5F28C3981DF158A0A87614A975D0B66BBA6B1A984E700341002DB14B7287395F95FDA54A2C7DC9409994103A5CEB7F185A43A6D3A06F36EBD84AC88D0A3E0247933841C3F690046F6AF54880381E916D7CD7E3C335338B27B7545A83A25B2A98835855DCF647D2E5F17A8BDB4E91F7CD888D7AB6ADA525F6D8BE1E2FA9850F043FF1BF6A9F4BE7D25C635C0FBE3B9E8F2D5CB67A762C03F61FBBE0245092A231FD4BA066BD61BEA04C58B994B23DC15CECE7ACC6182ECBA4B23A060AC8217CFA4E18ECC009F2BCF307C6F26036F4F62E0FED41D2EEFBB639C8ABC87106D7433B27D50DFC97BEFF7256B3C109F86E638778DF8819B10A511ABD522599FB49D946B514E3E61AF607F2F4928456EFA9E162C83B9E58442E5798E4CC5B468BEC7EA929FD835D6A8E5D048898E44B56F79B035E43973B665678BB82DDDA248667B8A80517DB8870CA17434EA40A7FAFA6496F520C7B5635BB42BBD5F6926DCD0555A8F8F9D6CD2643A99CBCC013386DE7A5055D914D447B72DCAA55D015F7F5A3CB44360547BB75F31FC4CB70290B56ED7E

Message
Could not find file 'C:\Inetpub\vhosts\photocompentries.net\httpdocs\photocompentries\PCS_Data\_downloads\PACC- PhotEx_Entrant_Summary 29-Oct-20 02 22.csv'.

StackTrace
Server stack trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at 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) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.File.InternalReadAllBytes(String path, Boolean checkHost) at Microsoft.VisualBasic.FileIO.FileSystem.ReadAllBytes(String file) at PCS_WebApp.AdminSummary.FileContentGenerator.GenerateContent() in I:\Documents\Development\PCS\PCS_WebApp\PCS_WebApp\AdminSummary.aspx.vb:line 322 at EO.Web.DynamicDownloadContent.EO.Internal.gsht.kvme() at EO.Internal.gsyb.hfvy(gtcs cvj, HttpResponse cvk, Type cvl, String cvm, NameValueCollection cvn) at EO.Internal.gsyb.hfvy(gtcs cvg, String cvh, HttpResponse cvi) at EO.Internal.gsyb.hfvw(gtcs cuz, Boolean cva, String cvb, HttpResponse cvc) at EO.Internal.gsyb.hfvv(gtcs cus, Boolean cut, String cuu, HttpResponse cuv, Boolean cuw, AsyncCallback cux, Object cuy) at EO.Internal.gsyb.hfvu(gtcs cum, String cun, HttpResponse cuo, Boolean cup, AsyncCallback cuq, Object cur) at EO.Internal.gsyb.nfgk(gsyi fjx, HttpResponse fjy, Object fjz) at EO.Internal.gsyj.hfvu(gsyi czu, HttpResponse czv, Object czw) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase) at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData) at EO.Internal.gsyk.bkpr.EndInvoke(IAsyncResult result) at EO.Internal.gsyk.ecda(IAsyncResult dan) at EO.Internal.gsya.EO.Internal.gsyw.xhmz(IAsyncResult frp) at EO.Web.Runtime.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.InvokeEndHandler(IAsyncResult ar) at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)
Query String


eo_support
Posted: Thursday, October 29, 2020 10:15:54 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

We won't be able to tell you why your code can not find this file --- this is your own code trying to read a file and .NET reports that the file does not exist. You will have to troubleshoot these kind of issues yourself.

Thanks!
Phil
Posted: Tuesday, November 10, 2020 4:19:05 AM
Rank: Advanced Member
Groups: Member

Joined: 11/16/2010
Posts: 48
This error may be related, or different....
Error in page :http://www.photocompentries.net/eo_web.ashx?id=4EF2A06E-5171-4166-82A6-242BD1985E8A&uploader_data=ByF1cGxvYWQIgAAAAIyAAAAAh2N0bDAwX2NwTWFpbkNvbnRlbnRfVXBsb2FkZXJfMDpISkVQcCtFSmxzbWozUmgvQTZuc0ZJY0ttT3NBa3dPazdCT0dDcUxvQ1pFUHArRUpsdmQ2eHdOM0FLTG9BSi9MZUxJQWJBbWE3QlNZL1pIdURKSU9xZXNBa3dPazdCT0dDcUxvQ1E9PScmczphMGMxNDQwMC0wYWQ4LTRiYzMtOGU0MC0yOTIzMGRhNTI0OTISEXRvdGFsU2l6ZToxNTYyNjQ2DAtmaWxlQ291bnQ6MQwLYnl0ZXNTZW50OjAKCWN1cnJlbnQ6MBQTZmlsZU5hbWU6TUNEIDZyLkpQRxEQZmlsZVNpemU6MTU2MjY0Ng==
Message
Duplicate attribute.
eo_support
Posted: Tuesday, November 10, 2020 9:41:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

You can post the full stack trace and we will see what we can find.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.