15,900,511 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Bitla Phanindra (Top 11 by date)
Bitla Phanindra
23-Jun-14 12:03pm
View
The foreach you have at the top might be causing the issue.
Bitla Phanindra
23-Jun-14 11:38am
View
What error are you getting?
Bitla Phanindra
23-Jun-14 11:35am
View
Check my comment below..
Bitla Phanindra
23-Jun-14 11:34am
View
You can try it this way..
if (FilePath.Trim().EndsWith(".xlsx"))
{
strConn = string.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties=\"Excel 12.0 Xml;HDR=YES;IMEX=1\";", FilePath);
}
else if (FilePath.Trim().EndsWith(".xls"))
{
strConn = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\";", FilePath);
}
Bitla Phanindra
20-Nov-12 1:39am
View
Use Google buddy, instead of posting a question here.
Bitla Phanindra
19-Nov-12 4:18am
View
What error message do u get when you run this??
Bitla Phanindra
19-Nov-12 4:17am
View
Check if the datatypes of the table's coulmns are matching in the query. If not, use proper Convert statements accordingly.
Bitla Phanindra
31-Oct-12 2:07am
View
Deleted
ASP.NET Web page and server control code executes in the context of the ASP.NET worker process on the Web server. If you use the Start method in an ASP.NET Web page or server control, the new process executes on the Web server with restricted permissions. The process does not start in the same context as the client browser, and does not have access to the user desktop. http://msdn.microsoft.com/en-us/library/0w4h05yb.aspx
- Give permission for ASP.NET worker process account
to interact with desktop or allow ASP.NET worker process to run in SYSTEM account.
•To know how to allow worker process to run in SYSTEM account and to know the default permissions of ASPNET account, check this article INFO: Process and Request Identity in ASP.NET: http://support.microsoft.com/default.aspx?scid=kb;en-us;317012
- Enable IIS Admin Service to interact with desktop
To configure this, follow this steps.
•a. Open Control Panel and follow these steps: For Windows NT: click Services. For Windows 2000, Windows XP, and .NET Server: click Administrative Tools, and then click Services.
•b. Double-click IIS Admin Service.
•c. On the Log On tab, select the Allow Service to Interact with Desktop check box. Remember to run IIS Admin Service as a local system.
•d. Stop and restart the IIS Admin Service.
Bitla Phanindra
29-Oct-12 8:02am
View
Does the database column allow nulls?
Bitla Phanindra
17-Oct-12 1:59am
View
If you're using Windows XP with service pack 2, enable ActiveX controls by following these instructions:
-Click the Start menu, then Control Panel.
-Double-click Internet Options.
-Click the Security tab.
-Click the Internet icon, then click the Custom Level button.
-Make sure that ActiveX controls and plug-in settings are all set to "Enable".
Bitla Phanindra
16-Oct-12 3:26am
View
Welcome!!
Show More