.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Reference.vb file not added

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :WCF
Hi, After adding WCF service reference, Reference.vb file is not getting added in my client code. What could be the reason ? I added service in following steps: 1. Selected option "Add Service reference" 2. Discover Services in this solution 3. Added Service Reference. After adding service reference, following files got created in App_WenReference folder: Folder TestServiceReference Within folder TestServiceReference, following files got created: Configuration.svcinfo TestService.disco TestService.wsdl TestService.xsd TestService1.xsd TestService2.xsd TestService3.xsd TestService4.xsd But Reference.vb file is not added. What could be the reason ?Amit Lohakare

View Complete Post

More Related Resource Links

Getting error when a reference is added

Hi,      I am new to .Net, i am getting error when i add a reference to my project, i am attaching the error screen shot here, Do i need to addd any reference path anywhere else, i am using VS 2008. Thanks RaviWorking as a software engineer

How can i add .manifest file reference to the asp.net 2.0

Hi Guys,I have a COM DLL and i made .manifest file for it so i can use it on my host.but i cant add the reference to the asp.net 2.0.Can you please help me .RegardsMoji

WPF: can we reference a image file (~.png or ~.bmp) from a separated assembly?

We try to reference a image file (xxx.png) in a separated Reference assembly call "ResourceLibrary.dllwe have implement following code in another assembly (not main execuation assembly). <Button > <Image x:Name="pageUpArrow" Stretch="Uniform" Source="pack://application:,,,/ResourcesLibrary;component/Images/xxx.png" /> </Button> We get a complaint at run time:Message="Cannot convert string 'pack://application:,,,/ResourcesLibrary;component/Images/xxx.png' in attribute 'Source' to object of type 'System.Windows.Media.ImageSource'. Cannot locate resource 'images/xxx.png'.  Error at object 'System.Windows.Controls.ControlTemplate' in markup file ...Could we directly reference a image file (xxx.png) in saperated assembly?thanks!Jane

SSIS package - change Web reference's addres from Configuration file?

Greetings. The SSIS packages provide very nice options to configure them from an XML file, which allows to change credentials, database names etc w/o editing the package. This lets me, say, transfer package from one server to another or from test to production w/o any hassle - just changing the xml. Problem is, i need to acces a web service in my package, and built-in SSIS web service task is useless and just SUCKS. It fails to work even with miscrosoft's own sharepoint web service. So, i have to use scripting task. And scripting task uses "web reference" to access web services, which in turn gives no way to change it's url.  So, if i want to test and then move to production, i'll have to edit my package to change the web reference url from "testserver:5123/mywebservice" to "productionserver:81/webservices/mywebservice". And then change it again to test it again. Etc. Is there a solution to this? A way to programmatically change web reference's url from inside scripting task?

Instantiating module "xx": File could not be added at URL "xx": Error 476753376 (0x81070905)


I wonder if anybody has seen this error. I have a module

<Module Name="SiteCollectionStyles" List="101" Url="siteStyles">
    <File Path="SiteCollectionItems\grid.css" Url="grid.css" />

which deploys css to the library on site collection level. It works fine on the dev machine but fails on another one saying that "File cannot be added at URL grid.css". Document library exists. There seem to be no permission issues. There is nothing helpful in the log but this error message...


Add Service reference not updaing the client apps web.config file in .Net Framework 4.0


Hi Team

I am doing some experiments with WCF on .Net 4.0. I have created a service in 4.0 and add a new empty web application to consume my Service. When i added a service reference from the IDE, i can see the web.config file is not updated with the Servcie end points. How do i solve this issue?

My web.config in the client looks like this after adding the service reference.

How to debub wcf code whose reference added to web aplication


 Hello friends,

Can anybody tell me please how to debug the wcf code. Means I have added refernce of wcf code in my web appilcation's code and called that wcf function in my web application code. Both applications are on my local machine. I have put up break point in web application and also put up break point at the function in wcf. Can break point swicth from web application to wcf code.? Is ther any way to do this or any other way to do like this so  that I can debug the function in wcf. I'll be very thankfull.

Thanks and regards,


Client Side Code added to a file .txt when uploaded - FileUpload, VB.net



im tryin to upload files to the database using the FileUpload. the upload take place. when i download the file again ( word document, excel document.. a text document (.txt), a winzip file) , it turns that the file is corrupted and cannot be opened.. an image file or an mp3 file doesnt present this problem.

my application is developped usin vb.net 2010 and sql server 2005 as the database.. 

i searched the internet and the forums here but ive couldnt find an answer of what is happening wiz me..

ill present here the upload function and the download function.. plz help.

Protected Sub btn_upload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_upload.Click
        If Me.file_upload_case.HasFile = True Then
            Dim contentType As String = file_upload_case.PostedFile.ContentType
            Dim fileData As Byte() = New Byte(file_upload_case.PostedFile.InputStream.Length) {}

            file_upload_case.PostedFile.InputStream.Read(fileData, 0, fileData.Length)
            Dim originalName As String = Path.GetFileName(file_upload_case.PostedFile.FileName)

            Dim u As New UploadFileC
            u.CaseBranchP = Me.combo_branch_code.SelectedValue.ToString
            u.CaseIDP = Convert.ToInt64(Me.txt_case_number.Text)

