Unable To Import Module After Successfully Adding Reference
Feb 20, 2010
I'm adding a reference to a funciones.dll file using
clr.AddReferenceToFileAndPath() because I couldnt get it to work other way with this file and it succesfully does it. The file is named funciones.dll and it's in the bin folder. But when I do
from funciones import *
I get "no module named funciones"
since the funciones.dll file it's a funciones.py file compiled, shouldnt the module name only be named funciones and no any other name? isnt the name the problem and it's another? I dont know what other info could be relevant here but if there is any let me know
When you use ASP.NET web site (instead of web application model) and add reference to an assembly from local folder, Visual Studio, it seems, understands that this local assembly is also in GAC and so does NOT copy this assembly to bin folder (as it does with non-GAC assemblies), but simply adds new record in web.config file.
Why such a behaviour? Is it possible to force copy to bin folder (I need this since .dll is not on target environment)? I can add assembly to bin folder as file and it will work, but in this case bin folder contents will be in source control, which is not good.
I am using LibCurlNet on my asp.net project. I post some fields to server with it. I downloaded library and added it to my project as reference. At first I could run my project.
But now when I run project, I have an exception:
[code]...
and I have the exception at line "Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL);"
When I try to add reference to my project, in bin folder I found three .dll file but I just add the "LibCurlNet.dll".
I have an asp.net 3.5 application. When i try to load the application it says: Exception Details: System.DllNotFoundException: Unable to load DLL 'VSPerf100.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
The application works fine on my win 7 machine. i tried the same on win server 2008 r2 where in i get the above message.
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 am unable to import xlsx file in Asp .Net getting below error:-
Could not find installable ISAM.
I am using below code for importing xlsx file:-
'function Protected Function ExcelConnection() As OleDbCommand ' Connect to the Excel Spreadsheet Dim xConnStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:Users cs0028DesktopUpload1.xlsx;" & _ "Extended Properties=Excel 12.0;" ' create your excel connection object using the connection string Dim objXConn As New OleDbConnection(xConnStr) objXConn.Open() Dim objCommand As New OleDbCommand("SELECT * FROM [Sheet1$]", objXConn) Return objCommand
as it uses the relative path the http module is unable to understand the path and throwing following error
The file '/Root/Pages/Master/Site.Master' does not exist.
error occurred during the parsing of a resource required to service this request. review the following specific parse error details and modify your source file appropriately.
I am pretty good with HTML, PHP & MYSQL but this is my first go at working with a windows host and an ASP script. I recently purchased a script that matches my clients needs and when i have opened the folder to view the files its all double dutch to me apart from one css files which makes perfect sense to me!
Im stuck with is the database file included in the template, i ave been unable to import it into MSSQL using 'My Little Admin' which is the control panel provided by my hosting provider. Looking through the file with notepad it seems to contain the information for several tables but i cannot figure out for the life of me how i import it with 'My Little Admin'
I am developing web application using csharp on Visual studio 2008. Now I want to use a web service which was developed in Java. I am able to add the web service to my application as a refrence but when I want to build or compile I am getting the following Unable to import binding 'CalcualteBinding' from namespace 'http://Calcualte.webservices.CourseZa.org'. .
I have created a VB DLL by selecting File - New - Project and then Class Library
I added a "Properties" region and a "Function" region with some simple properties and one simple function. Compiled it and used it in another app with no errors.
At that point the only references in the project were the default references when creating the new project.
I then created a function that will take a file as a param and get the physical path and add the 2 together. In the function I use the "Request.PhysicalPath" method of the System.Web.UI.UserControl.
I then added areference to the System.Web DLL in my project.
PROBLEM IS I get an error on "Request" that says "Name Request is not declared"
So I googled the error which I found a thread that said to "just use HttpContext.Current.Request.Form" because "by default all websites developed in Visual Studio 2005 is Inherited from System.Web.UI.Page and Class files won't that's the resion we have to add System.Web.UI.Page namespace in the class file"
However when I added the "HttpContext.Current.form." before my "Request.PhysicalPath" I get the same error on "HttpContext".
We have a web site that sits on a DotNetNuke platform and all of our coded modules are written in VB.Net for consistency. However, we have been sent a web page that works as a link and it is written in C# and references a cs file in its App_Code folder. If we try and load this into our website we get an error saying that it is not written in VB we then tried converting the homepage to VB but the reference folder is very complex and written in C#. Can we load the reference file even though it is C# and reference it using VB code. The current all is OurRemService RemService = New OurRemService(); where OurRemService is a file in the App_Code folder in the web page folder. The only other way around this is for us to set it up in IIS as a virtual directory and reference it directly but we would prefer to integrate it into our website.
Before using any class in your website project/page we have to add it's assembly reference to our project. Right?
Now, when I am using SmtpClient class from System.Net assembly after adding the System.Net.Mail namespace in namespace node of application's web.config file but without adding assembly reference to the project it still accepting and running the code. Why?
I enquired the machine's web.config file located at C:WINDOWSMicrosoft.NETFrameworkv2.0.50727CONFIG but didnt find any assembly reference for System.Net.
how it is working and where the assembly reference has been added and how?
I have a number of .Net web sites built in VS2010 using Framework 4.0that reference a web service to send emails.
My most recent site I created as a web application as opposed to a web site. In the Solution Explorer you can add a 'Service Reference' and, if you click the Advanced button you can then add a reference to a web service.
I did that and now the (web application) site won't build - it says it cannot load the Ajax dll. If I remove the reference to the web service, the site builds okay - if I add the reference back in, the site will not build.
Do I need to abandon the idea of using a 'Web Application' and turn it into a 'Web Site'?
I am using VS 2008 and I have created one Web Application. Previously in that I have reference for one dll, currently I do not require it and so I want to remove it.
But after removing, it get deleted from my bin folder and as soon as I build my application it gets created again
1. Is there a reason why someone would want to add a reference to an assembly (e.g. System.Drawing) but not add the Using statement? Seems that if you add a reference, you should add the Using statement automatically, but maybe not always?
2. Correct me if I'm wrong, the only benefit of adding a "Using" statement at the top of your file, is to bring into scope an assembly and not have to fully type the class name? So if I have a Using System.Drawing, I can type in string = Color.Tomato.ToString(); instead of string = System.Drawing.Color.Tomato.ToString();
I have a patient entry table, which has patientID as primary key. if I want to retrieve tests information about a particular test then I have to add a pid as foreign key??
do i have to add a test_ID kinda field in all four tests tables????
At my campus whenever i open my browser to surf the internet, it requires username and password, e.g IE shows a dialog box requiring uid and pwd then it allows to surf the internet. In short i am behind an authenticated proxy server.I am using vs2008 and trying to add web/service reference to my c# desktop application or asp.net web applicationwhenever i try to add reference it does not show any dialog box(for uid n pwd) and give an error as407 proxy authentication...i have googled at a lot, tried two KB articles but cannot find any solution
But when I refer to that webservice (as shown below), I get error saying: "The type or namespace name 'MyServices' could not be found (are you missing a using directive or an assembly reference?)"
What should I do to correct this error?
Current Solution of Adding Service Reference still gives me that error.
I added a service reference via the add service reference method. I can see all of its services in the intellisense but when I run the project and it executes the line where I instantiate the service : MyProjectName.ServiceReferenceName.IServiceReferenceClient client = new MyProjectName.ServiceReferenceName.ServiceReferenceClient;it throws this error:Could not find default endpoint element that references contract 'ServiceReferenceName.IServiceReferenceClient' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.