Earnie EngNew Member Posts:28
01/11/2006 8:40 AM |
|
I am running two different sites, seperate servers
both DNN sites are version 4.0.2, running DMX 3.02.01
both running on Windows Server 2003, and SQL 2005 Express configured for SQL 2000 compatibility.
Yet one of the site's DMX module is corrupting PDF files uploaded.
After uploading, I attempted to download the PDF to view it. Adobe Acrobat Reader 7.0 says that the file, whether I open it directly, or download it first, is corrupted. The error message from Acrobat is:
"There was an error opening this document. The file is damaged and could not be repaired."
Please Help!
|
|
|
|
Earnie EngNew Member Posts:28
01/11/2006 8:46 AM |
|
Note: I currently have the "change extensions" checkbox unchecked so that files are stored in their native version. When downloading from the site, the resulting file is corrupt. However, when I navigate to the server and open the PDF directly (copying to local drive and opening since server has no PDF reader), The file is fine.
Could there be a problem with the way DMX is server the file?
|
|
|
|
Earnie EngNew Member Posts:28
01/11/2006 9:16 AM |
|
I also tried setting DMX to rename files to .resource... copied the .resource file to local drive renamed it to PDF and the PDF file opened up fine...
What's happening?
Help!
|
|
|
|
Peter DonkerVeteran Member Posts:4536
01/11/2006 10:19 AM |
|
Earnie,
Are you using a compression filter? Obviously something is changing the file during download. Can you check the number of bytes once downloaded and compare that to the original file?
Peter
|
|
|
|
Earnie EngNew Member Posts:28
01/11/2006 6:17 PM |
|
Peter,
thanks for your reply!
This morning, I took another attempt to upload some PDFs. Although I can't repeat the error, here is exactly what happened:
- I uploaded a PDF that was simply a scan of some sheet music to the DMX Root
- Size checked out, and it downloaded fine.
- I then uploaded a PDF (A Benefits Summary Document for HR) to the DMX Root.
- The size checked out and it downloaded fine.
- I edited this PDF and moved it to its proper location in the sub-directory (collection).
- It still opened fine.
- I then uploaded another PDF (Flex Benefits, for example) to that same sub-directory.
- This file size checked out in DMX, but when I downloaded it, it grew in size and reported it was corrupt.
- I repeated steps 7 for another file, and had the same result as in step 8.
Help?
Earnie
|
|
|
|
Earnie EngNew Member Posts:28
01/11/2006 6:29 PM |
|
Update:
I re-uploaded the PDF that worked (Benefits Summary), and this one came back corrupted. Is there a cache issue? (I have tried clearing cache, but I cannot expect users to go clear cache every time they want to upload files...)
|
|
|
|
Earnie EngNew Member Posts:28
01/12/2006 12:28 AM |
|
In attempts to get to the bottom of this problem, I ended up re-installing DNN 4.0.2 on a new website to eliminate all possible problems. Here's what I am observing:
- Installed DMX 3.02.01
- Uploaded a PDF file to DMX
- It downloaded fine
- I closed the new window that popped up when downloading from DMX
- I clicked on the same PDF.
- Now the file is corrupted.
- I clear my browser cache
- The same PDF downloaded fine.
- I again closed the new window that the PDF loaded into.
- I click the same PDF in DMX and Internet Explorer reports the file is corrupted.
- I noticed that the url in the new window points back to the site, so I simply clicked refresh.
- The file showed up.
I was able to repeat steps 2 - 10 on three different computers, some in completely different locatiosn, and some via VPN from outside our network into the intranet site DMX is installed on.
So what seems to be happening is a conflict with the temporary internet file stored on the user's machine. Once the user's internet cache is cleared, the file downloads fine the first time.
I'm going to try these different approaches to solving this problem:
- Change the Mime Type for PDFs in the DMX settings
- Research ways to get IIS to not cache files or somehow tell the client not to cache files.
- Chante the Mime Type for PDFs in IIS6.
Any other suggestions would be great! Please let me know if I'm going about things the wrong way!
Help?
Earnie Eng
|
|
|
|
Earnie EngNew Member Posts:28
01/12/2006 6:17 PM |
|
Anyone experiencing the same problems?
One more thing I noticed with the problem of PDF documents being corrupted in the download...
This only applies to PDF documents... I've tried it with Excel and WORD with no problems...
When I un-check the "All Users" permission and give this document view permissions to specific security groups in DNN, the document fails to download on second try.
When I re-check the "All Users" permission, the PDF downloads fine through DMX.
What's going on here?
|
|
|
|
Mike WillardNew Member Posts:44
01/12/2006 8:38 PM |
|
I have not gone to the extent of research as detailed here, but I do have an issue with all the files in a certain collection have become corrupt. The files all happen to be Excel. As stated above, I can navigate directly to the files in Windows Explorer and they download correctly. All info in the DMX database seems to check out okay (file size correct, only 1 version of files exist.) I have tried clearly IE cache to no avail. I'm holding off on deleting this whole collection since some people spent a lot of time uploading all of them with descriptions, keywords, etc. Any ideas what could cause a collection to do this? All others download without issue.
Mike
|
|
|
|
Peter DonkerVeteran Member Posts:4536
01/12/2006 11:27 PM |
|
Mike,
Beats me. I'll keep monitoring this issue of some files being corrupted during download. Can you specify/verify the following: your version of DNN/DMX, and what kind of authentication you're using (i.e. regular vs active directory).
Peter
|
|
|
|
Mike WillardNew Member Posts:44
01/13/2006 12:10 AM |
|
DNN 3.1.1
DMX 3.01.51
Authentication, I would say "regular." I'm using the Authentication module to sync with AD, but also have some DNN users.
Mike
|
|
|
|
Earnie EngNew Member Posts:28
01/13/2006 1:31 AM |
|
I was reading through some of the other posts on this forum, and noticed in the UI section there was a post about problems with RTF files being corrupted, even though they look fine in the file system.
http://www.bring2mind.net...w/topic/Default.aspx
I wonder, even though I have 3.2.1, if this might be the root of the issue? Could it be that this file length be limited to certain file types?
Just a thought... it doesn't make sense that it would work on one of my sites, but not another.
If you are curious to see a working version on DNN 4.0.2 running DMX 3.2.1 take a look at:
https://documents.hswenterprises.com/
since this site is restricted to certain people, you can only have access to the documentation section that has the PDFs Peter provided for us on how to use DMX.
|
|
|
|
Peter DonkerVeteran Member Posts:4536
01/13/2006 9:46 AM |
|
Mike: seems like we're onto something here. Both you and Ernie encounter problems with AD authentication. Earnie: The previous error (file size cut by one byte) was solved in 3.2.1. I'm positive about that. There was nothing in my 3.2.0 code that discerned between file types, it was just that some file types are more sensitive to having the last byte chopped off.
It seems I'll have to get an installation of DNN4/AD to be able to repeat this error. You'll need to give me some time on this.
Peter
|
|
|
|
Mike WillardNew Member Posts:44
01/13/2006 3:31 PM |
|
Peter,
Just to follow up... I was mistaken when I gave you the version #. I was running DMX 3.2.0 and was experiencing the bug mentioned above. The reason all docs were in the same collection was that only that collection had been updated after the date I applied the 3.2.0 patch.
I upgraded to 3.2.1 last night and manually adjusted the file sizes in the DB by adding 1 byte. All is well with my installation now. I did notice that some Word docs were loading fine on 3.2.0, but Excel files were not.
Sorry for the misinformation and thanks for your continued support.
We go live with this product later this month for about 1600 users in the US. There are already plans to roll it out in the UK later this year as well just based on what I've shown people so far.
Mike
|
|
|
|
Earnie EngNew Member Posts:28
01/13/2006 5:08 PM |
|
Peter,
Let me know how I can help you with any testing. I will keep you posted on any progress with my troubleshooting.
Here's my current Environment:
Windows Server 2003 IIS 6 ASP.NET 2.0.50727 SQL Server 2005 Express Server 2005 Database configured to be compatible with SQL Server 2000 DNN 4.0.2 - Install version DMX 3.2.1
|
|
|
|
Earnie EngNew Member Posts:28
01/13/2006 6:59 PM |
|
Very curious!
I set up another DNN 4.0.2 site just to try things out... (this is on our intranet server where all the problems have been ocurring) I left the DNN site with its stock settings from the install version of the application.
After installing DMX, I get the EXACT same problem! I did not turn on AD integration... just normal...
I'm starting to wonder why it would behave this way. What is happening behind the scenes with my specific server that would make it behave different than the public server I'm using?
I'm going to try a stock installation of DNN 3.2 and see what happens... I'll keep you all posted.
|
|
|
|
Peter DonkerVeteran Member Posts:4536
01/13/2006 7:54 PM |
|
OK, I guess it's the first major incompatibility issue DNN 3 - DNN 4. Strange thing is: it's known to be able to run under DNN 4, but there is something else particular to this which is preventing it functioning properly. I'm working with Earnie for now to see if we can get something to work. Maybe we'll find something.
Anyone else with similar findings please leave a message here with a description of your system.
Peter
|
|
|
|
Earnie EngNew Member Posts:28
01/13/2006 11:33 PM |
|
Okay... I am beginning to suspect something wrong with ASP.net, MS SQL Server 2005 Express, or my server in particular.
The confusing thing is... I have an almost identical setup on the public site I mentioned above, and it is running on the exact same OS/Databse/.NET framework
so that would lead me to believe it's something wrong with my server...
anyways... here's what I've tried since last post:
- Installed DNN 3.2.2 running on .NET 1.1 and MSDE.
- DMX works fine... (I expected that! )
- Installed DNN 3.2.2 running on .NET 2.0 and MS SQL 2005 Express (configured to be backward compatible w/ mssql2000)
- DNN didn't even install (I guess it doesn't have a provider for sql 2005 express? the page just kept loading w/o any timeout or whatnot...
- then it finally instead when I assigned the website to its own application pool
- but... the PDFs get corrupted, even when all users have view rights!
- Alright... that didn't work.. now, just for kicks...
Installed DNN3.2.2 running on .NET 2.0 and MSDE
- It worked!
So... in conclusion... looks like DMX doesn't like MSSQL 2005 Express for some reason... at least when it is on our intranet web server... but it doesn't complain when on the public web server...
weird!
I'm tired...
I'll post
|
|
|
|
Earnie EngNew Member Posts:28
01/14/2006 12:31 AM |
|
Some more info... I asked for some help from our IT director... and he checked one place I forgot... server event logs...
here we noticed that we were getting this error every time we attempted to download a PDF:
Event code: 3005 Event message: An unhandled exception has occurred. Event time: 1/13/2006 3:17:23 PM Event time (UTC): 1/13/2006 11:17:23 PM Event ID: b76ea283fdf24739b2c05f194cb71651 Event sequence: 31 Event occurrence: 4 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1473593649/Root-1-127816672256890074 Trust level: Full Application Virtual Path: / Application Path: E:\Webs\HSWEHome\ Machine name: HSWEWEB1 Process information: Process ID: 6132 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE Exception information: Exception type: HttpException Exception message: Server cannot modify cookies after HTTP headers have been sent. Request information: Request URL: http://hswehome/DesktopMo...Id=67&PortalId=0 Request path: /DesktopModules/Bring2mind/DMX/Download.aspx User host address: 10.3.2.134 User: ********* (masked out for security purposes Is authenticated: True Authentication Type: Forms Thread account name: NT AUTHORITY\NETWORK SERVICE Thread information: Thread ID: 1 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at System.Web.HttpCookieCollection.Add(HttpCookie cookie) at System.Web.Security.RoleManagerModule.OnLeave(Object source, EventArgs eventArgs) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
|
|
|
|
Earnie EngNew Member Posts:28
|