<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3684283150299023705</id><updated>2011-11-28T00:25:21.966+01:00</updated><title type='text'>IT with Schprit</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://schprit.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://schprit.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>schprit</name><uri>http://www.blogger.com/profile/02404148129228847611</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3684283150299023705.post-4357590993493066407</id><published>2010-12-09T12:37:00.001+01:00</published><updated>2010-12-09T12:39:09.449+01:00</updated><title type='text'>Access Denied when Writing Files to a windows 2008 R2 server over the network</title><content type='html'>When Trying to edit/change a file to an IIS Share on one of the windows 2008 R2 servers you get an error message that access has been denied.&lt;br /&gt;The user writing the files has all the proper security settings on both the share and the directory/file.&lt;br /&gt;The user can create new files in the directory.&lt;br /&gt;&lt;br /&gt;If the user logs in to the server and tries to change the file he gets a message stating: You'll need to provide administrator permission to copy/move/edit etc... this file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This problem can be resolved by giving the users group write permissions to the folder.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684283150299023705-4357590993493066407?l=schprit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://schprit.blogspot.com/feeds/4357590993493066407/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684283150299023705&amp;postID=4357590993493066407' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/4357590993493066407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/4357590993493066407'/><link rel='alternate' type='text/html' href='http://schprit.blogspot.com/2010/12/access-denied-when-writing-files-to.html' title='Access Denied when Writing Files to a windows 2008 R2 server over the network'/><author><name>schprit</name><uri>http://www.blogger.com/profile/02404148129228847611</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684283150299023705.post-2551145621314529939</id><published>2010-11-11T11:31:00.005+01:00</published><updated>2010-11-11T13:09:54.834+01:00</updated><title type='text'>Using Microsoft Office 2007 with DCOM on a webserver in a safe way</title><content type='html'>It's been a while since I've written anything on the blog, but I think that I have something interesting for some people now.&lt;br /&gt;&lt;br /&gt;These past weeks I have been battling our webservers and application to get DCOM calls from IIS to Microsoft Office 2007 working. After several high hopes and nervous breakdowns I have found solutions to all the catches I have found.&lt;br /&gt;&lt;br /&gt;I'll first describe our environment a bit.&lt;br /&gt;We have Windows server 2008 R2 servers (that means it's running x64mode) with Office 2007 (that's 32 bit) installed on it. The Webserver needs to be able to make a snapshot of a certain page in an uploaded Office document and show it on the website.&lt;br /&gt;&lt;br /&gt;To be able to open Office from IIS you need to change DCOM security for the Office applications.&lt;br /&gt;&lt;br /&gt;So the first problem that can happen is that after installing Office you don't find the objects in the Component Services MMC, normally they should be under "Component Services"/"Computers"/"My Computer"/"DCOM Config".&lt;br /&gt;If you can't find them, open the Component Services MMC in 32 bit mode by opening a run box (&lt;windows&gt;-R) and typing "mmc -32" (without the quotes). Then add the Component Services Snap-in using "File"/"Add/Remove Snap-in" then select "Component Services" and click on "Add".&lt;br /&gt;Now the office applications should be visible under "Component Services"/"Computers"/"My Computer"/"DCOM Config".&lt;br /&gt;(this solution is described on many blogs over the Internet, I just repeat it here to have a more complete solution in one place)&lt;br /&gt;&lt;br /&gt;The next problem is that IIS 7.5 by default runs under the Account "IIS AppPool\DefaultAppPool", people often change this to "network Service" or even "local System" (YUCK!!!! Really people.... Never run IIS under "local system"!!! this means that if a hacker can exploit IIS he will be GOD on your system)&lt;br /&gt;This is a security feature from Microsoft that I don't want to turn off lightly... So I don't!!!&lt;br /&gt;&lt;br /&gt;I just give the user "IIS AppPool\DefaultAppPool" the rights on the locations it needs.. (including DCOM activation)&lt;br /&gt;However this user cannot run Office by himself, so we will have to create a proxy user which I'll call sa_DCOM for now (sa meaning Service Account) This user needs to be in the users group and have write rights to the location where office will need to write the files)&lt;br /&gt;&lt;br /&gt;So open the Component services MMC.&lt;br /&gt;A lot of sites tell you to change the default security on "Component Services"/"Computers"/"My Computer"/"DCOM Config" itself. But this is not best practice as that way you'll open up all the DCOM applications on your server to be exploited by hackers.&lt;br /&gt;so navigate to the path "Component Services"/"Computers"/"My Computer"/"DCOM Config" and then open up the properties to "Microsoft (Office) Word 97 - 2003 Document" (the Office depends on the version of office you have. In 2010 it's no longer there)&lt;br /&gt;now do the following settings:&lt;br /&gt;&lt;br /&gt;Security/ Launch and Activation Permissions Customize -&gt; Selected,&lt;br /&gt;Edit&lt;br /&gt;Add: IIS AppPool\DefaultAppPool with local launch and activation rights&lt;br /&gt;&lt;br /&gt;Security/ Access Permissions Customize -&gt; Selected&lt;br /&gt;Edit&lt;br /&gt;Add: IIS AppPool\DefaultAppPool with local Access rights&lt;br /&gt;&lt;br /&gt;Security/ Configuration Permissions Customize -&gt; Selected&lt;br /&gt;Edit&lt;br /&gt;Add: IIS AppPool\DefaultAppPool with read rights&lt;br /&gt;&lt;br /&gt;Identity -&gt; This user-&gt; Selected, User = &lt;servername&gt;\sa_DCOM.&lt;br /&gt;&lt;br /&gt;This way Office and IIS will allways run with the lowest permission needed.&lt;br /&gt;&lt;br /&gt;Now we would think that we're there...&lt;br /&gt;Alas not!&lt;br /&gt;&lt;br /&gt;Microsoft Office Word needs the user that runs the application to have it's registry keys loaded.&lt;br /&gt;The problem is that, as soon as the user sa_DCOM is logged off, its hive unloaded. So we'll have to find a way to keep the profile loaded. My solution for this is that I have created a dummy service which does absolutely nothing and let that service run as sa_DCOM. As soon as the service starts the profile is loaded and Word will run without problems. (so set the service to start automatically).&lt;br /&gt;&lt;br /&gt;The settings for Word that I have done above can be done for Powerpoint and Excel also. And other programs also I would think, however I have only tested these three...&lt;br /&gt;&lt;br /&gt;I hope that some of you guys will be spared (any more) hear tearing and crying by reading this post.&lt;br /&gt;&lt;br /&gt;Here are some of the DCOM Errors I have solved with the above solution:&lt;br /&gt;Error Exception from HRESULT: 0x800A03EC&lt;br /&gt;Exception from HRESULT: 0x800AC472&lt;br /&gt;and of course the access denied error 0x80004005&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684283150299023705-2551145621314529939?l=schprit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://schprit.blogspot.com/feeds/2551145621314529939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684283150299023705&amp;postID=2551145621314529939' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/2551145621314529939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/2551145621314529939'/><link rel='alternate' type='text/html' href='http://schprit.blogspot.com/2010/11/using-microsoft-office-2007-with-dcom.html' title='Using Microsoft Office 2007 with DCOM on a webserver in a safe way'/><author><name>schprit</name><uri>http://www.blogger.com/profile/02404148129228847611</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684283150299023705.post-8872171069351361158</id><published>2009-05-15T16:34:00.002+02:00</published><updated>2009-05-15T16:42:17.923+02:00</updated><title type='text'>Renaming Domain group Display names in WSS 2.0</title><content type='html'>&lt;p&gt;Recently I saw a &lt;a href="http://itfootprint.wordpress.com/2007/10/24/can-you-change-group-names-in-sharepoint-nah/"&gt;post&lt;/a&gt; on the Net about the impossibility to rename the Display name of a domain group in WSS 2.0&lt;/p&gt;&lt;p&gt;This is a "Well, Actually" post as I replied in that thread.&lt;/p&gt;&lt;p&gt;The Solution is Ugly and should only be executed if you're deperate.&lt;br /&gt;As allways: Test in a non-production environment first!!!&lt;/p&gt;&lt;p&gt;If you execute the following Sql Statement on your Content Database &lt;/p&gt;&lt;p&gt;you can find the GUID of the user/group&lt;/p&gt;&lt;p&gt;SELECT     tp_SiteID, tp_Login, tp_Title, tp_GUID&lt;br /&gt;FROM UserInfowhere Tp_Title = '&lt;last&gt;'&lt;/p&gt;&lt;p&gt;You'll then find an entry to a site 'user' for every site it is a member of.&lt;br /&gt;Normally all users would have the Same tp_GUID. &lt;/p&gt;&lt;p&gt;If not, then there have been two different domain groups with that same name.&lt;br /&gt;For example a group was created and added to SharePoint,&lt;br /&gt;then later the group was deleted in the domain,&lt;br /&gt;and even later recreated and readded to SharePoint,&lt;br /&gt;&lt;br /&gt;To get the GUID of the proper 'user',&lt;br /&gt;add the group to the security of one of the site's lists&lt;br /&gt;and now the tp_Login in the database will have changed to the new groupname.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;You can now write an SQL update script to change the tp_login and tp_title to the new value&lt;/p&gt;&lt;p&gt;UPDATE [UserInfo]&lt;br /&gt;SET  tp_Login = '&lt;new&gt;', tp_Title = '&lt;new&gt;'&lt;br /&gt;WHERE tp_GUID = 'GUID of the DomainGroup'&lt;br /&gt;&lt;/p&gt;&lt;p&gt;DISCLAIMER....&lt;br /&gt;As I said, this is a rather ugly solution, only to be tried by the desperate, and only after extensive testing in a test environment.I myself have never been desperate enough to do this.&lt;br /&gt;Of course such database hacking will never be supported by Microsoft, or by me ;o)&lt;br /&gt;this solution is for WSS 2.0  but with some logical thinking could probably be used for WSS 3.0  (and SPS 2003 and MOSS 2007) also&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684283150299023705-8872171069351361158?l=schprit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://schprit.blogspot.com/feeds/8872171069351361158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684283150299023705&amp;postID=8872171069351361158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/8872171069351361158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/8872171069351361158'/><link rel='alternate' type='text/html' href='http://schprit.blogspot.com/2009/05/renaming-domain-group-display-names-in.html' title='Renaming Domain group Display names in WSS 2.0'/><author><name>schprit</name><uri>http://www.blogger.com/profile/02404148129228847611</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684283150299023705.post-489288964497399880</id><published>2009-02-04T10:42:00.005+01:00</published><updated>2009-02-04T11:24:55.136+01:00</updated><title type='text'>Windows 7</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;It's been a while since I last wrote here, but now I have some new things I noticed and would like to share.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;At the moment I am testing the Beta of Windows 7 and it's great so far... At least if you remember that it's a beta. It's stable, fast and very goodlooking.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;I really like the new taskbar. It takes a few days to get used to, but then it's really practical.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;maybe people would complain that it's not clear which programs are active, but I think it's clear...&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;A program that has been started is style a little more like a button.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_W3YZJPVa4GE/SYlleeK0JvI/AAAAAAAAAAM/y4BbIEZ8U3k/s1600-h/Active+project.PNG"&gt;&lt;img style="MARGIN: 0px 10px 10px 0px; WIDTH: 158px; FLOAT: left; HEIGHT: 31px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5298878010747004658" border="0" alt="" src="http://1.bp.blogspot.com/_W3YZJPVa4GE/SYlleeK0JvI/AAAAAAAAAAM/y4BbIEZ8U3k/s320/Active+project.PNG" /&gt;&lt;/a&gt;In the picture to the left, the left and right program (Visio and Notepad) haven't been started yet, but the middle one (Project) has...&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_W3YZJPVa4GE/SYlndxInspI/AAAAAAAAAAU/BS7UbQF6ZcA/s1600-h/Multiple+IEwindows.PNG"&gt;&lt;img style="MARGIN: 0px 0px 10px 10px; WIDTH: 129px; FLOAT: right; HEIGHT: 79px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5298880197681459858" border="0" alt="" src="http://2.bp.blogspot.com/_W3YZJPVa4GE/SYlndxInspI/AAAAAAAAAAU/BS7UbQF6ZcA/s320/Multiple+IEwindows.PNG" /&gt;&lt;/a&gt; &lt;div&gt;You can also see if a program has been started multiple times by the way the program is presented. There will be a double line to the right of the icon, like in the picture to the right. Here you'll see that Internet Explorer has been opened multiple times.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Another neat addition to W7 is, that there is now a builtin screenshot tool called the "Snipping tool"&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Just a few of the many changes in Windows 7.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;I also noticed a little problem. At our office we use several static routes as a temporary measure for reaching certain network locations. When I installed W7 I felt bold and did an upgrade, amazingly it went without problems... well almost... after the reinstallation the static routes were still there, but they didn't work anymore.&lt;/div&gt;&lt;div&gt;The resolution was simple, delete the routes and recreate them...&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684283150299023705-489288964497399880?l=schprit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://schprit.blogspot.com/feeds/489288964497399880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684283150299023705&amp;postID=489288964497399880' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/489288964497399880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/489288964497399880'/><link rel='alternate' type='text/html' href='http://schprit.blogspot.com/2009/02/windows-7.html' title='Windows 7'/><author><name>schprit</name><uri>http://www.blogger.com/profile/02404148129228847611</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_W3YZJPVa4GE/SYlleeK0JvI/AAAAAAAAAAM/y4BbIEZ8U3k/s72-c/Active+project.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684283150299023705.post-6786056883354430930</id><published>2008-11-10T15:30:00.004+01:00</published><updated>2008-11-10T15:43:44.208+01:00</updated><title type='text'>Office Customization tool not visible in Microsoft Deployment Toolkit</title><content type='html'>When you don't see the button "Office Customization Tool" in the "Office Products" tab for an office application in the Deployment Workbench, then it could be that you don't have the admin folder in the source directory of your application.&lt;br /&gt;My installation source for Office Ultimate didn't have the button. When I continued adding applications I noticed that my Sharepoint Designer 2007 did have this button, I compared the installation directories and noticed the missing admin folder. I noticed that in this admin folder where not only files for the sharepoint designer but also for the other 2007 products. When I copied this directory to the other directories i saw the "Office Customization Tool" button. No need to recreate the package.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684283150299023705-6786056883354430930?l=schprit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://schprit.blogspot.com/feeds/6786056883354430930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684283150299023705&amp;postID=6786056883354430930' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/6786056883354430930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/6786056883354430930'/><link rel='alternate' type='text/html' href='http://schprit.blogspot.com/2008/11/office-customization-tool-not-visible.html' title='Office Customization tool not visible in Microsoft Deployment Toolkit'/><author><name>schprit</name><uri>http://www.blogger.com/profile/02404148129228847611</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684283150299023705.post-3438959128512614064</id><published>2008-11-05T16:14:00.003+01:00</published><updated>2008-11-05T16:28:04.519+01:00</updated><title type='text'>Setting the height of a Div in Javascript works in Internet Explorer but not in Firefox</title><content type='html'>If you notice this in you program, you're probably giving the height as an integer instead of in units.&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;color:#ff0000;"&gt;&lt;br /&gt;function SetHeights() {&lt;br /&gt;divMain = getElementsById("Main");&lt;br /&gt;divWrapper = getElementsById("Wrapper");&lt;br /&gt;divHeaderWrap = getElementsById("HeaderWrap");&lt;br /&gt;divFooter = getElementsById("Footer");&lt;br /&gt;divMain.style.height = Math.max(divWrapper.offsetHeight - (divFooter.offsetHeight + divHeaderWrap.offsetHeight + 18), 0);&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You should set the height in pixels or em etc.:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;color:#ff0000;"&gt;function SetHeights() {&lt;br /&gt;divMain = getElementsById("Main");&lt;br /&gt;divWrapper = getElementsById("Wrapper");&lt;br /&gt;divHeaderWrap = getElementsById("HeaderWrap");&lt;br /&gt;divFooter = getElementsById("Footer");&lt;br /&gt;divMain.style.height = Math.max(divWrapper.offsetHeight - (divFooter.offsetHeight + divHeaderWrap.offsetHeight + 18), 0)+"px";&lt;br /&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684283150299023705-3438959128512614064?l=schprit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://schprit.blogspot.com/feeds/3438959128512614064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684283150299023705&amp;postID=3438959128512614064' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/3438959128512614064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/3438959128512614064'/><link rel='alternate' type='text/html' href='http://schprit.blogspot.com/2008/11/setting-height-of-div-in-javascript.html' title='Setting the height of a Div in Javascript works in Internet Explorer but not in Firefox'/><author><name>schprit</name><uri>http://www.blogger.com/profile/02404148129228847611</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684283150299023705.post-4907887972990529438</id><published>2008-11-05T16:09:00.002+01:00</published><updated>2008-11-05T16:14:25.300+01:00</updated><title type='text'>Network teaming in Windows 2008 Server</title><content type='html'>To create a teaming in windows 2008 server just go to "Start", "Network", then "Network and Sharing Center" and then "manage network connections".&lt;br /&gt;After that select the two network cards you wish to team and select "Bridge Connections"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684283150299023705-4907887972990529438?l=schprit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://schprit.blogspot.com/feeds/4907887972990529438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684283150299023705&amp;postID=4907887972990529438' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/4907887972990529438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/4907887972990529438'/><link rel='alternate' type='text/html' href='http://schprit.blogspot.com/2008/11/network-teaming-in-windows-2008-server.html' title='Network teaming in Windows 2008 Server'/><author><name>schprit</name><uri>http://www.blogger.com/profile/02404148129228847611</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684283150299023705.post-7764338744939298688</id><published>2008-11-04T11:40:00.012+01:00</published><updated>2008-11-05T10:44:39.737+01:00</updated><title type='text'>Warnings with CSS classes and Masterpages in Visual Studio 2008</title><content type='html'>When you create a new masterpage in Visual studio 2008 that contains a link to a stylesheet it can happen that the IDE thinks that the classes defined in the stylesheet cannot be found even though the compiled website will use the classes defined in the stylesheet.&lt;br /&gt;&lt;br /&gt;use the following code to replicate the issue.&lt;br /&gt;&lt;br /&gt;{/MasterPage.master}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;color:#ff0000;"&gt;&lt;br /&gt;&amp;lt%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="testpages_master_with_css_problem_MasterPage" %&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt&lt;br /&gt;&amp;lthtml xmlns="http://www.w3.org/1999/xhtml"&amp;gt&lt;br /&gt;&amp;lthead runat="server"&amp;gt&lt;br /&gt;    &amp;lttitle&gt;Untitled Page&amp;lt/title&amp;gt&lt;br /&gt;    &amp;ltasp:Literal ID="Literal1" Visible="false" runat="server"&amp;gt&lt;br /&gt;    &amp;ltlink href="~/Styles/StyleSheet.css" rel="stylesheet" type="text/css" /&amp;gt&lt;br /&gt;    &amp;lt/asp:Literal&amp;gt&lt;br /&gt;    &amp;ltasp:ContentPlaceHolder ID="head" runat="server"&amp;gt&lt;br /&gt;    &amp;lt/asp:ContentPlaceHolder&amp;gt&lt;br /&gt;&amp;lt/head&amp;gt&lt;br /&gt;&amp;ltbody&amp;gt&lt;br /&gt;    &amp;ltform id="form1" runat="server"&amp;gt&lt;br /&gt;    &amp;ltdiv id="someId1" class="someClass1"&amp;gt&lt;br /&gt;        &amp;ltasp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"&amp;gt&lt;br /&gt;        &amp;lt/asp:ContentPlaceHolder&amp;gt&lt;br /&gt;    &amp;lt/div&amp;gt&lt;br /&gt;    &amp;lt/form&amp;gt&lt;br /&gt;&amp;lt/body&amp;gt&lt;br /&gt;&amp;lt/html&amp;gt&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;{/default.aspx}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;color:#ff0000;"&gt;&amp;lt%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="testpages_master_with_css_problem_Default" Title="Untitled Page" %&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltasp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="Server"&amp;gt&lt;br /&gt;&amp;ltdiv id="someId2" class="someClass2"&amp;gt&lt;br /&gt;&amp;ltasp:label id="myLabel" cssclass="someClass3" runat="Server"&amp;gtThis is text with styles from all classes and id's&amp;lt/asp:Label&amp;gt&lt;br /&gt;&amp;lt/div&amp;gt&lt;br /&gt;&amp;lt/asp:Content&amp;gt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;{/Styles/StyleSheet.css}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;color:#ff0000;"&gt;body&lt;br /&gt;{&lt;br /&gt;font-family: Arial;&lt;br /&gt;font-size: medium;&lt;br /&gt;font-weight: normal;&lt;br /&gt;font-style: normal;&lt;br /&gt;font-variant: normal;&lt;br /&gt;text-transform: none;&lt;br /&gt;color: #000000;&lt;br /&gt;}&lt;br /&gt;.someClass1&lt;br /&gt;{&lt;br /&gt;font-family:Times New Roman;&lt;br /&gt;}&lt;br /&gt;.someClass2&lt;br /&gt;{&lt;br /&gt;font-size:xx-large;&lt;br /&gt;}&lt;br /&gt;.someClass3&lt;br /&gt;{&lt;br /&gt;color:Red;&lt;br /&gt;}&lt;br /&gt;#someId1&lt;br /&gt;{&lt;br /&gt;font-style:italic;&lt;br /&gt;}&lt;br /&gt;#someId2&lt;br /&gt;{&lt;br /&gt;text-transform:capitalize;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you open these pages in you Visual Studio 2008 IDE and wait a while in a page you will get warnings:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-size:78%;color:#ff0000;"&gt;Warning 1 The class or CssClass value is not defined. C:\...\MasterPage.master 14 30 C:\...\Stylesheet classes problemsdemo\&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-size:78%;color:#ff0000;"&gt;Warning 2 The class or CssClass value is not defined. C:\...\Default.aspx 7 26 C:\...\Stylesheet classes problemsdemo\&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-size:78%;color:#ff0000;"&gt;Warning 3 The class or CssClass value is not defined. C:\...\Default.aspx 8 39 C:\...\Stylesheet classes problemsdemo\&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;However, if you open the page in a browser, all styles will be applied.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;It seems that for ID's no warning for non-existant identifiers is given (I also checked using non existant ID's), but for classes the warning is generated.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;There is some more odd behaviour at hand here. At the moment I give "someId2" a non-existant identifier ("someId2fdsaf") the warning for "someClass3" disappears.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The warnings also seem to depend on the CcontentPlaceHolder in the header, as soon as I remove that placeholder from "Default.aspx" all warnings in that file disappear...&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;However in the "MasterPage.master" this behaviour can not allways be reproduced. (I have seen this for the masterpage in my original project, but in this demoproject it doesn't solve the warning.)&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you remove the '~' from the link to the stylesheet then the warnings disappear but then you'd have a problem deploying your site to a place below the root of the site. This would however seem to indicate that the IDE has a problem solving this relative link.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This is not something critical, but when you use cssClasses a lot in your code you'd probably want to be warned if you made a mistake. (so unchecking CSS warnings on the project is not a solution to this problem)&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I'm still researching this problem and will come back if I find a solution.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If anybody can provide help, it would be very welcome.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;What I found on the Internet is that for '~' to work it needs to be run with runat="server". &lt;a href="http://lancefisher.net/blog/archive/2008/03/23/tired-of-visual-studio-telling-you-quotthe-class-or-cssclass.aspx"&gt;Lancerfisher&lt;/a&gt; wrote a nice piece about it. When I added his solution I was able to reproduce what I said above, that removing the ContentHolder from the head resolves the warnings.&lt;p&gt;&lt;br /&gt;&lt;p&gt;If you edit your masterpage to resemble the following the warnings are gone&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;color:#ff0000;"&gt;&lt;br /&gt;&amp;lt%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="testpages_master_with_css_problem_MasterPage" %&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt&lt;br /&gt;&amp;lthtml xmlns="http://www.w3.org/1999/xhtml"&amp;gt&lt;br /&gt;&amp;lthead runat="server"&amp;gt&lt;br /&gt;    &amp;lttitle&gt;Untitled Page&amp;lt/title&amp;gt&lt;br /&gt;    &amp;ltasp:Literal ID="Literal1" Visible="false" runat="server"&amp;gt&lt;br /&gt;    &amp;ltlink href="~/Styles/StyleSheet.css" rel="stylesheet" type="text/css" /&amp;gt&lt;br /&gt;    &amp;lt/asp:Literal&amp;gt&lt;br /&gt;&amp;lt/head&amp;gt&lt;br /&gt;&amp;ltbody&amp;gt&lt;br /&gt;    &amp;ltform id="form1" runat="server"&amp;gt&lt;br /&gt;    &amp;ltdiv id="someId1" class="someClass1"&amp;gt&lt;br /&gt;        &amp;ltasp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"&amp;gt&lt;br /&gt;        &amp;lt/asp:ContentPlaceHolder&amp;gt&lt;br /&gt;    &amp;lt/div&amp;gt&lt;br /&gt;    &amp;lt/form&amp;gt&lt;br /&gt;&amp;lt/body&amp;gt&lt;br /&gt;&amp;lt/html&amp;gt&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt; but again this is not the solution.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Ok, problem is solved...&lt;/b&gt;&lt;br /&gt;&lt;p&gt;It seems that Microsoft figured that this was a bug too. :o) I installed Visual Studio 2008 SP1 and the problem was solved. Even the Literal was no longer needed. The original code above works Ok now.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;I recommend however that you first test the servicepack in a non production environment however. This is a best practice for installing any service pack. Sometimes a service pack breaks more (by being more restrictive for security, for example), than it solves in your specific situation.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684283150299023705-7764338744939298688?l=schprit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://schprit.blogspot.com/feeds/7764338744939298688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684283150299023705&amp;postID=7764338744939298688' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/7764338744939298688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/7764338744939298688'/><link rel='alternate' type='text/html' href='http://schprit.blogspot.com/2008/11/warnings-with-css-classes-and.html' title='Warnings with CSS classes and Masterpages in Visual Studio 2008'/><author><name>schprit</name><uri>http://www.blogger.com/profile/02404148129228847611</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684283150299023705.post-4756180351797636111</id><published>2008-11-04T10:19:00.000+01:00</published><updated>2008-11-04T11:08:41.445+01:00</updated><title type='text'>First blog entry</title><content type='html'>Hi you all,&lt;br /&gt;&lt;br /&gt;I'm Schprit, system administrator and beginning developer from the Netherlands.&lt;br /&gt;I'm 36 years old (at the moment I'm writing this entry at least...).&lt;br /&gt;I'm maried and have a lovely daughter of 16 months old.&lt;br /&gt;&lt;br /&gt;Well that's all about me.&lt;br /&gt;&lt;br /&gt;In this blog I will write about the things I see in my work and study that frap me, or at least that I find interesting.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684283150299023705-4756180351797636111?l=schprit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://schprit.blogspot.com/feeds/4756180351797636111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684283150299023705&amp;postID=4756180351797636111' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/4756180351797636111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684283150299023705/posts/default/4756180351797636111'/><link rel='alternate' type='text/html' href='http://schprit.blogspot.com/2008/11/first-blog-entry.html' title='First blog entry'/><author><name>schprit</name><uri>http://www.blogger.com/profile/02404148129228847611</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
