Click here to Skip to main content
14,765,693 members
Home » Discussions » ASP.NET


AnswerRe: Why people use .AsEnumerable() along with EF query Pin
Nathan Minier12-Feb-18 2:46
professionalNathan Minier12-Feb-18 2:46 
QuestionAzure csv radgrid dataset bind attempt Pin
jsegreti10-Feb-18 5:39
Memberjsegreti10-Feb-18 5:39 
QuestionAdd a Nuget Package Using dotnet add Pin
Priyanka Kale9-Feb-18 22:43
MemberPriyanka Kale9-Feb-18 22:43 
AnswerRe: Add a Nuget Package Using dotnet add Pin
User 418025411-Feb-18 4:22
MemberUser 418025411-Feb-18 4:22 
QuestionVSOT Pin
kumardm93289-Feb-18 16:45
Memberkumardm93289-Feb-18 16:45 
AnswerRe: VSOT Pin
User 41802549-Feb-18 17:56
MemberUser 41802549-Feb-18 17:56 
GeneralRe: VSOT Pin
kumardm93289-Feb-18 18:40
Memberkumardm93289-Feb-18 18:40 
AnswerRe: VSOT Pin
Richard Deeming12-Feb-18 10:08
mveRichard Deeming12-Feb-18 10: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 MVC application Pin
User 41802549-Feb-18 12:29
MemberUser 41802549-Feb-18 12:29 
QuestionDashboard Build in .net with Bootstrap Pin
RekhaDhankhar9-Feb-18 7:13
MemberRekhaDhankhar9-Feb-18 7:13 
AnswerRe: Dashboard Build in .net with Bootstrap Pin
User 41802549-Feb-18 13:33
MemberUser 41802549-Feb-18 13:33 
QuestionAspects Every ASP.Net Developers Must Know Pin
Priyanka Kale9-Feb-18 0:40
MemberPriyanka Kale9-Feb-18 0:40 
AnswerRe: Aspects Every ASP.Net Developers Must Know Pin
User 418025411-Feb-18 4:28
MemberUser 418025411-Feb-18 4:28 
GeneralRe: Aspects Every ASP.Net Developers Must Know Pin
Priyanka Kale14-Mar-18 21:00
MemberPriyanka Kale14-Mar-18 21: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 14:24
Memberindian1438-Feb-18 14:24 
QuestionShopping site based on sql data? Pin
JoeJack03308-Feb-18 11:01
MemberJoeJack03308-Feb-18 11:01 
AnswerRe: Shopping site based on sql data? Pin
David Mujica9-Feb-18 4:53
MemberDavid Mujica9-Feb-18 4:53 
QuestionEF: How to minimize search code Pin
Mou_kol8-Feb-18 2:53
MemberMou_kol8-Feb-18 2:53 
QuestionASP.NET Core to IIS Pin
Priyanka Kale8-Feb-18 0:25
MemberPriyanka Kale8-Feb-18 0:25 
AnswerRe: ASP.NET Core to IIS Pin
User 41802549-Feb-18 13:35
MemberUser 41802549-Feb-18 13:35 
QuestionParsing JSON Pin
A_Griffin7-Feb-18 23:40
MemberA_Griffin7-Feb-18 23:40 
AnswerRe: Parsing JSON Pin
F-ES Sitecore8-Feb-18 0:57
mveF-ES Sitecore8-Feb-18 0:57 
GeneralRe: Parsing JSON Pin
A_Griffin8-Feb-18 1:08
MemberA_Griffin8-Feb-18 1:08 
AnswerRe: Parsing JSON Pin
Richard Deeming8-Feb-18 2:01
mveRichard Deeming8-Feb-18 2:01 
QuestionEntityFramework: Can we minimize sorting code Pin
Mou_kol6-Feb-18 3:46
MemberMou_kol6-Feb-18 3: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.