Problem: VM Workstation comes up fast, however, the Guest OS took forever to come up. ~ 18 mins!
Solution: check the memory usage on the menu (VM --> Settings). Make sure the setting is at the recommended memory. Do not go beyond the 'Maximum recommended memory.' They are not kidding when they say 'Memory swapping may occur beyond this size').
Tuesday, June 26, 2007
Monday, June 18, 2007
Renaming file with local resource (multi-langual)
After renaming a multi-langual file that contains local/global resources, translation won't come through - always resort to one language.
Solution: Open the page and switch to designer. Rebuild.
Solution: Open the page and switch to designer. Rebuild.
Wednesday, June 13, 2007
Programmatically setting anonymous access to a list
To programmatically turn on anonymous access to a list: http://www.u2u.info/Blogs/Patrick/Lists/Posts/Post.aspx?ID=876
'-------------
Dim web As SPWeb = New SPSite("http://").OpenWeb()
Dim list As SPList = web.Lists("
'-------------
Dim web As SPWeb = New SPSite("http://
Dim list As SPList = web.Lists("
- ")
list.AnonymousPermMask = sprights.ViewListItems | sprights.OpenWeb |
sprights.ViewPages
'-------------
For disable the anonymous on your list, you only need to specify the
SPRights.EmptyMask to the AnonymousPermMask Property.
list.AnonymousPermMask = SPRights.EmptyMask
Monday, May 7, 2007
You do not have permissions to open this file on Excel Services. Make sure that the file is in an Excel Services trusted location ....
Error:
You do not have permissions to open this file on Excel Services. Make sure that the file is in an Excel Services trusted location and that you have access to the file.
Sln: Trusted Locations is not configured properly. Make sure the full URL of the FILE to be trust is not put in as the Address. Use http://<server>/<folder> instead.
You do not have permissions to open this file on Excel Services. Make sure that the file is in an Excel Services trusted location and that you have access to the file.
Sln: Trusted Locations is not configured properly. Make sure the full URL of the FILE to be trust is not put in as the Address. Use http://<server>/<folder> instead.
'Service Unavailable' after iisreset
Soln: Need to update the password on the application pool the site is using.
Friday, April 27, 2007
Problem Converting Ajax files to .Net Web Application
So, I was toying with Ajax recently.
Here's the problem of the day:
When trying to convert VS2005 website to a VS2005 web application with some files having Ajax controls, I ran into this error:
Generation of designer file failed: unknown server tag 'asp:ScriptManager'
Checked web.config, even though for sure I configured ajax correctly, otherwise how was I able to run the VS2005 website without problems?! Sure enough, configured correctly with:
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
However, page still throws error the same error when I tried to convert to web app...
Added System.Web.Extensions to References. Same error.
Googled: found this post:
http://mcosier.blogspot.com/2006/12/element-scriptmanager-is-not-known.html
Didn't fix the problem still!
After puzzling for a bit, I got creative. I copied the old .aspx.designer.cs file over from an old version (before the ajax stuff), added in the controls that I used:
protected System.Web.UI.UpdatePanel UpdatePanel1;
and...viola! Rebuild and error went away! It had nothing to do w/ not recognizing the ScriptManager! How misleading!
Here's the problem of the day:
When trying to convert VS2005 website to a VS2005 web application with some files having Ajax controls, I ran into this error:
Generation of designer file failed: unknown server tag 'asp:ScriptManager'
Checked web.config, even though for sure I configured ajax correctly, otherwise how was I able to run the VS2005 website without problems?! Sure enough, configured correctly with:
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
However, page still throws error the same error when I tried to convert to web app...
Added System.Web.Extensions to References. Same error.
Googled: found this post:
http://mcosier.blogspot.com/2006/12/element-scriptmanager-is-not-known.html
Didn't fix the problem still!
After puzzling for a bit, I got creative. I copied the old .aspx.designer.cs file over from an old version (before the ajax stuff), added in the controls that I used:
protected System.Web.UI.UpdatePanel UpdatePanel1;
and...viola! Rebuild and error went away! It had nothing to do w/ not recognizing the ScriptManager! How misleading!
Subscribe to:
Posts (Atom)