|
How to get the 301 to work right in DotNetNuke when changing a rewritten url |
|
Living in Software Development
|
By host on
7/7/2010 4:17 PM
|
|
|
|
This only helps people using the Serrated Software shopping cart.
If you rewrite the url for a product and want to rewrite a url that is already rewritten, just add another entry in the siteconfig.url file.
.*/maui/luaus/marriott-honuaula-wailea-beach.htm
~/Default.aspx?TabId=53&Activity=701
.*/maui/luaus/grand-luau-at-honuaula.htm
~/Default.aspx?TabId=53&Activity=701
then just change the product's url from its edit page to the new url. theoritically it will work as many times as necessary since the product checks to see what url was requested to access it before loading. if the url is different, it issues a 301 permanently moved to the new address. bonus for seo!
|
 |
|
Comments (0)
|
|
|
|
My solution to the page_validators is undefined error |
|
Living in Software Development
|
By host on
2/2/2010 12:38 AM
|
|
|
|
Off and on over the years I have been haunted by the error "page_validators is undefined". Today it was coupled with "Unterminated string constant". I figured out why it was happening to me. I dynamically add validators to a page where i dynamically add textboxes to be filled in by users. In my code i determine the IDs of those validators by the names of configured fields. I noticed an embedded CRLF in one of my configured field names which was causing the generated validation script to also have a CRLF. In the script, I saw the closing quotation mark on the next line which was where the "Undetermined String Constant" error was coming from. Page_Validators is undefined just bubbled from that. So the moral of this story is make sure you don't have any hidden characters that are messing with your validation!
|
 |
|
Comments (0)
|
|
|
|
How to add additional IP addresses in Windows 2003 Server |
|
Living in Software Development
|
By host on
4/1/2009 7:16 PM
|
|
|
How to add additional IP addresses in Windows 2003 Server
1. Right Click My Network Places and click Properties. You can find My Network Places by opening an explorer window. 2. Right Click the Local Area Connection and click Properties. 3. in the Local Area Connection Properties window Select Internet Protocol (TCP/IP) and Click properties. 4. Click the Advanced button on the General tab of the Internet Protocol (TCP/IP) properties window. 5. Click the Add button in the IP Addresses section of the IP Settings tab of the Advanced TCP/IP Settings. 6. Enter appropriate IP addresses and subnet mask. I have to use 255.255.255.0. Click Add. Repeat for each ip address. 7. Click Ok until you're out of all the windows.
|
 |
|
Comments (0)
|
|
|
|
How to Configure SQL Server 2005 to Accept Remote Connections |
|
Living in Software Development
|
By host on
3/31/2009 3:14 PM
|
|
|
How to Configure SQL Server 2005 to Accept Remote Connections
1. Enable TCP/IP - open SQL Server Configuration Manager - expand SQL Server 2005 Network Configuration - click Protocols for SQLEXPRESS - right click TCP/IP and click Enable
2. Disable SQL Browser Service - this service allows remote users to connect without specifying the port in the connection string. - security risk - open SQL Server Configuration Manager - expand SQL Server 2005 Network Configuration - click Protocols for SQLEXPRESS - right click TCP/IP and click Properties - click IP Addresses tab - under IPAll, clear out TCP Dynamic Ports - specify port number in TCP Port. make sure to open this port in Windows Firewall.
|
 |
|
Comments (0)
|
|
|
|
Dotnetnuke ExceptionSystem.ArgumentException: Invalid File or Directory attributes value. |
|
Living in Software Development
|
By host on
6/2/2008 3:22 PM
|
|
|
|
I got another wierd error today when I tried to upload a new module on one of my Dotnetnuke sites:
ExceptionSystem.ArgumentException: Invalid File or Directory attributes value. at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateFile(String FullFileName, Byte[] Buffer) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateModuleFile(PaFile File, PaFolder Folder) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateFiles(PaFolder Folder) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.Install(PaFolderCollection folders) at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()
Turns out that the system account (Network Service) did not have full permissions on the root folder of the installation. As soon as I set it correctly, this error disappeared.
|
 |
