Hi Folks,
If you got the error message from MS CRM 4.0 which is running on a VM on your test or production Hyper-V manager server, After i checked the the error message on the server, the error message which was :
"'AntiXssLibrary' or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0x80070070)"
Just trun off your VM, Then expand desk space allocated for the VM will fix the issue.
Hope this tip helps.
Regards,
Mostafa arafa
Enterpreneur and Technology advocate, Founder of Hadafsoft , M.Sc. of Computer Science, Engineer, & Solutions Architect. Follow me on twitter for quick updates: @mostafaelzoghbi
Wednesday, September 30, 2009
Monday, September 28, 2009
Access denied when try to sign your project in VS 2008
Hi Folks,
If you are facing a problem that you can't sign your project using VS 2008, this is not because there is a problem in VS 2008 but this is because the User Access control (UAC) feature in Vista. The User Access Control enabled in your system, you have to disable it to enable signing to your assembly in VS 2008.
OR
If you can't publish your project using ClickOnce deployment in VS 2008 and your are getting an error message : "publish aborted, can't create a default certificate"
The cause for above 2 errors messages are because of the UAC is enabled.
To do/fix this:
1) Open Run windows in Vista: Accessories -> Run.
2) Type MSCONFIG command.
3) select tools tab, select Disable UAC and click on Luanch button.
4) Reboot your system (Important).
Once you reboot your system, open your project and you will be able to sign your assembly.
Hope it helps.
Regards,
Mostafa arafa
If you are facing a problem that you can't sign your project using VS 2008, this is not because there is a problem in VS 2008 but this is because the User Access control (UAC) feature in Vista. The User Access Control enabled in your system, you have to disable it to enable signing to your assembly in VS 2008.
OR
If you can't publish your project using ClickOnce deployment in VS 2008 and your are getting an error message : "publish aborted, can't create a default certificate"
The cause for above 2 errors messages are because of the UAC is enabled.
To do/fix this:
1) Open Run windows in Vista: Accessories -> Run.
2) Type MSCONFIG command.
3) select tools tab, select Disable UAC and click on Luanch button.
4) Reboot your system (Important).
Once you reboot your system, open your project and you will be able to sign your assembly.
Hope it helps.
Regards,
Mostafa arafa
Wednesday, September 23, 2009
My first SQL azure Application on the Cloud !!!
Hi Folks,
Few months ago, i worked with Azure Services, and since i'm interested to develop applications over the cloud which extensively use SQL Server as a backend, i used BLOBS to store my data... actually it wasn't that easy to use, but the product was still in beta in that time.
Recently, I have some time to develop and start using SQL Azure services, A big start by allowing us to create the Database over the website, then all other operations ( CRUD ) for the Database design and object model can be done using ADO.Net classes.
C# Code for connecting and creating a table over the cloud:
SqlConnectionStringBuilder connString2Builder;
connString2Builder = new SqlConnectionStringBuilder();
connString2Builder.DataSource = "MyServer.ctp.database.windows.net"; // check your profile to know server name.
connString2Builder.InitialCatalog = "YourDB"; // you can create your own their.
connString2Builder.Encrypt = true;
connString2Builder.TrustServerCertificate = true;
connString2Builder.UserID = "myUserName";
connString2Builder.Password = "myPassword";
// Connect to the sample database and perform various operations
using (SqlConnection conn = new SqlConnection(connString2Builder.ToString()))
{
using (SqlCommand command = conn.CreateCommand())
{
conn.Open();
// Create a table
command.CommandText = "CREATE TABLE MostafaTable(Col1 int primary key, Col2 varchar(20))";
command.ExecuteNonQuery();
// Insert sample records
command.CommandText = "INSERT INTO MostafaTable(col1, col2) values (1, 'string 1'), (2, 'string 2'), (3, 'string 3')";
int rowsAdded = command.ExecuteNonQuery();
// Query the table and print the results
command.CommandText = "SELECT * FROM MostafaTable";
using (SqlDataReader reader = command.ExecuteReader())
{
// Loop over the results
while (reader.Read())
{
Console.WriteLine("Col1: {0}, Col2: {1}",
reader["Col1"].ToString().Trim(),
reader["Col2"].ToString().Trim());
}
}
}
}
-- To read more about SQL Azure services:
http://msdn.microsoft.com/en-us/library/ee336279.aspx
-- SQL Azure Forums:
http://social.msdn.microsoft.com/forums/en-US/ssdsgetstarted/threads/
Hope it helps.
Regards,
Mostafa arafa
Few months ago, i worked with Azure Services, and since i'm interested to develop applications over the cloud which extensively use SQL Server as a backend, i used BLOBS to store my data... actually it wasn't that easy to use, but the product was still in beta in that time.
Recently, I have some time to develop and start using SQL Azure services, A big start by allowing us to create the Database over the website, then all other operations ( CRUD ) for the Database design and object model can be done using ADO.Net classes.
C# Code for connecting and creating a table over the cloud:
SqlConnectionStringBuilder connString2Builder;
connString2Builder = new SqlConnectionStringBuilder();
connString2Builder.DataSource = "MyServer.ctp.database.windows.net"; // check your profile to know server name.
connString2Builder.InitialCatalog = "YourDB"; // you can create your own their.
connString2Builder.Encrypt = true;
connString2Builder.TrustServerCertificate = true;
connString2Builder.UserID = "myUserName";
connString2Builder.Password = "myPassword";
// Connect to the sample database and perform various operations
using (SqlConnection conn = new SqlConnection(connString2Builder.ToString()))
{
using (SqlCommand command = conn.CreateCommand())
{
conn.Open();
// Create a table
command.CommandText = "CREATE TABLE MostafaTable(Col1 int primary key, Col2 varchar(20))";
command.ExecuteNonQuery();
// Insert sample records
command.CommandText = "INSERT INTO MostafaTable(col1, col2) values (1, 'string 1'), (2, 'string 2'), (3, 'string 3')";
int rowsAdded = command.ExecuteNonQuery();
// Query the table and print the results
command.CommandText = "SELECT * FROM MostafaTable";
using (SqlDataReader reader = command.ExecuteReader())
{
// Loop over the results
while (reader.Read())
{
Console.WriteLine("Col1: {0}, Col2: {1}",
reader["Col1"].ToString().Trim(),
reader["Col2"].ToString().Trim());
}
}
}
}
-- To read more about SQL Azure services:
http://msdn.microsoft.com/en-us/library/ee336279.aspx
-- SQL Azure Forums:
http://social.msdn.microsoft.com/forums/en-US/ssdsgetstarted/threads/
Hope it helps.
Regards,
Mostafa arafa
Friday, September 18, 2009
SortedSet <T> new collection type in .Net 4.0 beta 1
Hi folks,
This post based on my readings in .Net 4.0 beta 1, one of the new enhancements in .Net 4.0 is SortedSet<T> collection type, which implements red-black sorting algorithm with complexity O(log n) for the entire list.
Red-Black tree is an efficient sorting algorithm and using this collection will help alot from performance of sorting large sets in the run time.
C# code:
var mySet=new SortedSet <int>() {3,2,7,23,12,879,345,122,98};
foreach(int x in mySet)
{
Console.WriteLine(x);
}
// output: sorted list.
To read more about .Net 4.0 enhancements, kindly check below links:
http://blogs.msdn.com/bclteam/archive/2009/05/22/what-s-new-in-the-bcl-in-net-4-beta-1-justin-van-patten.aspx
http://msdn.microsoft.com/en-us/netframework/dd819232.aspx
Hope this helps.
Regards,
Mostafa arafa
This post based on my readings in .Net 4.0 beta 1, one of the new enhancements in .Net 4.0 is SortedSet<T> collection type, which implements red-black sorting algorithm with complexity O(log n) for the entire list.
Red-Black tree is an efficient sorting algorithm and using this collection will help alot from performance of sorting large sets in the run time.
C# code:
var mySet=new SortedSet <int>() {3,2,7,23,12,879,345,122,98};
foreach(int x in mySet)
{
Console.WriteLine(x);
}
// output: sorted list.
To read more about .Net 4.0 enhancements, kindly check below links:
http://blogs.msdn.com/bclteam/archive/2009/05/22/what-s-new-in-the-bcl-in-net-4-beta-1-justin-van-patten.aspx
http://msdn.microsoft.com/en-us/netframework/dd819232.aspx
Hope this helps.
Regards,
Mostafa arafa
Saturday, September 12, 2009
CRM 4.0 Integration with your business applications/products
Hi Folks,
MS Dynamics - CRM 4.0 is one of the recognized products for mid-size, large customers for customers' relationship management products in the market.
If you have a CRM 4.0 in your company, you might want to integrate CRM Data with other business applications. The way to do this is to use MS Biztalk server which comes now with a CRM 4.0 Adapter.
This means that you can make use of CRM schema and Data using Biztalk 2006/2009 in your business applications or other products using this new released CRM adapter in Biztalk.
To download and start integrating with CRM 4.0, this is the download link and some useful documents to wotk with Biztalk CRM Adapter.
http://www.microsoft.com/downloads/details.aspx?FamilyID=ABD3BB9E-A59A-4EB6-8DE8-FB25B77926D7&displaylang=en
Hope this helps.
Regards,
Mostafa arafa
MS Dynamics - CRM 4.0 is one of the recognized products for mid-size, large customers for customers' relationship management products in the market.
If you have a CRM 4.0 in your company, you might want to integrate CRM Data with other business applications. The way to do this is to use MS Biztalk server which comes now with a CRM 4.0 Adapter.
This means that you can make use of CRM schema and Data using Biztalk 2006/2009 in your business applications or other products using this new released CRM adapter in Biztalk.
To download and start integrating with CRM 4.0, this is the download link and some useful documents to wotk with Biztalk CRM Adapter.
http://www.microsoft.com/downloads/details.aspx?FamilyID=ABD3BB9E-A59A-4EB6-8DE8-FB25B77926D7&displaylang=en
Hope this helps.
Regards,
Mostafa arafa
Sunday, September 06, 2009
Code for the power of Windows 7
Hi All,
Do you want to develop for the power of windows 7 ? Do you want to earn money for the submission you will do ? Competition is full of challenge and prizes.... deadline for registration is end of 10th october, Register now :
https://www.code7contest.com/
Start today with Windows 7 development.
Regards,
Mostafa arafa
Do you want to develop for the power of windows 7 ? Do you want to earn money for the submission you will do ? Competition is full of challenge and prizes.... deadline for registration is end of 10th october, Register now :
https://www.code7contest.com/
Start today with Windows 7 development.
Regards,
Mostafa arafa
Friday, September 04, 2009
"an item with the same key has already been added" on CRM 4.0
Hi Folks,
If you are experiencing this error on your CRM 4.0 instance, this means that your CRM 4.0 needs a hotfix to fix this problem.
The hotfix KB article:
http://support.microsoft.com/default.aspx/kb/949256
The error # : 951849
Hope it helps.
Regards,
Mostafa arafa
If you are experiencing this error on your CRM 4.0 instance, this means that your CRM 4.0 needs a hotfix to fix this problem.
The hotfix KB article:
http://support.microsoft.com/default.aspx/kb/949256
The error # : 951849
Hope it helps.
Regards,
Mostafa arafa
Subscribe to:
Posts (Atom)