Configuration :: Web.Config When The Assembly Tag Is Added?
Oct 21, 2010
When I drag/drop a Chart or ReportViewer control onto my page the web.config updates with said assemblies however my website fails to load. Removing the controls and assembly tags successfully starts the website however I cannot seem to understand why the website has issues when the Chart, for instance, is loaded.
The site is live within an intranet space which was originally created in .asp however the .aspx pages I create do work with other controls such as gridviews etc.It seems altering the web.config causes issues but I just want to know how I can get the chart etc controls working?
View 1 Replies
Similar Messages:
Feb 17, 2010
I quickly setup Roles to get my site up, but now I am going back and tightening them up. I have a custom SQL Server database Provider to hold users.I want 3 Roles, Admins, Progress and then a standard User.I have all the files only Admins to use are in a folder SecureAdminI have all the files only Progress to use are in a folder SecureProgress And all the files that everybody has access to are in the Secure Folder.As soon as I added the Custom XML Site provider, my Tree View disppeared. I would assume it's because my roles are not configured correct. I can use the ASP.NET configuration tool to see my roles and users, but any combination I try in there doesn't seemto do anything. I see most examples have some code like below.
[code]...
But even when I set up some roles in the ASP.Net configuration, I never see anything like that added to my web.config? Is this because it is stored in the database? If not, what what I add to my web.config to make this work?
View 7 Replies
Jun 11, 2010
Have u ever added an Assembly to GAC in realtime..? I mean under what situation you have done that? In the usual ASP.Net development I haven't come across such a cituation. (I know the concept - why we add is because... it will be available globally to all app. But what I need to know is the realtime situation you needed this)
View 7 Replies
Nov 25, 2010
I need to compile a class library (DLL) from an ASP.NET source. Now when I try to build it says this:
The type
'System.ComponentModel.ISupportInitialize'
is defined in an assembly that is not
referenced. You must add a reference
to assembly 'System, Version=2.0.0.0,
Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
Now I know that I have to put it in the web.config file. But there is no web.config file it's just the source of the dll that needs to be compiled.
View 1 Replies
Jan 13, 2011
I need to add reference to 'System.XML.dll' assembly into web.config (in order to try solution for problem, mentioned here: Problem with Extension method: IXmlLineInfo).I've tried to add the following line into "assemblies" section:
<add assembly="System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"/>
View 2 Replies
Jan 31, 2010
read the connection string in a web application from a T4 template residing in ANOTHER assembly referenced by the web application. I am generating some code from the database that it references and how to get the connection string for this use. ive read George Js example here however it only works when the template resides in the web app.
View 2 Replies
Jan 7, 2010
I 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?
View 1 Replies
Aug 31, 2010
Currently, when I want to use Microsoft Chart Controls on a website, I need to add the following onto every aspx page where I want to use it:
<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
Is there any way to move this to the web.config file, so that I don't have to put it on every page ?
View 2 Replies
Sep 2, 2010
A while ago when i started using VS 2005, i found that some assembly entries were automatically added to from web.config
and i was getting annoying errors. later i found i have added unneccessary references in my application. And its a feature that assembly reference are automatically added to assembly tag in Web.config, So dev don't have to worry about it.
Recently i used Interop.OWC11.dll in my application. And ^&*# got the annoying
"CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)"
error again.. Assembly entry was not added automatically. I checked same for existing references in my application, for them to automatic entries is not happening.... ? :(
I have to write is down in Web.config manually... I don't understand why?....
View 2 Replies
May 3, 2010
I have deploy my web site, it contains a project!
in MyWeb there are all the aspx page and some entites datamodel, in MyApp there are the class with function like "getter data from DB" and there is a entity data model.
afeter the deploy, I have only the web.config and the connection string for the entity datamodel....itīs run ok, read/write the data on the DB.
The problem is with MyApp.....after the deploy it is a dll file and I donīt have the app.config and the entity inside it donīt run, not read/write nothing on the DB.
There arenīt error or messager but not read/write the data in the MyApp project.
all run on the iis 7
now...the question is:
I lose the connection string (in app.config) after the deploy?
Can I put a entity in the MyWeb and read it in another project (myApp)?
ps: for connect to DB I use not the c# code:
var db=from x in AccessDB.Example select x;
View 1 Replies
Jan 5, 2011
I am developing web applicaiton. I want to read web.config in App.config file. I have appSettings and connectionStrings in web.config. How to read that?
View 10 Replies
Feb 18, 2010
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.)
View 1 Replies
Nov 3, 2010
I made a custom server control library that all of our websites will be using. I have registered the dll in the global web.config of our production and development servers, and everything runs fine in the browser. The only problem I have is Visual Studio/Intellisense not recognizing my control. I get the error message "Unknown server tag...", which in turn throws other validation warnings. Does anyone know how to tell Visual Studio to include dll's registered in this location? Our sites are .net 4.0 and below is an excerpt from the web.config located in %SystemDrive%WindowsMicrosoft.NETFrameworkv4.0.30319Config on the servers.
<pages>
<controls>
<add assembly="[assembly info]" tagPrefix="irnrControls" namespace="IRNR.Controls"/>
</controls>
</pages>
It's not that big of a deal right now as I only have one control in the dll, but I would like to fix this before I add more controls.
Edit: I can't debug the site and it fails when I try to build it. The Output window displays "Unknown server tag".
View 2 Replies
Jul 19, 2010
I have an asp.net 4.0 site. I have CAS turned on for legacy support. But in CAS, is there a way to prevent a runtime loaded assembly from accessing the web.config file? I don't see a permission set that denies access to configuration information.
View 1 Replies
Jan 15, 2010
While using a third party dll I was getting the following exception - "exePath must be specified when not running inside a stand alone exe" with following trace
System.Configuration.ConfigurationManager.OpenExeConfigurationImpl(ConfigurationFileMap fileMap, Boolean isMachine, ConfigurationUserLevel userLevel, String exePath).
The reason I found was that it was looking for app.config and I had provided the details in web.config. My question is why does the system.configuration differentiate between web.config and app.config.
View 2 Replies
Aug 10, 2010
I upgrade my application from .NET 2.0 to .NET 4.0. Everything went smooth, with very few errors. Now the code is compiling fine, but run time environment is loading the configuration parameters from app.config instead of web.config;Here is my setup:Objects project: has app.configUI project: has web.config, When I run this site, it is fetching the configuration parameters from app.config. Any idea if I need to make any changes to read it from web.config instead of app.config? It used to work fine in my previous environment.
View 8 Replies
Jun 4, 2010
I built my ASP.NET website using vs2008 professional.
Now I have purchased vs2010 professional edition.
I do format my computer and then installed vs2010.
Now I want to deploy my website in vs2010, but it is giving configuration error in <add assemblies...
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.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
View 2 Replies
Apr 30, 2010
Web.config is the main settings and configuration file for an ASP.NET web application. The file is an XML document that defines configuration information regarding the web application. The web.config file contains information that control module loading, security configuration, session state configuration, and application language and compilation settings. Web.config files can also contain application specific items such as database connection strings
Example 1:
<!-- This is an example Web.config file -->
[Code]....
In this article, we will see how to read the configuration settings in the web.config using 'JavaScript'.
Step 1: Create a new ASP.NET website. Add a button control to the Default.aspx.
Step 2: Right click the project > Add New Item > Web Configuration File
Add the following sample entry to the appSettings section in the web.config between the <configuration> tag as shown in the example 1:
<add key="var1" value="SomeValue"/>
Step 3: To read these entries using JavaScript, add the following script in the <head> tag of your Default.aspx page as shown below:
<head runat="server">
<title></title>
<script type="text/javascript">
function ReadConfigSettings()
{
var v1 = '<%=ConfigurationManager.AppSettings["var1"].ToString() %>'
alert(v1);
}
</script>
</head>
Step 4: Call this function on a button click and display the values of the configuration settings
<input type="button" value="Get" onclick="ReadConfigSettings();" />
That's it. Run the application and click the button. The value of the key in the appSettings will be displayed in the alert window. I hope you liked this short article.
View 7 Replies
Jan 26, 2011
I keep getting the all-too-familiar Report Viewer Configuration error, even after double-checking changes in web.config.It worked fine yesterday morning. Then by late afternoon, after I uploaded some site changes, it reverted to throwing the error.Report Viewer Configuration Error
The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add <add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0
View 1 Replies
Nov 2, 2010
when developing in my pc , all is fine , but when upload to hosting , it show error ~
[img]http://image.love9cube.net/images/sadsadcgc.jpg[/img]
View 2 Replies
Oct 28, 2010
I downloaded the trial version of abcpdf, which is absolutely fantastic!
Anyway, real simple, you just need to reference the .dll and off you go...
So, I got my code working, but when I moved to production server I hit a wall.
It definitely has to do with the .dll because when I comment out the pdf sub routine, the code executes and completes all other tasks. When I uncomment, It's not working.
The trouble is, on my server I don't have the full version of VS, so I am unable to add a reference, which I presume takes care of the web.config settings? I manually dropped the .dll into the bin folder and I added the assembly line into web.config, but, as I don't have the above, I am not sure if the token key is correct.
To test this, I uploaded the working .dll file to my server, which I assumed the key is associated with, but still the same.
how to either get the correct key and/or how to reference an assembly manually? Is there something I have missed?
View 2 Replies
Apr 24, 2010
I have strange problem with missing assembly of my application after IIS restart. My application is installed correctly to IIS 7.5 (windows 7) and works fineAfterwards I make a restart of IIS serverNow my application is not working properly, some classes (assemblies) are missing. I've insterted a code to my application that writes all avaible assemblies into my log file (see code below ) and really a few assemblies are missing[Code]....
Restart of IIS or even restart of windows is not enoughThe workaround is to make some change in web.config or to rewrite some *.dll by the same dll library (in order to force IIS to reload whole application)afterwards it works fine again (till next restart of IIS) for better understanding I've recorded a video for you [URL] Do you have any idea how to solve it? or what what to check? (My application is based on ASP.NET and I'm using ported version of Jade framework (framework originally created in Java).) This problem is related to another problem on this forum [URL]
View 4 Replies
Jul 28, 2010
I built an assembly, and that assembly refereces a DLL in my bin folder (lets call it Bob.dll). so multiple users may have different versions of Bob.dll...but by and large they all function the same.
However when my assembly gets dumped into the bin folder, it wants the version it was compiled against.
Is there a way to compile a reference such that it'll just be happy with ANY version?
I know it can be done with assembly binding in the webconfig, but I dont want users to have to do that.
View 3 Replies
Apr 27, 2010
I have writen a simple asp.net App to display stats in the call center I work in. I was working fine until yesterday afternoon when i started getting the following error
Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. The server is only running windows 2000 teminal so can only run .net 2.0. I am using Visual Studio 2008 Express to write the code and have set the Target Framework to .NET Framework 2.0 under the Properties page and hit the F5 key and it ran fine.
View 2 Replies
Jul 13, 2010
I have a very serious issue with my ASP.Net server when referencing (indirectly, it's a dependence of a referenced assembly) some third-party assembly.When I connect to the server I obtain this exception :
[Code]....
When I remove the assembly from the "bin" directory the site is accessible and works normally.So what might be the issue and how to get rid of this exception ?I'm using Visual Studio 2010 Professional.
View 1 Replies