The following post was very helpful:
http://koenvosters.wordpress.com/2009/08/06/showing-the-real-error-message-in-sharepoint/ - It Shows how to set the IIS to display the full stack trace.
Wednesday, August 26, 2009
Monday, August 24, 2009
ASP.NET Error: The resource cannot be found
Check the following:
1. Check that the target resource exists.
2. Check that ASP.NET is enabled on the IIS:
A. Open: Administrative Tools => Internet Information Service (IIS) Manager
B. Expand the server, click on 'Web Service Extension'
C. Verify that ASP.NET is set as 'Allowed'. If not, change it.
1. Check that the target resource exists.
2. Check that ASP.NET is enabled on the IIS:
A. Open: Administrative Tools => Internet Information Service (IIS) Manager
B. Expand the server, click on 'Web Service Extension'
C. Verify that ASP.NET is set as 'Allowed'. If not, change it.
Labels:
ASP.NET
Sunday, August 16, 2009
Using multiple JavaScript libraries (Prototype, MooTools, jQuery)
I'm a fan of MooTools (a JavaScript library), and most of the tools I use are based on this library. That said, one of the best JS around is LightBox, which is based on Prototype. However, when I tried using both MooTools & Prototype libraries in the same webpage it failed. I was sure there's a solution so I kept digging in, but I couldn't find any.
Another JS library - jQuery has a special computability function called noConflict which solves those problems, but both MooTools & Prototype lack that functionality.
The only solution I could find: Choose one library - MooTools or Prototype, and use only that library. There are similar implementation of most tools in both libraries.
Another JS library - jQuery has a special computability function called noConflict which solves those problems, but both MooTools & Prototype lack that functionality.
The only solution I could find: Choose one library - MooTools or Prototype, and use only that library. There are similar implementation of most tools in both libraries.
Labels:
JavaScript,
jQuery,
MooTools,
Prototype
Sunday, July 19, 2009
Cannot resolve the collation conflict between XXXXXXX and YYYYYYYYY in the equal to operation
This error indicated that the strings in the join operation are from fields created in different collation. In general, it's better to recreate the fields with the same collation definition, but if you're just too lazy, and want to get things done, just cast to problematic field (in this example it's to 'SQL_Latin1_General_CP1_CI_AS'):
SELECT *
FROM A, B
WHERE A.F1 = B.F1 COLLATE SQL_Latin1_General_CP1_CI_AS
SELECT *
FROM A, B
WHERE A.F1 = B.F1 COLLATE SQL_Latin1_General_CP1_CI_AS
Labels:
SQL Server
Monday, July 13, 2009
WordPress & GoDaddy Windows shared hosting
Wordpress works just fine in GoDaddy shared Windows hosting (IIS7), however when trying to install a plugin I get:
Downloading install package from http://downloads.wordpress.org/plugin/XXXXXX.zip.
Warning: touch() [function.touch]: Unable to create file D:\Hosting\XXXXX\html\XXXXXX.com\blog/wp-content/XXXXXX.zip because Permission denied in D:\Hosting\2804923\html\spassets.com\blog\wp-admin\includes\file.php on line 175
Download failed. Could not create Temporary file
Solution: since no solution can be found on the web, I used the good old method - manual install:
* Download the package from wordpress
* Uncompress and upload to /wp-content/plugins (I just copied from another wordpress I have).
And it works!
Downloading install package from http://downloads.wordpress.org/plugin/XXXXXX.zip.
Warning: touch() [function.touch]: Unable to create file D:\Hosting\XXXXX\html\XXXXXX.com\blog/wp-content/XXXXXX.zip because Permission denied in D:\Hosting\2804923\html\spassets.com\blog\wp-admin\includes\file.php on line 175
Download failed. Could not create Temporary file
Solution: since no solution can be found on the web, I used the good old method - manual install:
* Download the package from wordpress
* Uncompress and upload to /wp-content/plugins (I just copied from another wordpress I have).
And it works!
Sunday, July 12, 2009
Web.config & GoDaddy.com
I wrote a small ASP.NET application, which needed to read the web.config file. To open the Web.config file I used 'OpenWebConfiguration':
WebConfigurationManager.OpenWebConfiguration(...)
Since GoDaddy uses medium trust, I kept on getting:
'The application attempted to perform an operation not allowed by the security policy'
And in the detailed:
'System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
The resolution - use ConfigurationManager.ConnectionStrings instead.
WebConfigurationManager.OpenWebConfiguration(...)
Since GoDaddy uses medium trust, I kept on getting:
'The application attempted to perform an operation not allowed by the security policy'
And in the detailed:
'System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
The resolution - use ConfigurationManager.ConnectionStrings instead.
Monday, June 29, 2009
Pre-selecting items from CheckBoxList
I'm not much of an ASP.NET guy, but from time to time I've got to write some simple ASP.NET pages.
I've tried to use data-bound CheckBoxList (data binding done with the built-in wizard), and update the data with some pre-selected values. For some reason CheckBoxList Items are not populated when Page_Load function is called, so the list can't be updated.
Solution A: Found it on Google, but should have thought about it myself - just remove the data-binding done with the VS wizard, and do all the data handling in code.
Solution B (better): Call 'DataBind()' before pre-selecting the CheckBoxList items.
Weird. I must be missing something here. Anyway - it's working.
I've tried to use data-bound CheckBoxList (data binding done with the built-in wizard), and update the data with some pre-selected values. For some reason CheckBoxList Items are not populated when Page_Load function is called, so the list can't be updated.
Solution A: Found it on Google, but should have thought about it myself - just remove the data-binding done with the VS wizard, and do all the data handling in code.
Solution B (better): Call 'DataBind()' before pre-selecting the CheckBoxList items.
Weird. I must be missing something here. Anyway - it's working.
Labels:
ASP.NET
Subscribe to:
Posts (Atom)