|
Comments (0)
|
|
|
|
DotNetNuke Module Upload Error - ExceptionSystem.ObjectDisposedException: Cannot access a closed file. |
|
Living in Software Development
|
By host on
5/30/2008 3:00 PM
|
|
|
|
Recently, when I tried to upload a new module to DotNetNuke, I received the following error:
ExceptionSystem.ObjectDisposedException: Cannot access a closed file. at System.IO.__Error.FileNotOpen() at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin) at System.Web.HttpRawUploadedContent.TempFile.GetBytes(Int32 offset, Int32 length, Byte[] buffer, Int32 bufferOffset) at System.Web.HttpRawUploadedContent.CopyBytes(Int32 offset, Byte[] buffer, Int32 bufferOffset, Int32 length) at System.Web.HttpInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at ICSharpCode.SharpZipLib.Zip.ZipInputStream.FillBuf(Int32 size) at ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNextEntry() at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.ReadZipStream() at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()
To fix it, open the Web.config file and locate the line:
<httpRuntime useFullyQualifiedRedirectUrl="true" ...
|
 |
|
Comments (0)
|
More...
|
|
|
Change SQL Server 2000 Port |
|
Living in Software Development
|
By host on
12/21/2007 12:34 AM
|
|
|
|
I've had to change the port that SQL Server uses to communicate over the Internet several times now, and I'm getting tired of looking it up. Here is is for future reference:
- Open SQL Server Enterprise Manager.
- Right-click on the server instance.
- ClickProperties.
- Click the General tab, then click the button marked "Network Configuration" to display the SQL Server Network Utility.
- Find TCP/IP under Enabled Protocols on the right. Highlight it and hit the Properties button.
- The Network Protocol Default Value Setup dialog will ask for the Default Port for SQL Server. Change this entry to make SQL Server listen on a different port. Click OK to close the dialog.
- Click Apply on the SQL Server Network Utility screen, then OK.
- The changes are saved, but they will not take effect until you stop and restart the SQL Server service. ClickOK.
- ClickOK ...
|
 |
|
Comments (0)
|
More...
|
|
|
Truncate SQL Server 2000 Log File |
|
Living in Software Development
|
By host on
11/28/2007 11:38 PM
|
|
|
|
I am a jack of all trades, so I don't spend too much time on any one task. I just looked at directory where my sql server 2000 databases live and I noticed that my DB logs are huge. One log file was over a gig and a half in size for a 500 meg database. I'm putting it here for my future reference, but I hope someone else can use it, too.
BACKUP LOG <dbName> WITH TRUNCATE_ONLY
DBCC SHRINKFILE(<dbName>_Log, 2)
|
 |
|
Comments (0)
|
|
|
|
Unspecified Error Revisited |
|
Living in Software Development
|
By host on
9/21/2007 7:19 AM
|
|
|
|
The Unspecified Error I wrote about not long ago came back on my server. I thought that reinstalling ASP.Net would fix it once and for all but I was wrong. I installed a new antivirus product called NOD32 and ran a full scan. It found a few little cyber-squatters sitting on my machine and disabled them. They were:
Win32/HacDef trojan Win32/VB.NEI worm HTML/Amazofraud.N trojan
Hopefully, they were the problem. I just finished reinstalling ASP.Net again, so we'll see how it goes this time around.
|
 |
|
Comments (0)
|
|
|
|
When Good Code Goes Bad |
|
Living in Software Development
|
By host on
9/1/2007 4:27 PM
|
|
|
|
I HATE it when I have tried and tested code working that just mysteriously stops working. This particular time the problem lies around OLEDB access to Excel. I was doing a simple Select * from [Sheet1$] when all the sudden I started getting this ugly, useless error:
System.Data.OleDb.OleDbException: Unspecified error at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) at System.Data.OleDb.OleDbConnection.InitializeProvider() at System.Data.OleDb.OleDbConnection.Open() at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) at System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) &l ...
|
 |
|
Comments (0)
|
More...
|
|