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

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

Error: Do you want to save this file, or find a program online to open it?

Posted By:      Posted Date: August 26, 2010    Points: 0   Category :ASP.Net


I am relatively new to MVC , i am getting the following error when i try to browse to a page in which i have used usercontrol and within the usercontrol i have a simple grid.

Error: Do you want to save this file, or find a program online to open it?

I am returning the data from the controller like this

 var jsonData = new
                    total = 1,
                    page = 1,
                    records = myRequests.Count,
                    rows = new[]{myRequests.ToArray()                 

View Complete Post

More Related Resource Links

File open error in grid



I am using gridview control which has the option to open the file like jpg,pdf etc. The grid is under UpdatePanel template.When i try to open the file in seperate window by using the below code

If (e.CommandName = "Open") Then 

Dim path = e.CommandArgument  

Dim strNewURL As String = "<Script Language = 'JavaScript'>window.open('www.google.com')</Script>"



i am getting following error:

"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by

LINK : fatal error LNK1104: cannot open file 'libirc.lib'

I am trying to build my project for 64 bit windows on a 32 bit windows machine. I am getting a linking error of the kind 15>LINK : fatal error LNK1104: cannot open file 'libirc.lib' Can someone tell me the resolution for this problem?

Unable to open physical file - Operating system error 5: 5(error not found) Microsoft SQL Server: Er

I am trying to attach a database to SQL 2005. This database has not previously been attached. I have only just installed SQL.   I get the following message: Unable to open physical file "C:\ArrowSQL\Arr@Data\Arrow_data.mdf" Operating system error 5: "5(error not found)" (Microsoft SQL Server: Error 5120)".   I have loaded SQL and the database fiel and directory with the same user acccount which is a local adminstrator ont hsi machine. I have checked that I have read/write access to the file.   The machine runs Windows Vista Business. SQL has SP 2 loaded.   What causes this?

File not found error when trying to open site permissions on a blog site

We have created a simple team site and a block subsite.  When trying to edit the site permissions we see the following error.  Any ideas? When opening a blog site and clicking Site Actions - site permissions we received a new page with the following error: Error File Not Found Troubleshoot issue with Microsoft Sharepoint Foundation Correlation ID: 51b54786-f344-4474-b88e-3080c363693 Date and Time: 3/24/2010 3:03:38 PM

SSIS throws error when it doesn't find file

Hello All, I am facing one issue that i dont know in advance if there is file on FTP or not. I scheduled a job which runs every hour which in turn calling SSIS package. Now, when there is file on FTP, it works fine. But, when there is no file on FTP then itthrows error which i want to handle. Is it possible to check for any files present on FTP? Cheers, Pranav

Error: 0x80070002 The system cannot find the file specified

From Windows Server 2003 Std Ed SP, 32 bit VMWare Virtual Server .Net Framework v1.1.4322 When attempting to run a hello world aspx page it fails to load returning the message "Server Application Unavailable".  The application even viewer logged the following: Event Type: ErrorEvent Source: ASP.NET 1.1.4322.0Event Category: NoneEvent ID: 1088Description:Failed to execute request because the App-Domain could not be created. Error: 0x80070002 The system cannot find the file specified. I tried to run aspnet_regiis.exe -i, rebooted but this did not work. I tried to uninstall, reboot, reinstall .net from the Windows component section of Add/Remove Programs. Does anybody have any ideas? thanks, MP

Getting error that the converter failed to save the file

From a document library I click on "Edit in Microsoft Excel (or Word) and the application is not open I get the error "The converter failed to to save the file".  It never opens the application and I'm returned to the document library.  If I already have the application it doesn't generate the error.  I'm running Office 2007

FCB::Open: Operating system error 32(The process cannot access the file because it is being used by

Hello all,I am running into an interesting scenario on my desktop.  I'm running developer edition on Windows XP Professional (9.00.3042.00 SP2 Developer Edition).  OS is autopatched via corporate policy and I saw some patches go in last week.  This machine is also a hand-me-down so I don't have a clean install of the databases on the machine but I am local admin.So, starting last week after a forced remote reboot (also a policy) I noticed a few of the databases didn't start back up.  I chalked it up to the hard shutdown and went along my merry way.  Friday however I know I shut my machine down nicely and this morning when I booted up, I was in the same state I was last Wenesday.  7 of the 18 databases on my machine came up withFCB:pen: Operating system error 32(The process cannot access the file because it is being used by another process.) occurred while creating or opening file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Test.mdf'. Diagnose and correct the operating system error, and retry the operation.and it also logs  FCB:pen failed: Could not open file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Test.mdf for file number 1. OS error: 32(The process cannot access the file because it is being used by another process.).I've caught references to the auto close feature being a possible culprit, no dice as the databases in question are set to Fal

By pass the prompt - Do you want to open or save this file?


Is there any way that I can avoid or bypass the following prompt: Do you want to open or save this file?

I am using a data view webpart where I have hyper-linked a column with  an infopath file. So when ever I click on the hyperlink, a window prompts with the mentioned text.

Any help in this regard will be appreciated!

"Failed to save package file" error


I receive the following error while trying to create a new project in BIDS:

"Failed to save package file "C:\Users\<username>\Local Settings\Temp\2\tmpCAD.tmp" with error 0xC020207E "The file name is not valid.  The file name is a device or contains invalid characters"

Environment is:

Windows 2008 Server SP1 (64 bit)

Visual Studio Team System 2008

Any ideas?

open WCF svc file error in IIS


Hello everyone,

I am using VSTS 2010 + C# + .Net 4.0 + IIS 7.5 + Windows 7. When I open a WCF svc file in IIS 7.0, there is some error like this, any ideas what is wrong?

System.BadImageFormatException: Could not load file or assembly 'foo.test' or one of its dependencies.

thanks in advance,

Error when trying to open a file with Process.Start()



Well, I have a folder called GUI. Inside GUI thers another folder called PDF and inside this folder, there are some PDF files. This folder (GUI) is uploaded to the server too.

Then I have a WebForm with some ImageButtons. When I click one of these ImageButtons, I want the file to open in a new tab. I tried with the following code:

private void LnkRelease_Click(object sender, EventArgs e)
 try { if ((((System.Web.UI.WebControls.WebControl)(sender))).ToolTip != "") { string virtualFolder = @"~\GUI\"; string physicalFolder = Server.MapPath(virtualFolder); string virtualPath = physicalFolder + "PDF" + @"\" + ((System.Web.UI.WebControls.WebControl)(sender)).ToolTip;  System.Diagnostics.Process.Start(virtualPath);
  } else { Console.WriteLine("The URL is broken"); } } catch (Exception ex) { throw ex; } }

As you can see, I build the path using the tooltips of the different ImageButtons. The ToolTip = File Name I want to open.

When I try this in debug mode, it works. It opens the pdf file in a new tab. However when I

Error creating package - Failed to save package file



I have Windows Server 2008 R2. I had just installed SQL 2008 SP1 Dev Ed. on my box and got an error message when I tried to create a package using the BI IDE. But the project was created regardless without any packages. When I tried to create a new package in the project, I received the same error again. 

Following is the text of the error details:


Error creating package (Microsoft Visual Studio)


Failed to save package file "C:\Users\<UserName>\Local Settings\Temp\2\tmp8C4E.tmp" with error 0xC020207E "The file name is not valid. The file name is a device or contains invalid characters.".

Program Location:

   at Microsoft.SqlServer.Dts.Runtime.Application.SaveToXml(String fileName, Package package, IDTSEvents events)
   at Microsoft.DataTransformationServices.Wizards.Dts90WizardSaveNewTask.SaveToTempFile(Package package)
   at Microsoft.DataTransformationServices.Wizards.Dts90WizardSaveNewTask.AddPackageToProject(Package package, String itemName)
   at Microsoft.DataTransformationServices.Wizards.Dts90WizardSaveNewTask.CreateAndAddPackageToProject()
   at Microsoft.DataTran

System.EnterpriseServices.dll' because of system error: The system cannot find the file specified.




Can anyone help in resloving this problem I get during the .Net 2.0 Frameworks distribution ?

Thanks in advance!

MSI (s) (7C:A4) [09:33:28:295]: Executing op: ActionStart(Name=CA_InstallAssemblyRB.3643236F_FC70_11D3_A536_0090278A1BB8,,)
11/24/06 09:33:28 DDSet_Exit: InstallAssembly ended with return value 0
MSI (s) (7C:A4) [09:33:28:310]: Executing op: CustomActionSchedule(Action=CA_InstallAssemblyRB.3643236F_FC70_11D3_A536_0090278A1BB8,ActionType=1281,Source=BinaryData,Target=UninstallAssembly,CustomActionData=System.EnterpriseServices,Version=,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral,ProcessorArchitecture=x86;258048)
MSI (s) (7C:A4) [09:33:28:310]: Executing op: ActionStart(Name=CA_InstallAssemblyDef.3643236F_FC70_11D3_A536_0090278A1BB8,,)
MSI (s) (7C:A4) [09:33:28:310]: Executing op: CustomActionSchedule(Action=CA_InstallAssemblyDef.3643236F_FC70_11D3_A536_0090278A1BB8,ActionType=1025,Source=BinaryData,Target=InstallAssembly,CustomActionData=c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.EnterpriseServices.dll;258048)
MSI (s) (7C:80) [09:33:28:310]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI1D.tmp, Entrypoint: InstallAssembly
11/24/06 09:33:28 DDSet_Status: LANGID: 1033
11/24/06 09:33:28 DDSet_Entry: InstallAssembly started
11/24/06 09:33:28 DDSet_Status: CustomActionData: c

Issue with MOSS 2010, infopath, I.E. 8 and pdf file (no open, just save-cancel)



I have an annoucement list, which  has been customized in infopath ("customize Form" button). Nothing funcy, just adding some comments.

When i open an item with I.E. 8., and click on  the (attached) pdf file, a popup window appears with only the selections: (save-cancel)

If I do the same steps using I.E. 7, I have the selection "open", so I can see the pdf file inside my browser.

Is there any solution?

Also, two newbie questions:

a)Is there a way to revert to the original open-edit-new item form and discard the infopath forms?

b) how to show the created by/last modified date/last modified by in this infopath form?


Thank you



how to force that any type of file , will open with my program ?


i have build program that can open *.sdf files and show all the table & the data.

how to force that any *.sdf file in my computer will open with my program ?

thank's in advance

Error opening Office Open XML file when using SD workflow to create item in document library.


I have a Sharepoint document library that is using a word template with xml mapping (Word-Sharepoint).

I have a workflow created in Sharepoint designer that Creates an item in this document library with select data from a form library on the same site. 

It appears to create the entry in the document library correctly, it is showing the copied data from the form library and the correct default data in the columns specific to the document library. The explorer view shows the filename.docx files.

I am able to edit the data using the datasheet view, however it will not open the word document.

The error message reads "The Office Open file <filename> cannot be opened because there are problems with the contents." If I click on the details button it states "No error detail available".

Any ideas?

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