Seeing the Host IIS from from a virtual machine,

by kurt 1. January 2010 23:39
I set up a virtual machine running XP and IE6 to do some testing( http://www.hanselman.com/blog/MultiBrowserOrCrossBrowserTestingAndDeconstructingMicrosoftExpressionWebSuperPreview.aspx ) , and I could not get to IIS on the host machine ...You must open up the firewall.. DUH! On vista there is a check box for world wide web services at the bottom of the exception list. For Testing SSL you must also open up port 443.

Currently rated 1.5 by 123 people

  • Currently 1.465114/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Medium Trust SMTP to Gmail and ITextSharp

by kurt 31. October 2008 15:43

I Had two (know) problems with last nights build of Akkounting., both involving trust issues. (Currently Akkounting is hosted at Crystal Tech crystaltech.com)

 The first one involved  ITextsharp, which was added to facilitate check printing. ITextSharp out of the box needs to run at full trust. To make it work in medium trust, you must download the source and add the following to the AssemblyInfo.cs

First two new References:
using System.Security;
using System.Security.Permissions;
then the following attribute:
[assembly: AllowPartiallyTrustedCallers]

I found the attribute I needed pretty quickly, but it took a while to find what namespace (and hence the references) the attribute belong to. I present them here together for your (and my future) reference.

The following pointed me to the right way to fix my gMail issue. SMTP does work on medium trust, but apparently there is an issue with ports. By NOT specifying which port to accesses Gmail (google apps 4 Domains) makes everything happy.

http://forums.crystaltech.com/index.php/topic,33004.msg185776.html#msg185776 

Currently rated 1.5 by 2 people

  • Currently 1.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Using Google Apps / Gmail for the mailto: link in FF3

by kurt 1. October 2008 13:12

Using Google Apps / Gmail to handle mailto: links in Firefox 3.0

via LifeHacker.com

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Windows Network Login Dialog Pops Up for ASP.NET Debugging Web Dev Exp 2008

by kurt 2. September 2008 20:16

The Scenario: I created a web site project in Visual Studio Web Developer Express 2008, which puts the files in a subdirectory , in a subdirectory in a sub directory under My Documents. Then  I  decided I wanted to run the project under IIS, so I did that. I can't remember exactly what I changed in IIS ( I should start a blog and write these things down) Anyway I mapped the virtual directory to the directory deep under My Documents. Now in order to debug, you must turn on integrated Windows Authentication in IIS. (This might be a Dev Express thing).  After I turned that on, debugging worked, but each time I hit F5 to run the project, the Windows Network Login Dialog would pop up.. I would put in my user name and password and things would work as expected, but it got tiresome after a while.

The fix? Giving "Read & Execute / List Folder Contents / Read" rights to the  'Everyone' group of the Subdirectory buried way down in My Documents. (Right click on the subdirectory, select Properties, select the security tab, Select Add, and add the 'Everyone' group. The rights mentioned before are the default, and apparently there is no need to change them.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Making Google Apps Mail the Default email client

by kurt 13. August 2008 08:37

Updated September 17th, 2010

I noticed last week, this blog entries contents disappeared.  I did not have a backup, and since the purpose of this blog is to keep notes for when things go wrong,  I put it on my list of things to do to recreate it, just in case. Well just in case came yesterday, and due to a nasty virus I ended up repaving my machine. 

What the following does is create a new Mail Client. Once you run this script. Open up Internet explorer, go to tools menu > Internet Options, Select the Programs tab, then change the E-Mail option to "Gmail".  This new mail client is actually an internet explorer window that opens up with Gmail in it.

 First you need  to copy the following Registry Entry and modify it for your needs, after you read the following notes

 

  • If you don't know what registry files are, you should read up on them elsewhere on the internets .. I take no responsibility for you toasting your machine 
  • Note that this replaces your default email client on your entire system.   
  • Your email address goes in two places.. This example is set up for Google apps for your domains, but should be easily modified  to make gmail work.
  • Note that I have specified an Icon ,called Gmail.ico, that lives in the c:\windows directory I leave it up to you to find a suitable Icon, place it in the windows directory and give it the proper name

 

 

 Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Gmail]
@="Gmail"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Gmail\DefaultIcon]
@="c:\\windows\\Gmail.ico"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Gmail\Protocols]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Gmail\Protocols\mailto]
"URL Protocol"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Gmail\Protocols\mailto\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Gmail\Protocols\mailto\shell\open]
;Change the Domain and account info below 
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Gmail\Protocols\mailto\shell\open\command]
@="rundll32.exe url.dll,FileProtocolHandler http://mail.google.com/a/yourdomain.com/?extsrc=mailto&url=%1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Gmail\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Gmail\shell\open]
;Change the Domain and account info below. If I rmber corect this is for Vista, may not be need for XP
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Gmail\shell\open\command]
@="rundll32.exe url.dll,FileProtocolHandler http://mail.google.com/a/domain.com/?account_id=yourname%yourdomain.com"

 

Currently rated 5.0 by 4 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About this blog

Useful and not so useful stuff I want to remember, but would leak out of my brain if I did not write it down.

Page List

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar