Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
905
Error with GaugeImages
posted
I followed the instructions on: http://community.infragistics.com/articles/build-custom-sharepoint-webpart.aspx and I am getting an error when I include the Web Part on my page. The error complains about missing the Virtual Directory to store the Gauge Images. So, I set the "DeploymentScenario.FilePath" property to point to

Me._Gauge.DeploymentScenario.FilePath = "C:\Infragistics\GaugeImages"

and the page wont load at all.  I also tried:

 Me._Gauge.DeploymentScenario.FilePath = "C:\Inetpub\wwwroot\wss\VirtualDirectories\80\Infragistics\GaugeImages" (and I created the dir of course)

 

Finally (yes, last of course) I read the directions and also tried creating the "ig_common" virtual directory and I put all images, scripts, forms, etc there as the instructions outlined. Still, I get the same error.

Any ideas? Is it something to do with directory permissions, or am I somehow setting the "FilePath" property wrong, or what?

Thanks!
Shayne 

 

 

Ideas??

Parents
  • 19308
    posted

    Hi Shayne,

    This sounds like a permissions issue.  The ASP.NET_WP isn't going to have acecss to root folders like C:\infragistics\gaugeimages, you would need to specifically grant permissions to that folder for that process.  Alternatively, you could use the virtual directory, which would have access granted through IIS.  However, anything under wwwroot gets 'stepped' on by SharePoint.  To tell SharePoint to keep its hands off your folder, you need to add it as a folder inclusion.  I think that might be the step you're missing.

    Deploying

    You will need to copy any Infragistics assemblies used as references, along with your custom assembly, to your Microsoft Office SharePoint Server. It is best to install the assemblies into the GAC to avoid Code Access Security exceptions. Because NetAdvantage for ASP.NET [CLR2] assemblies contain the necessary JavaScript files as embedded resources, creating a virtual directory for script files is not required; however, should you want to use custom images or CSS style sheets, you will want to set up a directory for those resources. You will also need to inform WSS of the directory and mark it for “Wildcard Inclusion.” You can use IIS to add a virtual directory, which will contain all of your resources, to your SharePoint site. Once you have added the virtual directory, use the SharePoint Central Administration page to include the directory.

     

     

Reply Children