The Referenced Dll Could Not Available In The Page
May 13, 2010
I have created a class file with a name space of name1. I have created the dll for that. I referenced this dll in my webapplication. But in the namespace section i can't get this namespace 'name1' in the intellisence. I am using the .net 3.5 frame work
View 1 Replies
Similar Messages:
Mar 18, 2010
I have a Master Page which has an associated css file. On one of the base pages I have a div to which I am trying to apply a style from this css file by id. However, the page when rendered has a different id for this element. How can I specify the correct id name in the css file? Is there a way to specify that I want the id of this element like there is in javascript using the <%= Element.ClientID %>?
View 2 Replies
Jan 21, 2010
I have a C#.net class library that references a folder and the files in it.
I've added this library as a reference in my ASP.NET web project and I can't figure out how i'm supposed to get the path to this folder.
Or would you have to pass the Server.MapPath in from the website?
View 1 Replies
Nov 19, 2010
There is an ASP.NET Web application that makes use of a reference DLL. The same DLL is registered in GAC. Is there a way to force VS or ASP.NET application to make use of the referenced DLL inside Bin folder rather than using the one in GAC?
View 2 Replies
Feb 11, 2011
I have a weird problem. In my web site project, i am using a lot of third party dll's and i dont want to install them in GAC. So, I had placed all those dll's in Bin folder of application root. When i run the application, it is saying that reference is either incorrect or dll file is missing.
i am running the application from clearcase. I have full execute permissions in that folder in clearcase.
In the solution explorer, when i right click on my project and go to "property pages", it is only showing dll's from GAC only. None of the dll's I had kept in bin folder are being displayed.
View 2 Replies
Dec 30, 2010
I have various dll's that I am not directly referencing in a ASP.NET website I am attempting to publish via the "Package/Publish Web" feature in Visual Studio 2010.
How can I tell the publishing feature that it needs to include these certain files?
Note that I do not want to directly reference these dll's (the solution has specifically been setup in a way so that these specific dll's are not directly referenced).
I've found a <ExcludeFilesFromDeployment/> but I can't find a way to specifically include files.
View 3 Replies
May 25, 2010
I have a process in which a user uploads a file to a web site where the file is then processed and uploaded into the database. The process of validating the file could take several minutes so as soon as the file is uploaded I create a new thread and I do my processing on this second thread. This works great on my local machine but doesn't work at all on my IIS 7 test server.
After some investigating I found the problem is that the process is trying to load a reference to Castle and it can't find the DLL. I have a copy of Castle DLLs in my bin and it works elsewhere in my app. I ran Fuslog and discovered that it is trying to load castle from the wrong location. It is trying to load from c:/windows/system32/inetsrv/.
It appears that under IIS 7 the second thread is executing in a different context or something.
View 1 Replies
Jan 20, 2010
I have a utility project that has an "XML" folder with two XML files in it, this project is then referenced by an ASP.net web project. I was wondering do you have to set some sort of build option to place the folder in the BIN of the website, or is there another approach to referencing these two files from the web project?
View 1 Replies
Mar 10, 2011
I want to create a base web project which other projects will extend. How can i call the render action on the controller found in the base controller?
View 1 Replies
Jan 1, 2011
I have a Visual Studio 2010 solution consisting of 2 projects:Core, a C# class library project which handles the functionality and data accessUI, an ASP.NET 4 website (.NET Framework 4) that references the Core, and calls functionality in the Core.
My exception handler is set in Global.asax (Application_Error.)When an exception occurs in the UI, everything works perfectly, I get filename, line number, etc.This is not the case for exceptions that occur in the Core.For this, I get a stacktrace like:
{FillUserCount at offset 2376 in file:line:column <filename unknown>:0:0}
P.S. The Core.dll and Core.pdb are present in the UI Bin folder.
In Visual Studio -> Tools -> Options -> Debugging -> "Enable just my code" is unchecked and "Enable source server support" is checked.Is there a way to get stackframe info (filename, class, method, line number) also for errors that occured in my referenced project ?
View 2 Replies
Jul 23, 2010
I've created a new web application project in Visual Studio 2008, and then copied in some code from a project created with an older VS version. For instance, I'll add a new web form item in my project, say, "Shop.aspx". Then copy the older code into the new file. The trouble is that referenced supporting files get a "not found" warning.
So, I'll have a line in the .aspx like:
<link media="all" href="ShopStyle.css" type="text/css" rel="stylesheet" />
The file ShopStyle.css resides in the same root folder of my project as Shop.aspx, but I get a "not found" warning about it. Or I'll have something like
<img alt="" src="Images/Navbar/MainLogoImage.gif" height="54"/>
Where MainLogoImage.gif is in the "Images/Navbar/" subfolder of my project folder and I get the same warning.
I've made sure that I added all of these existing items into my project in Solution Explorer.
View 1 Replies
Feb 23, 2010
I'm using ASP.NET on C# and I have a referanced library in the same solution in VB which calls a COM object using CreateObject.When I run the site on my comp it works, when I run it on my IIS 6 it gives me a stackoverflow on the method call.Now I have a script wich runs the VB code on the IIS6 and it works just fine.It must be something with the ASP...How can I call Com objects within ASP..., Do I have to do something special?
View 2 Replies
Nov 12, 2010
I have a project with hundreds of usercontrols but many of them are old and no longer used. Is there are quick way to find out which ones can be deleted?
View 1 Replies
May 24, 2010
A typical web application can be decorated with so many features such as tooltips, validation, autocomplete, animations etc. To support these features, there are zillions of jQuery plugins, scripts out there. My question is that if we start including so many features, we will end referencing a large number of script files making the pages heavy. What would be a good solution around this problem? You may argue that we can only include the relevant script file (validation on forms) on a particular page. However, if we define a nice looking masterpage with so many references, we are again faced with the same problem.
View 4 Replies
Aug 4, 2010
I have a solution with a website and a class library. I have renamed the class library project from Insight_WebControls to Insight.WebControls. I have also renamed the assembly it produces in its properties.
I have removed from the website's references the old class library and added the new.
However, when I try to build the website, I get the error 'Could not load file or assembly 'Insight_WebControls' or one of its dependencies. The system cannot find the file specified.' There is a dll called 'Insight.WebControls' in the bin folder. Clearly some part of the website is still looking for the old filename. Can anyone tell me how to point it to Insight.WebControls.dll instead?
View 1 Replies
Mar 9, 2010
I have an ASP.Net website, "MyApp", which contains the following resources files:
WebResources.resx
WebResources.es.resx
The website references a library project, "MyLib" from which I want to access those resources files. Here is the code I'm attempting:
var rm = new ResourceManager("MyApp", Assembly.GetExecutingAssembly());
subject = rm.GetString("HelloMessage"); //always string.empty
The problem is that the executing assembly is always "MyLib" instead of "MyApp". Is it possible to access the resource files embedded in the website project from a library project?
View 1 Replies
Dec 15, 2010
i'll make a simple website. in my website i have two kind of products to sell
1. Projects
2. Documents
These Tables are available in my database :
[code]...
now i will make an order table. should i make differentt order table?
or i could save order information of both tables in one table?
View 6 Replies
Nov 25, 2010
We have a project that needs to gather survey data. On one particular page of the website, there are 21 questions each with a scale of 1-5 where the user selects one radio button for each question in the table.
The survey is being coded in VB.NET. The data submits to an SQL database. All the radio buttons are similarly named, so only the number changes for the question -- thinking this would make it easier on the back end coding. In the code behind I was hoping to do something to the effect:
[code]...
View 1 Replies
Sep 28, 2010
I have created a server control for my web page... I have decided to add an ajax popup extender (after creating the control, which builds and works fine.) After I add the AjaxControlToolKit reference I add the following:
[Code]....
I get this error when I add it:"The type 'System.Web.UI.ExtenderControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, "I googled the error and it says to add something inside the web config... I do not have a web.configfile inside the server control.
View 3 Replies
Dec 23, 2010
Just looking through database design and wondering what would be the better option. I have customers, who all have orders, pickings, deliveries and invoices. Now an invoice can't exist without a delivery, a delivery can't exist without a picking and a picking can't exist without an order. So I could set the tables up in a linear fashion. e.g.
Customer -> Orders -> Picking -> Delivery -> Invoice
then in Orders, there would be an ID field, with a customerID field and in Picking, there would be an ID field, with an orderID field and in Delivery, there would be an ID field, with pickingID and in Invoice, there would be an deliveryID field. Linking them altogether, again, in a 'linear' fashion.
The problem is if I want to get, say, all the invoices for a specific customer, my query would be something like
[Code]....
My other option would be to have in a customerID column in each of the tables meaning a much easier query
[Code]....
View 3 Replies
Aug 16, 2010
I am having a problem with ajaxcontroltoolkit 3.5. I am getting the following error
"Microsoft JScript runtime error: Sys.InvalidOperationException: The script 'Timer.js' has been referenced multiple times. If referencing Microsoft AJAX scripts explicitly, set the MicrosoftAjaxMode property of the ScriptManager to Explicit."
I have migrated ajax web app from 2.0 to 3.5 and have changed ScriptManager to ToolkitScriptManager.
View 4 Replies
Jan 11, 2010
We have a project that needs to gather survey data. On one particular page of the website, there are 21 questions each with a scale of 1-5 where the user selects one radio button for each question in the table.
The survey is being coded in VB.NET. The data submits to an SQL database. All the radio buttons are similarly named, so only the number changes for the question -- thinking this would make it easier on the back end coding. In the code behind I was hoping to do something to the effect:
For i = 1 To 21
If rbLWHFQ_Q(i)A1.Checked Then
myCommand.Parameters.AddWithValue("@LWHFQ_Q(i)", rbLWHFQ_Q(i)_A1.Value)
ElseIf rbLWHFQ_Q(i)_A2.Checked Then
myCommand.Parameters.AddWithValue("@LWHFQ_Q(i)", rbLWHFQ_Q(i)_A2.Value)
ElseIf rbLWHFQ_Q(i)_A3.Checked Then
myCommand.Parameters.AddWithValue("@LWHFQ_Q(i)", rbLWHFQ_Q(i)_A3.Value)
ElseIf rbLWHFQ_Q(i)_A4.Checked Then
myCommand.Parameters.AddWithValue("@LWHFQ_Q(i)", rbLWHFQ_Q(i)_A4.Value)
ElseIf rbLWHFQ_Q(i)_A5.Checked Then
myCommand.Parameters.AddWithValue("@LWHFQ_Q(i)", rbLWHFQ_Q(i)_A5.Value)
ElseIf rbLWHFQ_Q(i)_A6.Checked Then
myCommand.Parameters.AddWithValue("@LWHFQ_Q(i)", rbLWHFQ_Q(i)_A6.Value)
ElseIf rbLWHFQ_Q(i)_A7.Checked Then
myCommand.Parameters.AddWithValue("@LWHFQ_Q(i)", rbLWHFQ_Q(i)_A7.Value)
ElseIf rbLWHFQ_Q(i)_A8.Checked Then
myCommand.Parameters.AddWithValue("@LWHFQ_Q(i)", rbLWHFQ_Q(i)_A8.Value)
ElseIf rbLWHFQ_Q(i)_A9.Checked Then
myCommand.Parameters.AddWithValue("@LWHFQ_Q(i)", rbLWHFQ_Q(i)_A9.Value)
ElseIf rbLWHFQ_Q(i)_A10.Checked Then
myCommand.Parameters.AddWithValue("@LWHFQ_Q(i)", rbLWHFQ_Q(i)_A10.Value)
End If
Next i
My research tells me that it's not possible to do what I am wanting without some special coding. I've seen mention of arrays in relation to these types of questions elsewhere, but I'm not familiar enough with arrays to see how they would work in this case.
Am I just going to have to create 21 sets of If...Else statements? :(
Here's what the HTML looks like for a question, if that matters:
<tr class="statement220">
<th><label for="rbLWHFQ_Q1_A1">1. Causing swelling in your ankles or legs?</label></th>
<td title="0" >
<input id="rbLWHFQ_Q1_A1" name="rbLWHFQ_Q1" type="radio" value="0" runat="server" />
</td>
<td title="1" >
<input id="rbLWHFQ_Q1_A2" name="rbLWHFQ_Q1" type="radio" value="1" runat="server" />
</td>
<td title="2" >
<input id="rbLWHFQ_Q1_A3" name="rbLWHFQ_Q1" type="radio" value="2" runat="server" />
</td>
<td title="3" >
<input id="rbLWHFQ_Q1_A4" name="rbLWHFQ_Q1" type="radio" value="3" runat="server" />
</td>
<td title="4" >
<input id="rbLWHFQ_Q1_A5" name="rbLWHFQ_Q1" type="radio" value="4" runat="server" />
</td>
<td title="5" >
<input id="rbLWHFQ_Q1_A6" name="rbLWHFQ_Q1" type="radio" value="5" runat="server" />
</td>
</tr>
As an aside, I know about RadioButtonLists, but in this case I'm needing to style the radio buttons in a special way and can't get it to work when ASP renders the list items.
Updated to show I used it in my code I'm not sure how StackOverflow works with regards to showing how something worked for you, but I just wanted to add this in case others come here looking for the answer. Basically, I used the code below:
Dim radioButtons()() As HtmlInputRadioButton = { _
New HtmlInputRadioButton() {rbLWHFQ_Q1_A1, rbLWHFQ_Q1_A2, rbLWHFQ_Q1_A3, rbLWHFQ_Q1_A4, rbLWHFQ_Q1_A5, rbLWHFQ_Q1_A6}, _
New HtmlInputRadioButton() {rbLWHFQ_Q2_A1, rbLWHFQ_Q2_A2, rbLWHFQ_Q2_A3, rbLWHFQ_Q2_A4, rbLWHFQ_Q2_A5, rbLWHFQ_Q2_A6}, _
}
I created an array with the radio button group names:
Dim radioButtonGroupNames() As String = { _
"@LWHFQ_Q1", _
"@LWHFQ_Q2", _
}
Then in my For...Loop I used:
For i = 0 To 20
If radioButtons(i)(0).Checked Then
myCommand.Parameters.AddWithValue(radioButtonGroupNames(i), radioButtons(i)(0).Value)
ElseIf radioButtons(i)(1).Checked Then
myCommand.Parameters.AddWithValue(radioButtonGroupNames(i), radioButtons(i)(1).Value)
ElseIf radioButtons(i)(2).Checked Then
myCommand.Parameters.AddWithValue(radioButtonGroupNames(i), radioButtons(i)(2).Value)
ElseIf radioButtons(i)(3).Checked Then
myCommand.Parameters.AddWithValue(radioButtonGroupNames(i), radioButtons(i)(3).Value)
ElseIf radioButtons(i)(4).Checked Then
myCommand.Parameters.AddWithValue(radioButtonGroupNames(i), radioButtons(i)(4).Value)
ElseIf radioButtons(i)(5).Checked Then
myCommand.Parameters.AddWithValue(radioButtonGroupNames(i), radioButtons(i)(5).Value)
End If
Next i
View 2 Replies
Jun 16, 2010
Web service is referenced fine (called "tuWs") and I can refer to it in standard web form code behind:
Dim myWs As tuWebSvc.tuWs = New tuWebSvc.tuWs
View 3 Replies
Mar 26, 2010
Web Application Project Has project reference to Class Library 1 in same Visual Studio 2008 solution Class Library 1 Has project reference to Class Library 2 in same solution Class Library 2 Has a file marked as Build Action: Embedded Resource and Copy to Output Directory: Copy Always
When I build my Web Application Project, the embedded resource in Class Library 2 is NOT copied to the bin directory of the Web Application Project as it should. If I add a project reference directly from my Web Application Project to Class Library 2, the file IS copied to the bin directory. How can I get the embedded resource file to copy without having to add the unnecessary reference?
View 1 Replies
May 3, 2010
I developed and entity framework (.edmx) application in 4.0 in that i got all the data of my querying table and its foreign key referenced tables data also. but when i change my project to 3.5 i am unable to get the data of foreign key referenced tables data.
View 2 Replies