.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Cannot Open Attachment after download

Posted By:      Posted Date: August 30, 2010    Points: 0   Category :.NET Framework
Hi All, I have a Console App (VS 2008, C#, 3.5 framework) that uses WebDav to query a mailbox in Exchange 2003 and download the attachments to a specified location. After that the database team will import that file into the DB. So my issue is that after the download I cannot open the file. It is a .tab file; more or less the same as a .csv file; just tab delimited instead of comma delimited. The error is: <page> is not a valid single file web page. Any ideas why?

View Complete Post

More Related Resource Links

How to download emails with attachment from exchang server 2003 through .NET c#

Hi I am building .net c# application based on exchange server 2003. I would like to know how to download the emails with attachments from exchange server 2003 through code.  We have found following options to achieve the target. Available option on 2003 1. Outlook object model - issue with hosting in service 2. WebDav - required learning curve as given in MSDN. It also has limits on support in calendar. I hope we are not using calendar. 3. CDOEX is built on top of ExOLEDB. It can be used only on the same exchange server itself. 4. MAPI and CDO 1.21 not supported in managed .Net code. Anybody please tell me which one best suited to achieve the goal or is there any other solution for this.    Thanks and Regards Ashish  

Cannot download xlsx file attachment from list using "Save Target As"


When a list item has an Excel file such as "test.xlsx" attachment, there is no way to download a copy of it. Right click the file and click "Save Target As", it asks for saving a "xlviewer.htm" file. We just want to be able to right click the file and download the file as we are doing with any other types of files.

Word 2010 Crashes When Trying to Open/Download File From SharePoint 2010 Using IE8



I'm trying to find a solution to an issue I'm having with Word 2010/SharePoint 2010/ and IE 8 working (or rather not working) together.

I'm using Windows XP, and I have recently upgraded from Office 2007 to Office Pro 2010, in doing so, I can no longer open Word 2010 .doc or .docx files via our SharePoint site using IE8.  I can however, open these files without a problem using Chrome and Safari.  I would prefer to use IE8, as it provides better functionality in other areas for SP.

I have tried the following:

  • Unistall/Re-install of SharePoint Designer, IE8 and Office Pro 2010.
  • Ran the repair and config on Office 2010
  • Reset the IE security settings.
  • Unchecked the "automatically detect settings" box under the LAN connections.
  • Added our SP site to Trusted Sites
  • Disabled each view under Protected View in Word Options Trust Center.
  • Checked the Save settings under Word Options Save.

 - all steps either together or separate to no avail!

For a bit more detail - here's the error I'm receiving:
"Microsoft Word has encounted a problem and needs to close.  We are sorry for the inconvenience."
AppName: winword.exe      AppVer: 14.0.4734.1000     AppStamp:4b58fb0e<

How To Open Fancy Tooltip from GridView

This article will show How To Open show Fancy Tooltip in GridView.

Download and Share Visual Studio Color Schemes

The good news is that Visual Studio allows you to completely customize the editor background and text colors to whatever you want - allowing you to tweak them to create the experience that is "just right" for your eyes and personality. You can then optionally export/import your color scheme preferences to an XML file via the Tools->Import and Export Settings menu command.

Free e-books Download

This is the link where we have get free e-books for downloading

Open ModalPopup dialog on page load


Is there a way to make a modal popup panel active on page load so that the user can't do anything until they deal with the popup dialog?

how to know when a user finish his file download successfully ?


hi all

i am doing a page to sell files online

 the paying method is by a card or bank account and the customer is not registered to the site so i want to make sure that the customer has downloaded the file successfully after that the system completes the payment operation

so if there is any way to know do that tell me please

i use c# thanx all



Open PopUp Window From Error httpModule


I would like to open a popup window from the assembly to present the information to the user. Does anyone know if this is possible, I am presently doing the following:

        WriteLine("body {font-family:""Verdana"";font-weight:normal;font-size: .7em;color:black; background-color:white;}")
        WriteLine("b {font-family:""Verdana"";font-weight:bold;color:black;margin-top: -5px}")
        WriteLine("H1 { font-family:""Verdana"";font-weight:normal;font-size:18pt;color:red }")
        WriteLine("H2 { font-family:""Verdana"";font-weight:normal;font-size:14pt;color:maroon }")
        WriteLine("pre {font-family:""Lucida Console"";font-size: .9em}")

Microsoft Office Excel cannot open or save any more documents because there is not enough available


hi all,

     i am new to asp.net programming i am trying to create an ms excel file with charts drawn in it,

i wrote the complete code for it but the it is saying

Microsoft Office Excel cannot open or save any more documents because there is not enough available memory or disk space. 

i have set the permissions to my complete disk space and all user accounts, and i tried with anti-virus disabling also it didnt work please try to help me out and my code is :

Imports System.Data.OleDb
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Tools.Excel
Imports System

Merge SQL to Excel--Need .Net button to open on fly and have current SQL data!


           Hello all,
I do not know if this is the proper place to ask this, but my question is...
I have a SQL DB and I want to convert it to Excel Sheet (I did this using the wizard)!
In my aspx page I have a button.  So when I press this button I want the Excel sheet to open!  But I need the Excel sheet to show me the up to date information that is in the SQL DB.  

System.Runtime.InteropServices.COMException (0x800A03EC): Microsoft Excel cannot open or save any mo


Hello good people, 

I have this beast as an error. Did my research and found some posts here as well but did not do any good for me. 

Here is what I did. I had an error regarding issue rights with COM objects so I gave access rights under component services for Microsoft Excel application now I am getting this error. 

Here is some information regarding this

1. Gave rights to ASPNET and network service to my web app directory to try to fix this error. 

2. The exact same process works on my Windows 2003 server and my Windows 7 development machine. I am trying to get this going on a different windows 2003 machine that is outside of our domain.

3. Developing on windows 7 64 bit with office 2010 installed. Also excel 2010 is installed on my Web server

4. Here is the code that is causing the error: The last line is causing the error.:

            MyXl = new Microsoft.Office.Interop.Excel.Application();
            MyXl.Visible = false;
            MyWb = (Microsoft.Office.Interop.Excel._Workbook)(MyXl.Workbooks.Add(Missing.Value));
            int test = 0; 
            MySheet = (Microsoft.Office.Interop.Excel._Worksheet)MyXl.ActiveSheet;
            if (reader.HasRows)
                int InRow = 2; 
                for (int i = 0; i < Nu

where can i download from SSRS?


Hi all,

My  machine is alread installed with Sql Server 2005.  I need to install sql server 2005 reporting services as a add-on.

Where can i download this from. Can anyone post the link here..?


Thanks in advance


Error Message when trying to open crystal report


Logon failed. Details: 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "DATA" requested by the login. The login failed. Error in File C:\Windows\TEMP\NewQuote {573CE511-64B7-4161-B9DF-0E58EB1EDA19}.rpt: Unable to connect: incorrect log on parameters.

I get the above message when loading the crystal report from the Intranet via IIS but it works fine from the localhost the report loads ok and picks up my parameters.  This is my Code behind Page.

Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Load

        Dim Count As Int32
        Count = Int32.Parse(Label1.Text)

        Dim ConnInfo As New ConnectionInfo
        With ConnInfo
            .ServerName = "\\Server1\Sqlexpress"
            .DatabaseName = "DATA"
            .UserID = "sa"
            .Password = "1181

Practical OData: Building Rich Internet Apps with the Open Data Protocol


See how you can build Rich Internet Applications that take advantage of the OData protocol to creatively interact with Silverlight, PowerPivot, SQL Server, SharePoint, the Windows Azure platform, "Dallas" and more.

Shayne Burgess

MSDN Magazine June 2010

SharePoint and Open XML: Generating Documents from SharePoint Using Open XML Content Controls


This article describes how to generate documents that contain data stored in SharePoint lists. The example demonstrates how OpenXML content controls can be defined to capture list data in a Word document and how LINQ to XML can be used to query the lists. The documents are generated from a SharePoint Web Part.

Eric White

MSDN Magazine October 2009

Patterns in Practice: The Open Closed Principle


Extending an existing codebase can be as productive and frustration-free as writing all new code when you employ the Open Closed Principle. We'll show you how.

Jeremy Miller

MSDN Magazine June 2008

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend