Custom Resource provider factory

G

Guest

In the Beta 2 of Visual Studio I have tried to create a custom resource
provider. It works perfectly when I run the application, but when I load the
control in desing mode I get an
Error 1 MyLabel1:
Could not load type 'XResourceProviderFactory' from assembly
'Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'.
C:\source\2005test\site1\Default.aspx
C:\...\site1\
The code for the Custom resource provider factory is in a seperate signed
dll, and the devenv has tried to access it in the bin directory with success.

Here is the main code
<DesignTimeResourceProviderFactoryAttribute("XResourceProviderFactory")> _
Public NotInheritable Class XResourceProviderFactory
Inherits System.Web.Compilation.ResourceProviderFactory

Public Overrides Function CreateGlobalResourceProvider(ByVal
classKey As String) As System.Web.Compilation.IResourceProvider
Return New DBResourceProvider(classKey)
End Function

Public Overrides Function CreateLocalResourceProvider(ByVal
virtualPath As String) As System.Web.Compilation.IResourceProvider
Return New DBResourceProvider(virtualPath)
End Function
End Class
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top