Posted by: jwalin on: October 14, 2009
| Tool | Download |
| FxCop | FxCop is a code analysis tool that checks .NET managed code assemblies for conformance to the Microsoft .NET Framework Design Guidelines. It uses MSIL parsing, and callgraph analysis to inspect assemblies for more than 200 defects in the following areas: Library design FxCop includes both GUI and command line versions of the tool and supports
|
| ILMerge | ILMerge is a utility that can be used to merge multiple .NET assemblies into a single assembly. ILMerge takes a set of input assemblies and merges them into one target assembly. The first assembly in the list of input assemblies is the primary assembly. When the primary assembly is an executable, then the target assembly is created as an executable with the same entry point as the primary assembly. Also, if the primary assembly has a strong name, and a .snk file is provided, then the target assembly is re-signed with the specified key so that it also has a strong name. ILMerge is packaged as a console application. But all of its functionality ILMerge runs in the v2.0 .NET Runtime, but it is also able to merge v1 or Currently, ILMerge works only on Windows-based platforms. It does not yet |
| .Net Reflector | An excellent tool for analyzing .NET assemblies. |
| Fiddler | A free HTTP debugging proxy tool. Fiddler is essential for tracking and parsing the HTTP traffic between Microsoft Dynamics CRM for develpment and debugging purposes. |
| DebugBar | A licensed Web development tool that integrates directly within Internet Explorer. Allows you to quickly navigate the DOM of Microsoft Dynamics CRM Web Page. |
| IE Dev Toolbar | A free Web development tool with functionality similar to the DebugBar tool. |
| NUnit | A free, open-source unit-testing framework. |
| RhinoMocks | Another free, open-source unit-testing framework. |
Posted by: jwalin on: August 25, 2009
SELECT SERVERPROPERTY(‘productversion’) as version,
SERVERPROPERTY (‘productlevel’) as sp, SERVERPROPERTY (‘edition’) as edition
for more information
http://support.microsoft.com/kb/321185
Posted by: jwalin on: August 17, 2009
Posted by: jwalin on: August 12, 2009
This is really nice article.
http://www.it-career-coach.net/2009/03/09/which-comes-first-certification-or-training/
Posted by: jwalin on: August 11, 2009
This is the best blogs to get the information about Sharepoint Development.
http://blogs.msdn.com/pandrew/archive/2008/05/01/getting-started-with-sharepoint-development.aspx
if you go down in comment section you can find more
Posted by: jwalin on: June 26, 2009
Posted by: jwalin on: June 26, 2009
Thank you Peter Vogel
Encrypting Sections
This is the code that I use to encrypt a specific section of the Web.config file. I first select a section using the Configuration object’s Sections collection. In this case, I’m selecting the connectionStrings section:
Dim configFile As System.Configuration.Configuration
Dim configSection As ConfigurationSectionconfigFile = System.Web.Configuration.WebConfigurationManager. _
OpenWebConfiguration(Request.ApplicationPath)
configSection = configFile.Sections("connectionStrings")
This code assumes that it’s running from a page on the site so I can use the ApplicationPath property on the Request object to get the physical path to the web.config’s folder. If you wanted to create a utility, you’d need to hard code the path you pass to the OpenWebConfiguration method.
Now that I have the section, I encrypt it, specifying the encryption scheme that I want to use. The last step is to save the encrypted version back to the config file:
configSection.SectionInformation. _
ProtectSection("RsaProtectedConfigurationProvider")
configFile.Save()
The result looks like this in the Web.config file:
<connectionStrings
configProtectionProvider=”DataProtectionConfigurationProvider”>
<EncryptedData>
<CipherData>
<CipherValue>…encrypted data… </CipherValue>
</CipherData>
</EncryptedData>
</connectionStrings>
The good news is that when you use the ConfigurationManager’s ConnectionString collection to retrieve an encrypted connection string, the connection string is automatically decrypted for you. This code works whether the connectionStrings section is encrypted or not:
Dim cnStr As String
cnStr = System.Web.Configuration.WebConfigurationManager. _
ConnectionStrings("Northwind").ConnectionString
Since the strings are encrypted using the private key for the Web server, even if the file is stolen from the site, it can’t be decrypted on any machine except the Web server. This also means that you can’t encrypt the connection string until the application has been moved to the production server: If you encrypt the connection string on the test server and then move your site to the production server, ASP.NET won’t be able to decrypt the string using the production server’s private key.
On occasion, you’ll need to decrypt the web.config section just to check what’s actually in the file. This code takes care of that job:
Dim configFile As System.Configuration.Configuration
Dim configSection As ConfigurationSectionconfigFile = System.Web.Configuration.WebConfigurationManager. _
OpenWebConfiguration(Request.ApplicationPath)
configSection = configFile.Sections("connectionStrings")
configSection.SectionInformation.UnProtectSection()
configFile.Save()
Command Line Encryption
If you’d prefer not to use code, you encrypt (or decrypt) sections of your web.config file using the aspnet_regiis utility. You must pass the utility the -pe parameter to specify the section to encrypt along with the path name to the config file’s folder, and you must also pass the -prov parameter to specify the encryption scheme:
aspnet_regiis.exe -pef section physical_directory -prov provider
This example encrypts the configurationStrings section for a config file in the c:\NorthwindCRM folder:
aspnet_regiis.exe -pef configurationStrings c:\NorthwindCRM
-prov "RsaProtectedConfigurationProvider"
You can also use aspnet_regiis utility to decrypt the section using the -pdf parameter instead of -pef.
Or you could just make sure that no one can steal text files from your Web server.
NOTE:
When you change the configuration file while running, all Sessions would be reset… and data would be lose well..
The comment about changing the web.config file causing your application to (effectively) restart is an excellent point–and one I should have mentioned. You really do want to encrypt your config file !!AS SOON AS YOU DEPLOY IT!! and not after some users have started working with the application
Posted by: jwalin on: June 4, 2009
http://www.linkedin.com/news?actionBar=&sik=1244087646866&aIdx=0&articleID=40544986
Posted by: jwalin on: June 2, 2009
Example, but with no error checking:
using System;
using System.Reflection;
namespace Foo
{
class Test
{
static void Main()
{
Type type = Type.GetType(“Foo.MyClass”);
object instance = Activator.CreateInstance(type);
MethodInfo method = type.GetMethod(“MyMethod”);
method.Invoke(instance, null);
}
}
class MyClass
{
public void MyMethod()
{
Console.WriteLine(“In MyClass.MyMethod”);
}
}
}
Each step needs careful checking – you may not find the type, it may not have a parameterless constructor, you may not find the method, you may invoke it with the wrong argument types.
One thing to note: Type.GetType(string) needs the assembly-qualified name of the type unless it’s in the currently executing assembly or mscorlib.
Posted by: jwalin on: May 25, 2009
I have one task to convert the Store procedure into SSIS package. In store procedure it is using Cursor. By googling I tried to find an example but could not find good example. Here is my store procedure
DECLARE Agent_SkillGroup CURSOR FAST_FORWARD READ_ONLY FOR
SELECT DateTime,SkillTargetID,PeripheralID,sum(HandledCallsTalkTimeToHalf),count(*)
FROM WCI_IP_ST_AGENT_SKILL_GROUP_HH
WHERE SkillGroupSkillTargetID NOT IN (7820,10023,10793,13948,16368)
AND DateTime>= CAST(Convert(varchar(10), getdate()-1, 101) as datetime)
AND DateTime 0
DROP TABLE #Agent_Temp
SELECT 0 SkillGroupSkillTargetID,0 SkillTargetID,100.000000 R2,1000.00000 R21
INTO #Agent_Temp
OPEN Agent_SkillGroup
FETCH NEXT FROM Agent_SkillGroup INTO @date,@IPCCAgentTargetId,@PeripheralId,@AgntTotalTalkTime,@noAgentSG
WHILE @@FETCH_STATUS -1
BEGIN
SELECT @AgntAvailTimeOnDefaultSk = AvailTimeToHalf FROM WCI_IP_ST_AGENT_SKILL_GROUP_HH
WHERE DateTime=@date and SkillTargetID=@IPCCAgentTargetId and PeripheralId=@PeripheralId
and SkillGroupSkillTargetID = (
Select Case @PeripheralId
When 5000 Then 7820
When 5006 Then 10023
When 5016 Then 13948
When 5024 Then 16368
End
)
Truncate table #Agent_Temp
IF @noAgentSG>1
BEGIN
IF @AgntAvailTimeOnDefaultSk 0 ---No Available Time
BEGIN
IF @AgntTotalTalkTime=0 Select @AgntTotalTalkTime=1
INSERT INTO #Agent_Temp (SkillGroupSkillTargetID,SkillTargetID,R21,R2)
SELECT SkillGroupSkillTargetID,SkillTargetID , AvailTimeToHalf*1.000/ @AgntAvailTimeOnDefaultSk,0
FROM WCI_IP_ST_AGENT_SKILL_GROUP_HH
WHERE SkillTargetId=@IPCCAgentTargetId
AND Datetime = @date AND PeripheralId=@PeripheralId
AND SkillGroupSkillTargetID not in (7820,10023,10793,13948,16368)
SELECT @sumR21 = sum(R21) from #Agent_Temp
IF @sumR21 = 0.00
SELECT @sumR21=count(*) FROM #Agent_Temp
UPDATE #Agent_Temp SET R2=R21/@sumR21
If @AgntTotalTalkTime1
UPDATE WCI_IP_ST_AGENT_SKILL_GROUP_HH SET
Ratio1=HandledCallsTalkTimeToHalf*1.000/@AgntTotalTalkTime,
Ratio2=R2,
wcAvailableTime = convert (int,@AgntAvailTimeOnDefaultSk*1.0000 * ((HandledCallsTalkTimeToHalf*1.000/@AgntTotalTalkTime)+R2)/2)
FROM #Agent_Temp
WHERE WCI_IP_ST_AGENT_SKILL_GROUP_HH.DateTime=@date and WCI_IP_ST_AGENT_SKILL_GROUP_HH.SkillTargetID=@IPCCAgentTargetId
AND WCI_IP_ST_AGENT_SKILL_GROUP_HH.SkillGroupSkillTargetID=#Agent_Temp.SkillGroupSkillTargetID
AND WCI_IP_ST_AGENT_SKILL_GROUP_HH.SkillGroupSkillTargetID not in (7820,10023,10793,13948,16368)
ELSE
UPDATE WCI_IP_ST_AGENT_SKILL_GROUP_HH set
Ratio1=1.000/@noAgentSG, Ratio2=R2, wcAvailableTime = convert (int,@AgntAvailTimeOnDefaultSk*1.0000 * ((1.000/@noAgentSG)+R2)/2)
FROM #Agent_Temp
WHERE WCI_IP_ST_AGENT_SKILL_GROUP_HH.DateTime=@date and WCI_IP_ST_AGENT_SKILL_GROUP_HH.SkillTargetID=@IPCCAgentTargetId
AND WCI_IP_ST_AGENT_SKILL_GROUP_HH.SkillGroupSkillTargetID=#Agent_Temp.SkillGroupSkillTargetID
AND WCI_IP_ST_AGENT_SKILL_GROUP_HH.SkillGroupSkillTargetID not in (7820,10023,10793,13948,16368)
SELECT @AfterSplitSum = sum(wcAvailableTime) FROM WCI_IP_ST_AGENT_SKILL_GROUP_HH
WHERE
DateTime=@date AND SkillTargetID=@IPCCAgentTargetId
AND SkillGroupSkillTargetID NOT IN (7820,10023,10793,13948,16368)
IF @AfterSplitSum@AgntAvailTimeOnDefaultSk
BEGIN
SELECT @ErrCorrSkillId = SkillGroupSkillTargetID FROM WCI_IP_ST_AGENT_SKILL_GROUP_HH
WHERE SkillTargetID=@IPCCAgentTargetId and DateTime=@date
AND SkillGroupSkillTargetID not in (7820,10023,10793,13948,16368)
ORDER BY Ratio1 DESC
UPDATE WCI_IP_ST_AGENT_SKILL_GROUP_HH SET
wcAvailableTime= wcAvailableTime +(@AgntAvailTimeOnDefaultSk-@AfterSplitSum)
WHERE DateTime=@date AND SkillTargetID=@IPCCAgentTargetId
AND SkillGroupSkillTargetID = @ErrCorrSkillId
END ------ End Rounding correction
End --end @AgntAvailTimeOnDefaultSk 0 true
End --end @noAgentSG>1 true
Else
UPDATE WCI_IP_ST_AGENT_SKILL_GROUP_HH SET
wcAvailableTime= @AgntAvailTimeOnDefaultSk
WHERE DateTime=@date AND SkillTargetID=@IPCCAgentTargetId
AND SkillGroupSkillTargetID NOT IN (7820,10023,10793,13948,16368)
fetch next from Agent_SkillGroup into @date,@IPCCAgentTargetId,@PeripheralId,@AgntTotalTalkTime,@noAgentSG
END
CLOSE Agent_SkillGroup
DEALLOCATE Agent_SkillGroup
Here is the SSIS Package Screenshot

and here is the package which is in doc file. but when you download it Change extension to .ZIP File
Get Agent Data