Unable To Find Assembly Name?
Jan 23, 2011i am using vs2008 for web page. i want to see my assembly name. For this i am right clicking on solution/project name but i am not able to see assemble name .
i am using vs2008 for web page. i want to see my assembly name. For this i am right clicking on solution/project name but i am not able to see assemble name .
I'm trying to load web resources from a linked assembly. Whatever I try, I get the exception:
Web resource 'MyNameSpace.scripts.jquery-min.js' was not found.
I'm using the following code to load it:
ScriptManager.RegisterClientScriptResource(this, typeof(MyNameSpace.SomeClass), "MyNameSpace.scripts.jquery-min.js");
What am I missing / doing wrong here, causing that exception?
My observations so far:
In the Reflector these resource is visible, and named as MyNameSpace.scripts.jquery-min.js In the AssemblyInfo.cs file of the project, the file is registered as:
[assembly: WebResource("scripts/jquery-min.js", "text/javascript")]
The file lives in the 'scripts' directory
On a sidenote, I've tried using Page.ClientScript.GetWebResourceUrl() but this generates an URL without checking if the resource exists. It also seems WebResource.axd is not mapped in Web.config at all.
I'm unable to find the Assembly info for a app created in VS 2010. I right click on the solution, click properties and then it allows me to select the Configuration Manager...but I don't see a tab for the assembly info
View 3 RepliesI have a web site that uses the both c# and vb.net in the app_code section. The different languages are separated into their own folder and correctly configured in the web.config.
<codeSubDirectories>
<add directoryName="BasicCode"/>
<add directoryName="CSharpCode"/>
</codeSubDirectories>
This works fine 95% of the time. In production using 2 load balanced servers I sporadically receive an error message along the lines of:
"Unable to find assembly
'App_SubCode_BasicCode.xxx,
Version=0.0.0.0, Culture=netural,
PublicKeyToken=null'.
The site is hosted in IIS7 and I think it has something to do with the name of the dll assigned during dynamic compilation. I do not see this problem in a single server environment. Could this be because when the session is balanced to the second server the dynamic compiled dll name is different?
When i loading modules from different places i injected them to controller factory, but when it is trying to load strongly typed views it can't find model type that is contained in module assembly.I made new ViewEngine and now it looks in right places but it cant load strongly typed views.
So as i understand i need to show the view where to find class model. If you have any other ideas please tel me. And one more i need this problem to be solved for WebFormViewEngine and RazorViewEngine.
I need to know which version of the report viewer control is used on a web server. If I can find it without asking it would be nice.Is there a way, by code, to find out which version of the assembly is used on the server?
View 2 RepliesI deployed an ASP.NET web application last night and I when I woke up this morning it was very slow and would occasionally just throw a 'Service Unavailable' error.
I checked the Event Viewer and it was filled up with these errors:
An unhandled exception occurred and the process was terminated.
Exception: System.Runtime.Serialization.SerializationException
Message: Unable to find assembly 'MonoTorrent, Version=0.80.0.0, Culture=neutral, PublicKeyToken=null'
I'm puzzled as it was working perfectly when I deployed it (MonoTorrent is required to retrieve the number of seeders/leechers for a certain torrent off the tracker - this was working fine), but it's no longer working and whenever code that uses MonoTorrent gets involved, the worker process just crashes.
MonoTorrent.dll is in the /bin/ directory.
UPDATE 6/4/10: I compiled the MonoTorrent source code in with the rest of my web application, but it still crashes whenever it uses MonoTorrent. However, it now says that it is Unable to find assembly 'OpenPeer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. Here, OpenPeer is the name of the web application's assembly.
Since I published my project to production box I can't drag anything from AJAX control toolkit to design view. I am getting the message"Can not find assembly 'C:usersadminDocumentsVisual Studio 005ProjectsTestingPrecompiledWebTestinginAjaxControlToolkit.dll'. However it allows me to copy Ajax control from other page. What did I screw up an how do I fix it?
View 16 RepliesTrying to unit test a web application using mstest I have that problem with resources included in App_GlobalResources folder in the web applications.
Those resources are built at runtime and because of that they are not found when running the unit tests.
Where can I find the dll for Could not load file or assembly 'Microsoft.Web.Preview, Version=1.2.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies ?
View 2 RepliesI have started a new MVC application (I am new to MVC and ASP.net in general) I am trying to write a custom provider class that overrides the MembershipProvider class.
The project compiles fine. In the web.config file, I have added the following line:
<add name="EYEAspProvider" type="Website.AspNet.Supplier.EYEAspProvider, FsWebsiteLibrary, Version=1.0.0.0, Culture=neutral" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed" [code]....
When I try to register a user, I get the error message:
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: Could not load type 'Website.AspNet.Supplier.EYEAspProvider' from assembly 'FsWebsiteLibrary, Version=1.0.0.0, Culture=neutral'.
Source Error: [Code]....
Line 58: <clear/>Line 59: <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" [code]...
I have recently discovered that I am affected by this bug http://www.mail-archive.com/mono-bugs@lists.ximian.com/msg71515.html
Well,at http://www.mail-archive.com/mono-bugs@lists.ximian.com/msg71529.html they say the work around is to create a global policy assembly and redirect the assemblies that way since it is not read from the web.config.
How do you actually do what they describe there? There is a huge documentation gap in that area with Mono.Also,I can't just recompile the assembly to use the new Mono assembly versions because the assembly is closed source.(but it does work with Mono.)
i m Creating a Validation Control for CheckBoxLists ,and i follow this link
i convert C# class to vb.net ,and put validator to checkbox list
here is the code for check box list
[code]
i m Creating a Validation Control for CheckBoxLists ,and i follow this link
http://aspnet.4guysfromrolla.com/web...040302-1.shtml
i convert C# class to vb.net ,and put validator to checkbox list ,here is the code for check box list
Code:
<asp:CheckBoxList ID="hotel_requirement_Types" RepeatColumns=3 RepeatDirection=Horizontal runat="server">
[code]....
i have class
Code:
Imports System.Web.UI
Imports System
[code]....
Description: An error occurred during the parsing of a resource required to service this request.Parser Error Message:
Could not load file or assembly 'RequiredFieldValidatorForCheckBoxLists' or one of its dependencies. The system cannot find the file specified.
I'm using Visual Studio 2008 and i downloaded the toolkit from Codeplex,I downloaded the zip file which i've marked red in the below link..This is my code, [Code]....
& this is the error i get," Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' "
I saw this post,http://forums.asp.net/p/1273185/3439540.aspx and
i changed my TOOLSCRIPTMANAGER into SCRIPTMANAGER & now i get this error
http://forums.asp.net/t/1529516.aspx
Server Error in '/IMGcup' 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: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source Error: [Code]....
Source File: C:inetpubwwwrootIMGcupweb.config Line: 24 Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
[Code]....
I have downloaded ajax toolkit fromĀ URL....
When I am using control it gives error unable to reference extender assembly "AjaxToolkit control" version =4.1.7.1105 , culture = netural , publickey token=28f01b0e84b6d53e
And when running aspx page it gives unable to get property ui of undifeined or null reference..how it can be removed..
I recently installed developer express and sql server 2008 express. I am trying to connect to the sql database but get this error. When I try to add a reference to system.data.sql, it doesn't exist. Did install sql server 2008 service pack 1 wrong or visual studio express service pack 1 wrong?
View 1 RepliesI had web application developed in VS 2005 + Sql server 2005 + Ajax 1.0 Extension . (Developed in Windows Server 2005) Now i am migrating to VS 2008.(Windows Server 2008 + Sql server 2008)
After opening and compile my Existing application in VS 2008,i am getting error.
Errors :-
Unable to load file or assembly 'System.web.Extenstions'' version=1.0.61025. (I think it because of AJAX Extension version.So i installed AJAX Extension 1.0 but it will give me ambiguous error so i uninstalled.I am added reference for version=3.5.0 but again unsuccessful.) What i will do now? Also i used 'Microsoft.SqlServer.SmoEnum', Version=9.0.242.0 in VS 2005. (Are i have to change it to version=10.0.0.0? by adding reference to new version.) I also used crystal report.(Is there is anything to do with it?)
I am able to find the controls of all of these Lables and TextBoxes accept the edateTB. This is strange to me because it is in the same view as the sdateTB. So why would edateTB return NULL when I try to use FindControl on it and sdateTB return the correct control?
Here is the codebehind where I am getting this error. There is more code in this, but I just thought I would include everything up to the part where I get the NULL error.
[Code]....
Couple of days ago I was creating site where i have placed a login control taken from the Login Tab in Toolbar, but today i am unable to find it there, see the attached snap, where the Login Control Is ?
View 5 RepliesWhen I run the website locally using my VS, everything works.
I am calling a function inside a dll using P/Invoke. DLL is in C++ and it works.
When I deploy the website on IIS, I get the error message Unable to load DLL 'SolvingProbelm.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
The dll resides inside the bin folder. App pool is Classic and .net 2.0
I'm trying to get my content page to be able to access an ASP:Literal on a master page.
I have my content page as:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="viewProduct.aspx.cs" Inherits="AlphaPackSite.viewProduct" Title="Hi there!" %>
<%@ MasterType TypeName="Main" %>
Then my master page called Main.master has:
<asp:Literal runat="server" ID="lblBasket" />[code].....
hi friends i am using some encryption in my application but i am unable to find encryption64 namespace please tell me from where i can get this namespace. and the error which i am gettin is below
Error : The type or namespace name 'Encryption64' could not be found
i am trying to upgrade my WEB applications from .net 2.0.0.0 to 3.5.0.0. When i open my solutions in VS2008, it prompts me to update the framework to 3.5.0.0 .
But. Not all the dlls are getting updated. some dlls are getting updated to 3.5.0.0 but some remain in older version 2.0.0.0. Also, i could not find some dlls in 3.5.0.0 folder
For example the following dlls are there in 2.0.0.0 but not in 3.5.0.0
System.Configuration
System.Web
System.Xml
i have installed ajax control kit successfully and all controls already came in toolbar tab named "Ajax Control toolkit"But when i try to design any page using with ajax control toolkit, follow error is coming:
Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.TypeLoadException: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Source Error:[Code]....
Stack Trace: [Code]....
[TypeLoadException: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.]
AjaxControlToolkit.ToolkitScriptManager.OnResolveScriptReference(ScriptReferenceEventArgs e) in [code]...
I am using VIsual Studio 2008 , framework 3.5 but i don't know why in error information version is showing 2.0
i install tool kit according 3.5 framework.also note, framework built-in ajax tags i can use fine and they work properly.