FORUMS

c360 Forums
 Home        Members    Calendar    Who's On

Welcome Guest ( Login | Register )
      



Trouble getting started - adding samples to...Expand / Collapse
Message
Posted 2/15/2007 11:42:41 AMPost #1144
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
I recented attended the SDK training and am sitting down to try and actually work with the product and am stuck. I am using 1.1 in VS 2003. I've not done much with ASP and was hoping to use the samples that were used in the training to practice with, but I'm clearly missing something.

I have installed the SDK on an Adventure Works Demo Image and followed all of the instructions in the README and the Installion step by step here in this forum.  

So I have my C# ASP.Net Web application project and have made the changes to the .config files and added the three references (c360.toolkit.UI & .SKd & .webservices).  The directions seem to indicate that I should be off and running but alas.

I would like to work with the example 4.3d from the training manual   but appear unable to add these to my project.   When I attempt to do so I get a "no class file in the project associated with Web form..." error.  When I click No I still can't work with the forms as they don't recognize the references.  Must be my ignorance of ASP that I'm hopefully missing something simle here?

 The post on samples here seems to indicate that there is some folder structure I need to have in place within my project but, if so, it's something other than what's been posted here.

 So far, I've wasted 1/2 a day just trying to get up and running.  I can't even begin to apply what was discussed in training.  Any assistance is apprecated.

Debra

Posted 2/15/2007 3:00:25 PMPost #1147
 

c360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guru
Debra,

I'm sorry that you wasted so much time. The SDK is really simple to install and it shouldn't take you more than 30 minutes (I take a little longer during the conference in order to demonstrate the various problems you face if you don't follow all the steps).

The message that you get when you double click on one of the ASPX files is just a warning from VS.NET to let you know that there is no ".cs" file along with the ASPX. This is not a problem and the exercises will work just fine.

If you are getting any specific errors when you try to run one of the exercises, post it here and I'll try to help you (include a screenshot if you can, it typically helps).

 

Posted 2/15/2007 7:28:53 PMPost #1153
 

c360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expert
Debra,

Simply post the issues you are having and someone will try to assist.
That's what this forum is all about!

Posted 2/16/2007 11:52:54 AMPost #1165
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Ok.  Here are the further details on the errors that I'm getting. 

When I first open the sample .aspx I get the following message.  (I have added the three references as directed in the instructions)

   "The file could not be loaded into the web forms designer.  An exception occurred while trying to create an instance of c360.Toolkid.SDK.Pages.AreaPage.  The exception was “object reference not set to an instance on an object” Make sure all of the classes used in the page are built or referenced in the project."

When I try to run the sample I get the following error:

Server Error in '/CRMSLProjectView' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: File or assembly name Microsoft.Crm.Tools.ImportExportPublish, or one of its dependencies, was not found.

Source Error:


Line 20:     <add assembly="Microsoft.Crm.Platform.Types, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 21:     <add assembly="Microsoft.Crm.Scheduling, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 22:     <add assembly="Microsoft.Crm.Tools.ImportExportPublish, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 23:  
Line 24:  
 

Source File: C:\Program Files\Microsoft CRM Client\Microsoft CRM Server\CRMWeb\web.config    Line: 22

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Crm.Tools.ImportExportPublish' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Crm.Tools.ImportExportPublish, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/Program Files/Microsoft CRM Client/Microsoft CRM Server/CRMWeb/CRMSLProjectView
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: Microsoft.Crm.Tools.ImportExportPublish, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/crmslprojectview/5e848645/2e4664b5/Microsoft.Crm.Tools.ImportExportPublish.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/crmslprojectview/5e848645/2e4664b5/Microsoft.Crm.Tools.ImportExportPublish/Microsoft.Crm.Tools.ImportExportPublish.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft CRM Client/Microsoft CRM Server/CRMWeb/CRMSLProjectView/bin/Microsoft.Crm.Tools.ImportExportPublish.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft CRM Client/Microsoft CRM Server/CRMWeb/CRMSLProjectView/bin/Microsoft.Crm.Tools.ImportExportPublish/Microsoft.Crm.Tools.ImportExportPublish.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/crmslprojectview/5e848645/2e4664b5/Microsoft.Crm.Tools.ImportExportPublish.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/crmslprojectview/5e848645/2e4664b5/Microsoft.Crm.Tools.ImportExportPublish/Microsoft.Crm.Tools.ImportExportPublish.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft CRM Client/Microsoft CRM Server/CRMWeb/CRMSLProjectView/bin/Microsoft.Crm.Tools.ImportExportPublish.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft CRM Client/Microsoft CRM Server/CRMWeb/CRMSLProjectView/bin/Microsoft.Crm.Tools.ImportExportPublish/Microsoft.Crm.Tools.ImportExportPublish.EXE.


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

Again, I appreciate your assistance.

Debra

Posted 2/16/2007 3:23:27 PMPost #1169
 

c360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guru
Source File: C:\Program Files\Microsoft CRM Client\Microsoft CRM Server\CRMWeb\web.config    Line: 22

Debra, I notice that your error message references Microsoft's Web.config This is not right. I know that Microsoft's web.config has instructions to load additional DLLs which are not included in the c360 SDK and therfore that's why you are getting an error regarding not being able to find a DLL.

I do not know why this is happening to you though. Maybe it's just that you haven't created a web.config for your own custom application?

 

Posted 2/16/2007 4:11:30 PMPost #1171
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Jeremie,

I do have a web.config file in my VS project which is where I added the c360location code as directed in the instructions although I'm not sure I added that to the right place in the web.config file as that direction was not specific. 

Nor an I certain that I have installed the SDK and Licenses in the right place....while I followed the directions to the letter I don't know how to tell if what I did is correct. What indicators should I look for that the SDK and license were installed correctly? 

As I am unable to run your samples as given, I'm feeling that I must have done SOMETHING wrong.  I can throw out what I've done and start over (this will be the 4th time I'll have done so) but don't know what different to do next time.  I had the other person who attended the training sit with me and he wasn't able to see where the problem was either and we've now invested about 6 hours of time (not including the day for the training) in trying to be able to use this SDK.  If I have to go through this process for every VS project I need to create, I'm not sure where the value is.

What do you recommend that I do at this point?

Debra

Posted 2/16/2007 4:20:14 PMPost #1172
 

c360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guru
Debra,

I think you have a bigger problem than getting the c360 SDK to work. I think the issue you need to resolve is why is the Microsoft CRM web.config parsed when it should be your own config file that should be parsed. That is the root of your problem.

In fact, have you tried creating a new virtual directory with just a default.aspx and see if it works?

 

Posted 2/16/2007 9:12:19 PMPost #1175
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Well, what I did instead was abandoned VS 2003.  I started over and did exactly the same steps with VS 2005 and I didn't get ANY of the same errors and it worked first time out.

This makes it more complicated for me as I'd prefer just to do everything for CRM in VS2003 but clearly that's not going to work.

Debra

Debra

« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: kanika.jackson, Ken Champion

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 8:02am

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.125. 8 queries. Compression Enabled.