I've got an ASP.NET app that uses the standard SQL Server Membership provider to authenticate. Works fine with a local database (this is NOT SQL Svr Express!). When I try to authenticate against a remote database, even with correct connection string, I always get a 'Named Pipes Provider, error 40: Could not open a connection to SQL Serve...
The program I've written is set to only accept positive integers as input. If the user inputs a letter instead, then it crashes. Negative integers don't cause any problems, though it's not 'valid' in regards to how my program functions.
What I want to do is:
Prevent the program from crashing from invalid input.
Display an error messag...
I am receiving this error. I have no clue as to why it would be called, and google didn't really help, any suggestions?
-[UIWindow endDisablingInterfaceAutorotation] called on <UIWindow: 0x4e0ec50; frame = (0 0; 320 480); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x4e0f9e0>> without matching -beginDisablingInterfaceAutorotation...
I recently released an application about a month ago, it was thoroughly tested by myself, my partner, and beta testers. Recently a user contacted me about the app not even being able to open (crashes after start up screen), they have the correct OS and they tried reinstalling.
I asked for the crash log and they sent me it...
Exception...
If I try executing the following code
f = file('test','rb')
fout = file('test.out','wb')
for i in range(10):
a = f.read(1)
fout.write(a)
f.close()
f = fout
f.seek(4)
print f.read(4)
Where 'test' is any arbitrary file, I get:
Traceback (most recent call last):
File "testbad.py", line 12, in <module>
print f.read(4)
IO...
After setting up an ASP.NET website in IIS7 I get an Internal Server Error (500.19) that says:
'Unrecognized configuration path'.
What are possible causes of this error?
(Setting up other ASP.NET websites works OK, but for a particular website it does not work and I cannot figure out the difference.)
Detailed error description:
...
The error I'm receiving is listed here.
That's my HibernateUtil.java
package com.rosejapan;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;;
public class HibernateUtil
{
private static final SessionFactory sessionFactory;
static
{
try
{
// Create the Sess...
Found a great tip from Ca Phun Ung about determining if I'm at the bottom of a div:
http://yelotofu.com/2008/10/jquery-how-to-tell-if-youre-scroll-to-bottom/
var elem = $('#box');
if (elem[0].scrollHeight - elem.scrollTop() == elem.outerHeight()) {
// We're at the bottom.
}
Works well in FF and Safari, of course, but I have one err...
i am try to create an uploader in excel using vb (macro) to store data in an access database. i believe in terms of the script everything is ok. its just that when i run the upload it gives me the error Compile error - User-Defined type not defined and once i click on OK it highlights the part where it finds the error which is:
Private S...
I'm using prepared statements and MySQLi, and am currently getting this error.
PHP Catchable fatal error: Object of class mysqli_stmt could not be converted to string in /Users/me/path/to/project/ModelBase/City.php on line 31
The code it's coming from (full function):
function select($query, $limit)
{
$query = "%".$query."%"...
Hi all,
I have a WPF application that's crashing once I get it onto machines that do not have a development environment installed-- if this is a dupe, I'm welcome to closing, but I my search-fu is failing to find an equivalent question. It appears that I'm getting a XamlParseException, but nothing more useful than that. I need to get ...
EDIT: This problem has been solved. See below.
Hey all. I'm building an iPhone application against my own library. To do this, I have the library project referenced from within the application. I have the header path properly set up, as compilation doesn't cause any issues. However, I'm having trouble during the linking phase and I get ...
UPDATE: appologies for the wrong place I chose to put stuff. I didn't notice those adds @Sinan mentioned at all probably they had been blocked by my browser. Anyway I've deleted the links now. and thank you guys :)
In my [previous post][1], @daotoad mentioned an Inline module. Now I'm playing around with it. Well, actually except for Pe...
I installed TFS 2010 (RC) on my servers then installed VS2008 Team Explorer and SPs on my client. Next, I installed VS2010 Team Explorer (VS Shell). I've been using it for a few days now and I've been able to right-click/open in Project with no problem. Today, I am getting:
Unable to cast COM object of type 'Microsoft.Office.Inter...
I have several ASP.NET websites in a solution along with a common C# code project. Something as follows:
Website1
Website2
...
Website(n)
Common
First off I want to use a Global.asax file to log all unhandled exceptions. I could have one Global.aspx file per website but all the code will be the same and it seems pointless having to k...
For my compsci class, I am implementing a Stack template class, but have run into an odd error:
Stack.h: In member function ‘const T Stack<T>::top() const [with T = int]’:
Stack.cpp:10: error: passing ‘const Stack<int>’ as ‘this’ argument of ‘void Stack<T>::checkElements() [with T = int]’ discards qualifiers
Stack<T>::top() lo...
I'm using SQLyog to sync a production database to a dev db. On 4 tables, I'm getting:
Error No. 1205 Lock wait timeout exceeded; try restarting transaction
Researching the web seems to indicate that a transaction has begun, locked tables, but has not committed. One post said to SHOW PROCESSLIST; but the only processes appear to be my o...
How can I make a verify error for this command?
if blablablabla:
os.makedirs('C:\\test\\')
If the folder already exists, he return me an error... how can I make it ignore this error? and move on ?
...
Not sure how to do this, here is my code
Dim oWeb As New System.Net.WebClient()
oWeb.Headers.Add("Content-Type", "application/x-www-form-urlencoded")
Dim bytArguments As Byte() = System.Text.Encoding.ASCII.GetBytes("username=username&password=password")
Dim bytRetData As Byte() = oWeb.UploadData("https://www.website.com",...
EDIT: TL;DR version
I typed this
CREATE INDEX IF NOT EXISTS IDX_FILE_SIZE table_name (file_size);
instead of this
CREATE INDEX IF NOT EXISTS IDX_FILE_SIZE ON table_name (file_size);
Don't do that.
...