Click here to Skip to main content
15,881,938 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Why people use .AsEnumerable() along with EF query Pin
Nathan Minier12-Feb-18 1:46
professionalNathan Minier12-Feb-18 1:46 
QuestionAzure csv radgrid dataset bind attempt Pin
jsegreti10-Feb-18 4:39
jsegreti10-Feb-18 4:39 
QuestionAdd a Nuget Package Using dotnet add Pin
Priyanka Kale9-Feb-18 21:43
Priyanka Kale9-Feb-18 21:43 
AnswerRe: Add a Nuget Package Using dotnet add Pin
User 418025411-Feb-18 3:22
User 418025411-Feb-18 3:22 
QuestionVSOT vb.net Pin
kumardm93289-Feb-18 15:45
kumardm93289-Feb-18 15:45 
AnswerRe: VSOT vb.net Pin
User 41802549-Feb-18 16:56
User 41802549-Feb-18 16:56 
GeneralRe: VSOT vb.net Pin
kumardm93289-Feb-18 17:40
kumardm93289-Feb-18 17:40 
AnswerRe: VSOT vb.net Pin
Richard Deeming12-Feb-18 9:08
mveRichard Deeming12-Feb-18 9:08 
You've posted this in the ASP.NET forum. Office Interop doesn't work in ASP.NET; neither does MsgBox.

They might appear to work when you're debugging the code in Visual Studio. But that's only because the client and server are the same computer in that instance.

As soon as you deploy your code to a real server, the MsgBox call will either crash, or cause your code to hang waiting for someone to log in to the server and dismiss the hundreds of hidden message boxes, and then close the hundreds of hidden instances of Excel.

Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.


If you want to open a file on the client, then you need to write it to the response. And to pre-empt your next question: no, you can't force the user to open it, or to save it to a specific location.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


QuestionVideo hosting on asp.net MVC application Pin
User 41802549-Feb-18 11:29
User 41802549-Feb-18 11:29 
QuestionDashboard Build in .net with Bootstrap Pin
RekhaDhankhar9-Feb-18 6:13
RekhaDhankhar9-Feb-18 6:13 
AnswerRe: Dashboard Build in .net with Bootstrap Pin
User 41802549-Feb-18 12:33
User 41802549-Feb-18 12:33 
QuestionAspects Every ASP.Net Developers Must Know Pin
Priyanka Kale8-Feb-18 23:40
Priyanka Kale8-Feb-18 23:40 
AnswerRe: Aspects Every ASP.Net Developers Must Know Pin
User 418025411-Feb-18 3:28
User 418025411-Feb-18 3:28 
GeneralRe: Aspects Every ASP.Net Developers Must Know Pin
Priyanka Kale14-Mar-18 20:00
Priyanka Kale14-Mar-18 20:00 
QuestionASP.Net MVC application is saying build failed but doesn't show me any error but warns "Found conflicts between different versions of the same dependent assembly" Pin
indian1438-Feb-18 13:24
indian1438-Feb-18 13:24 
QuestionShopping site based on sql data? Pin
JoeJack03308-Feb-18 10:01
JoeJack03308-Feb-18 10:01 
AnswerRe: Shopping site based on sql data? Pin
David Mujica9-Feb-18 3:53
David Mujica9-Feb-18 3:53 
QuestionEF: How to minimize search code Pin
Mou_kol8-Feb-18 1:53
Mou_kol8-Feb-18 1:53 
QuestionASP.NET Core to IIS Pin
Priyanka Kale7-Feb-18 23:25
Priyanka Kale7-Feb-18 23:25 
AnswerRe: ASP.NET Core to IIS Pin
User 41802549-Feb-18 12:35
User 41802549-Feb-18 12:35 
QuestionParsing JSON Pin
A_Griffin7-Feb-18 22:40
A_Griffin7-Feb-18 22:40 
AnswerRe: Parsing JSON Pin
F-ES Sitecore7-Feb-18 23:57
professionalF-ES Sitecore7-Feb-18 23:57 
GeneralRe: Parsing JSON Pin
A_Griffin8-Feb-18 0:08
A_Griffin8-Feb-18 0:08 
AnswerRe: Parsing JSON Pin
Richard Deeming8-Feb-18 1:01
mveRichard Deeming8-Feb-18 1:01 
QuestionEntityFramework: Can we minimize sorting code Pin
Mou_kol6-Feb-18 2:46
Mou_kol6-Feb-18 2:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.