Can not add assembly reference and using .dll file from Visual studio 2008 and 2010 Type 'LibraryN


Hi all,

Please tell me the way to solved my problem to looking for a long time.

My System Info:

OS: Windows 7 - Ultimate - 64bit

VS: Visual Studio 2008 - Professional (and problem with my VS2010 installed)


I have a small project and build it to library .dll file with some function util.

From an other website (with diffirence solution). I added reference the .dll before to website.

In website, I declaration to using the function in library (dll file before). But I found error:  Error 1 Type 'LibraryName' is not defined.

And in VS2010 the problem is same.

But, run website on an other computer, it work normally.

Thanks and Best regards.

Reference Dynamically Created JavaScript File


I would like to dynamically create, and reference, entirely different JavaScript files based on an id.  This is the route I've taken, and it appears to be working.  I guess I'm just curious if there's something obvious I'm missing, or if anybody has a better idea.

On the web page a reference points to what i'm calling a "javascript handler". 

<script type="text/javascript" src="http://localhost:50869/JsHandler.ashx?Id=0001"></script>


I may eventually experiment with routing to make the reference look like this...

<script type="text/javascript" src="http://localhost:50869/js/0001"></script>


But that's besides the point.  Please keep in mind, the following example is very simple and could be accomplished in easier ways.  Its more of a proof of concept, and I will be creating completely different JS files, from begining to end, depending on the Id passed in.

So yeah basically the logic in my JavaScript handler looks like this

var Id = context.Request["Id"];
            using (var sr = new StreamReader("/Forms/0001.js"))
                var chingy = E

Intellisense / class reference not working in MembershipProvider derived class file in App_Code fold



I am new to ASP.NET and may be biting off more than I can chew, but I figure if I jump in the deep end I may learn more.

Can somebody tell me why the Visual Studio intellisense is not working in a newly created class file inside the App_Code folder?

I presume that System.Web is not being referenced from the App_Code folder correctly for some reason, because as soon as I type "using System.Web", everything is fine and then stops when I want to add ".Security" (no dropdown). I think this has an influence on the fact that the inherited MembershipProvider in my code is not highlighted/referenced and I cannot use the "Implement Abstract Class" option.

If I create a new class file in the root folder of my website, everything works fine. I have even tried to delete and recreate the file in my App_Code and it still did not work. I also tried to copy the file from my App_Code folder to the root and it still did not work. My code is as follows:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;

namespace PodcastManager
    public class

.OCX reference issue "Path/File Access Error"


Hi All,

hopefully someone has solution of this error.

i am adding reference on a .ocx file in my project.

When i tried to access the method of this file .

I get the following message "Path/File Access Error"

I tried running the following commands 'regsvr32 XYZ.ocx'.

but issue is same.

Thanks in advance

3rd Party Managed C++ File Reference Question


This seems like a common scenario but I can't seem to figure it out.  Here is my situation:


1. My development machine is a Windows 7 Ultimate 64-bit box with Visual Studio 2010 Professional.


2. I have a Visual Studio 2010 solution with a single managed C# project that depends on a 3rd party managed C++ assembly.


3. I have both a 32-bit and 64-bit version of the 3rd party managed C++ assembly (same file name).


4. I

"Object reference not set to an instance of an object" when 1 single user tries to check out a file


We are running WSS 3.0 SP2.  We have 1 single user that started having the following occur:  When he goes into a document library in which he has contribute permissions, selects a file, picks Check Out and Edit, he is getting a pop-up stating 'Object reference not set to an instance of an object".  When he clicks on the OK button he gets another message stating that it may be a permission issue or the file may be locked for editing by another user.

I have confirmed that nobody else has the file checked out for editing.  Other users (including myself) can open the exact same files, check them out and edit them, then check them back in.

I have searched the web for this error and have not found anything useful to tell me what to try on his machine.  I’m thinking it is a local PC issue since he is the only one experiencing the issue plus I have had him log into our Citrix client and he can successfully check out and edit files there.  He has done a reboot of his machine but this did not res

A better way to reference your wizard steps using named steps

Note: this article uses the plain vanilla but the concepts apply equally well to its popular counterpart .

By far the most common way that I see wizard steps reference in code snippets is by their index.

File Splitter in .Net

I love to do utility programs in .Net. And this is one of them. As I was playing with JSplit (a free file splitter program), I wondered if I could do it in .Net. The framework supports file operations like reading files in bytes and creating them. It is indeed easy to do file operations in .Net Basics on File operations

Upload Multiple File using JQuery in asp.net

In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.

I have also explained how to check for file type, file maximum size limit using jQuery & also using server side validation code.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend