error

How can you use ASP.NET MVC build from source rather than the GAC?

I've installed the ASP.NET MVC locally, but I want to be able to use the code that is in the SVN repository on CodePlex rather than the released 1.0 version. However if I remove the reference to the GAC assembly in my solution and add the reference to the locally built System.Web.Mvc, it will build fine, but at runtime it says: Pars...

allocating and freeing a char * in c++

Hey everyone, I am getting a heap corruption error I cannot figure out. char * c = (char *) malloc(1); // main loop _gcvt_s(c, 100, ball->get_X_Direction(), 10); if(pushFont(c, (SCREEN_WIDTH - 30), (SCREEN_HEIGHT - 40), message, screen, font, textColor) == false) { //return 1; // error rendering text. } // end main loop f...

What does this C error about structures mean?

Hey everyone! Could someone please help me understand this error in C for structures? This is my code: struct Orientation { char facing; char sensor; char mazeDir; }; struct Orientation O[16]; O[0] = {'N', 'F', 'N'}; O[1] = {'N', 'B', 'S'}; O[2] = {'N', 'R', 'E'}; O[3] = {'N', 'L', 'W'}; O[4] = {'S', 'F', 'S'}; O[5] = {'S'...

Flex loads SWF as Sprite. How do I load it as a Movieclip instead?

Hi, I have a problem converting SWFLoader.content into a MovieClip instance while following (TheFlashCanon's excellent tutorial) on making a SWF communicate with Flex. The SWF loaded in question is compiled using Flash CS3 (using actionscript 3). However, when I try to get the content of the SWFLoader and convert it into a MovieClip ins...

Eclipse console: detect warning and error patterns and make them clickable

I'm running the flex compiler (mxmlc) from ant inside eclipse for some of our builds (they are meant to run on our continuous integration server as well, that is why I don't build using flex builder itself) -- the patterns of mxmlc are not recognized by the eclipse-console, so I cannot click on them. The patterns is like this: <absolut...

Creating 100,000 tcp connections using .NET

I am writing a little Comet server in C#, and to test it I have written a little program that opens a bunch of connections, writes a little text to each of them, and then closes each of them: int basePort = 30000; IPAddress localAddress = new IPAddress( new byte[] { 127, 0, 0, 1 } ); List<Socket> sockets = new List<Socket>(); for( int ...

Mvc.FormatDescription error in ASP.NET

Hi there, I'm testing the security of my application and by injecting some quotes in one of my parameters, the system returns the following error: Invalid token, expected closing quote ' on {busobj:Mvc.FormatDescription('{var:entity=Transactions.Allowance,idValue=069'"}')} I did not successfully find anything that could explain what ...

Django/Python EnvironmentError?

I am getting an error when I try to use syncdb: python manage.py syncdb Error message: File "/usr/local/lib/python2.6/dist-packages/django/conf/__init__.py", line 83, in __init__ raise EnvironmentError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) EnvironmentError: ...

Django/Python UserWarning Error

I keep getting this error/warning, which is annoying, and wanted to see if I can fix it, but I'm not sure where to start (I'm a newbie): /home/simi/workspace/hssn_svn/hssn/../hssn/log/loggers.py:28: UserWarning: ERROR: Could not configure logging warnings.warn('ERROR: Could not configure logging', UserWarning) I'm getting this when ...

DB2 Equivalent to SQL's GO?

I have written a DB2 query to do the following: Create a temp table Select from a monster query / insert into the temp table Select from the temp table / delete from old table Select from the temp table / insert into a different table In MSSQL, I am allowed to run the commands one after another as one long query. Failing that, I can ...

Settings.Designer file and Staticness

I have a DAL class library that is included in my program as a DLL. The below line is from the DAL to initialize the connection. DataSet ds = new DataSet("table"); SqlConnection cnn = new SqlConnection(Settings.CMOSQLConn); When I run this I get the below error: An unhandled exception of type 'System.StackOverflowException' o...

Differences betweeen Exception and Error

I'm trying to learn more about basic Java and the different types of Throwables, can someone let me know the differences between Exceptions and Errors? ...

What is the cause of this error message: "...fstream(934)...cannot access private member..."? (C++)

When I compile a program in C++ (that is too large to simply cut abd paste here), I get this error: c:\program files\microsoft visual studio 9.0\vc\include\fstream(934) : error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>' What does this error mean, wh...

Vector of pointers template clearing function fails to compile with "undefined reference" message

Hello all, For a program of mine I made a small function to clear the various std::vectors of pointers that I have. template <class S> void clearPtrVector(std::vector<S*> &a,int size) { for(size_t i = 0; i < size; i++) delete a[i]; a.clear(); } I must have done something wrong here though since when calling this fun...

js seems not to be able to find my form

<div class="poll"> <h1>Poll</h1> <form name="pollvoteform1" method="post" xxaction="/plugins/content_types/poll/poll.php"> <p class="tekstaanmelden"><b>Het regent </b></p> <input type="hidden" name="poll" value="1"> <input type="hidden" name="cmd" value=""> <div class="pollOption"><input type="radio" class="stel...

Sql Server 2005 Restore Failing

Running sql server 2005 I have database A. I am trying to restore from a backup of A to database B. I want to retain the database A and create a new testing database B from a previous set of data. I tried to create B and restore from the .bak AND restore database to B from management studio. The error is... TITLE: Microsoft SQL Ser...

WCF Error: Stream Security is required at http://www.w3.org/2005/08/addressing/anonymous, but no security context was negotiated.

We have a windows service that we are trying to use as WCF host for a WPF application. It works fine in development but when we have tried to move to our production environment we have had nothing but problems. From reading posts from others, we figured out how to turn on WCF logging and this was a big help. It turned out that our sec...

LINQ:: Error in getting User

hi.. i have a table "Users" in database. it have three colu mns Id (bigint) PK Username (varchar) Password (varchar) i want to get user based on id i am u sing this code bt it is giving me error using (var db = new UsersDataContext()) { // ERROR :: Cannot implicitly convert type 'long' to 'bool' ...

LINQ ERROR : Explicit construction of entity type

hi.. i am getting this error at GridView1.DataBind(); Explicit construction of entity type 'WebApplication1.MUser' in query is not allowed. using (var db = new UsersDataContext()) { IEnumerable<MUser> user = from u in db.MUsers where u.Id == 1 ...

Help with error message from gcc

Any idea about this error? gcc -oxtmpmain.exe xtmpmain.o fiber_driver.o xtmp_options.o getopt.o D:\usr\xtensa\XtDevToolsDE\in stall\tools\RB-2008.4-win32\XtensaTools\lib\iss\xtmp.lib xtmpmain.o(.text+0x213):xtmpmain.c: undefined reference to `_uart_setup' xtmpmain.o(.text+0x2da):xtmpmain.c: undefined reference to `_uart_cleanup' coll...