Wednesday, April 30, 2008

Friday, April 25, 2008

Mapping a folder to the GAC

Here is the command to map the GAC folder to a drive

Start->Run->cmd
subst g: c:windowsassembly (with the backslashes in the right spot)

Open G: drive in Explorer

Thursday, April 24, 2008

Weird GAC issue

I was doing a WSS Application Page (first time to do this) and found a weird behavior. When I went to test the page, I would get an "File not found" WSS error. I would go back to my code and review it and make a couple of changes and redeploy it. Then it would work. Then I would make a simple change, redeploy it, and then it would break. It turns out it was a problem with the registering of the assembly into the GAC. It would fail to register every other time. I caught this by mapping a drive to the GAC folder and watching it. When the page would work, the DLL would be copied to the correct folder. But the next time it would be copied to some kind of temp folder. Then if I looked in the VS output window, I would see that it was failing because of access denied when it went to register it. I haven't dug any further into this, but for right now, when I make a change, I just make sure the DLL is put into the GAC correctly before I test it.

Scan directly into SharePoint

I recommended this product to my client. It allows you to directly scan a document from a desktop into SharePoint. It works really well and is easy to setup. And for the price, it isn't a bad deal.

https://www.darkblueduck.com/Default.aspx