473,320 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Custom Resource provider factory

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("XReso urceProviderFactory")> _
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
Nov 19 '05 #1
0 1486

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is...
0
by: jonathan.eves | last post by:
Hi I am having a hard time with localization of the sitemap. I have created a custom SiteMapProvider which inherits from StaticSiteMapProvider. For which everything works fine. The next...
0
by: Kurtis | last post by:
G'Day, I'm in the process of developing a custom ResourceProvider for an ASP.Net web application written in C# 2.0, which uses SQL server as the data store. I'm half way there! After setting the...
2
by: Jimmy | last post by:
I should write a custom resource provider that should do something simple: return the resource key together with the textual value in one string. I started delving into this subject. The online...
5
by: Daniel | last post by:
Hey guys When you hook an event (c# 2.0 syntax): myEvent += MyMethodToFire; You need to also unsubscribe it to avoid a resource leak so that the object it is in gets garbage collected like so...
6
by: Mike P | last post by:
Can anybody tell me exactly what a provider is? And give an example? *** Sent via Developersdex http://www.developersdex.com ***
2
by: Larry | last post by:
Hello, I am about to write an app for Pocket PC 2003 / Windows CE / Mobile 5 (don't know which yet) from which I need to query both SQL Server Express 2005 and SQLCe. I would like to be able to...
0
by: Jordan S. | last post by:
Using .NET 3.5... in a "plain old" .aspx page I have the following code in the Init event: this.Context.Response.Cache.SetExpires(DateTime.Now.AddSeconds(60));...
6
by: Jordan S. | last post by:
Using .NET 3.5... 1. Will ASP.NET guarantee that no more than ONE instance of a custom HTTP handler factory (class implementing IHttpHandlerFactory) is ever created in an ASP.NET application? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.