15,891,204 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 Parveen Siwach (Top 8 by date)
Parveen Siwach
4-Aug-16 2:24am
View
I tried this and is working fine. Can you share the Zip file that you want to unzip?
protected void btnUnzip_Click(object sender, EventArgs e)
{
StringBuilder newPath = new StringBuilder();
newPath.Append(@"D:\Test\");
string zipPathAndFile = @"D:\Data\User_Data.zip";
ZipInputStream zipIn = new ZipInputStream(File.OpenRead(zipPathAndFile));
DecompressArchive(newPath, zipIn);
}
public static void DecompressArchive(StringBuilder newPath, ZipInputStream zipIn)
{
ZipEntry entry;
while ((entry = zipIn.GetNextEntry()) != null)
{
if (entry.Name.EndsWith("/"))
{
Directory.CreateDirectory(String.Format("{0}{1}", newPath, entry.Name.Replace(@"/", @"\")));
}
else
{
FileStream streamWriter = File.Create(String.Format("{0}{1}", newPath, entry.Name.Replace(@"/", @"\")));
long size = entry.Size;
Byte[] data = new Byte[size];
while (true)
{
size = zipIn.Read(data, 0, data.Length);
if (size > 0) streamWriter.Write(data, 0, (int)size);
else break;
}
streamWriter.Close();
}
}
}
Parveen Siwach
26-Jul-16 16:13pm
View
You have done some sort of hard coding
scannerDevice.Items[1]
What is the output of the following statement
scannerDevice.Items.Count
Parveen Siwach
26-Jul-16 0:43am
View
check that fuDocumentk.PostedFile.InputStream has value
or
check fuDocumentk.PostedFile.InputStream.Length > 0
I think code has no problem, but the problem is with data.
Parveen Siwach
11-Mar-16 7:54am
View
share more details about this issue?
Parveen Siwach
11-Mar-16 7:53am
View
Ok
Parveen Siwach
7-Mar-16 11:03am
View
Refer these links:
http://esimakin.github.io/twbs-pagination/
http://www.jqueryrain.com/2012/04/best-ajax-jquery-pagination-plugin-tutorial-with-example-demo/
http://botmonster.com/jquery-bootpag/#.Vt2mB9Bj9SF
Thanks,
Parveen Siwach
29-Feb-16 6:36am
View
Also you can try these:
1. Make sure your database engine is configured to accept remote connections:
Start > All Programs > SQL Server 2005 > Configuration Tools > SQL Server Surface Area Configuration
Click on Surface Area Configuration for Services and Connections
Select the instance that is having a problem > Database Engine > Remote Connections
Enable local and remote connections
Restart instance
2. You may need to create an exception on the firewall for the SQL Server instance and port you are using:
Start > Run > Firewall.cpl
Click on exceptions tab
Add sqlservr.exe (typically located in C:\Program Files (x86)\Microsoft SQL Server\MSSQL.x\MSSQL\Bin, check your installs for the actual folder path) and port (default is 1433)
Check your connection string as well
From FIX : ERROR : Could not open a connection to SQL Server:
3. Check if your SQL server services is up and running properly:
Go to All Programs > Microsoft SQL Server 2008 > Configuration Tools > SQL Server Configuration Manager > SQL Server Services
Check to make sure SQL Server service status is Running.
In addition, ensure that your remote server is in the same network. Run sqlcmd -L to ascertain if your server is included in your network list.
4. Enable TCP/IP in SQL Server Configuration
When two or more SQL Servers are connected across network they do all communication using TCP/IP. The default port of SQL Server installation is 1433. This port can be changed through SQL Server Configuration Manager. TCP/IP should be enabled for SQL Server to be connected.
Go to All Programs >> Microsoft SQL Server 2008 >> Configuration Tools >> SQL Server Configuration Manager >> Select TCP/IP
Right Click on TCP/IP >> Click on Enable
You must restart SQL Server Services for all the changes to take effect. Right click and go to menu properties to select location where default port of SQL Server can be changed.
Parveen Siwach
29-Feb-16 6:04am
View
And what is the status --- Is it "Running"?
Show More