.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

Using xsd.exe tool, how to generate reusable base types when generating from multiple xsd's with sa

Posted By:      Posted Date: October 10, 2010    Points: 0   Category :.NET Framework
Using xsd.exe tool, how to generate reusable base types when generating from multiple xsd's with same includes?

View Complete Post

More Related Resource Links

Generating proxy with netcfsvcutil - An error occured in the tool -> How to generate proxy?

I'm currently trying to generate a SmartDevice proxy from a WCF service and that fails. Initially it complained that the NETCF doesn't support wsHtpp, so I changed it into a basicHttp binding and rolled https into it. After changing a lot of things I managed to get my server to properly start, but had the testclient complain that it was unable to generate a proxy because the connection was forcefully closed.

So I undid ALL the HTTPS changed and use plain http. It's not secure, but at least it works for my development purposes. When I start the test client, it generates a proxy and shows up fine. However, when I run my netcfsvcutil from the commandline, it gives me "An error has occured in the tool." follow by a "An error has occured in the application".

This is how I call the tool:


netcfsvcutil.exe http://localhost:8080/WhereIsPatrickSvc/mex


And this is my entire config file for the service;

<?xml version="1.0" encoding=

Custom tool error: Failed to generate code for the service reference 'CompanyService'. Please che


A little background because I feel I have an out of the ordinary architecture in place and don't know if this is contributing to the problem. 

We have an existing ASP.net application that is undergoing expansion.  The new functionality is all written in Silverlight 4.  As part of that expansion I gutted all the old Linq to SQL and put Entity Framework 4 into place.  To do this I created a standard .net Class Library and added my edmx files there.  Naturally, the business entities created by this cannot be used in Silverlight.  So I created a Silverlight Class Library and added all the business entities to that Silverlight Class Library as linked files.  I changed the name space to be the same.

So I have the following assembly / namespaces

Company.Project.Dal.csproj / Company.Project.Entities (.net 4 class library)

Company.Project.Entities.csproj / Company.Project.Entities (SL4 class library)

With this architecture I was able to share my business entities with my SL enabled web services, my asp.net projects, my silverlight projects.  Really it's a beautiful thing.

Once this was done I added "message" classes to Company.Project.Dal and again shared them with the other entites using linked files.  These messages are things like MyObjectRequest; they are class

Add new content types to multiple libraries


We use MOSS for document management and content types for document types (i.e. specification, quote, PO etc.)).  We would like to add additional content types to our libraries.  I was hoping to find a tool that would help me to propagate these new content types ad I am not a programmer.



WCF 4.0 Multiple Base Addresses

Hi, I need guidance on configuring Multiple Base Addresses of a WCF service. The bindings will be same for both the base addresses.The service needs to be deployed on IIS and I am using WCF 4.0 I read about this on http://msdn.microsoft.com/en-us/library/ee358763.aspx but there are no sample or code snippets associated with it. Thanks in advance.

Generating Multiple Excel Sheet using Reporting Services 2005.

<p> Hi, I'm currently developing a program using ASP.NET 2.0 (C#) and i am using Reporting Services 2005. One of the report requirements is to export a data to an excel with multiple excel sheet. Is there other way to generate multiple excel sheet using the reporting services? if yes, i would like to ask a sample code... Thanks in advance, JP  </p> 

Storing multiple data types in a class?

I need help writing a class that will contain three values per item.  I'll be passing parameters to a report: Parameter Name, Data type (int, string, date, etc), and Value. When I pass those values to the report using the class they should be in original form (i.e. an integer should be a numeric, a string should be a string, etc.).  I can do it converting the data's value to strings on one end, and reconverting to the original data type on the other, which seems like a lot of runaround. Is there a simple way?  Also, if I'm able to store & retrieve the data in it's native format I don't need the "Data type" stored. Any help or tips will be appreciated.

Generate Insert Scripts - Windows Tool

Some time back, i remember that there is a windows tool that generates the insert scripts for any given table and i forgot the link from which i've downloaded the tool. By any chance does any have the information on how to generate the INSERT Scripts for a table which has some data. My interest is to port the data between the databases, but the databases are in geographically in two diff locations as well as security restrictions are in place. All i have is email access for both the locations. Thus, if i can generate the INSERT Scripts for the tables, i can send the text file. Please throw your ideas on, transferring the table(s) data between databases.Every thing is perfect as long as you share

conditional update a column base on multiple result

Hi, I have a requirement that to conditional update a column base on the table result within a single update statement.     declare @TableStageStatus table ([OldTable] [varchar](100) NULL, [OldKey] [varchar](100) NULL, [StatusCode] [varchar](10) NULL) declare @Table table ([Key] [varchar](100) NULL, [row_stus_cd] [varchar](10) NULL) INSERT INTO @TableStageStatus ([OldTable],[OldKey],[StatusCode]) VALUES ('a' ,'1','I') INSERT INTO @TableStageStatus ([OldTable],[OldKey],[StatusCode]) VALUES ('a' ,'1','I') INSERT INTO @TableStageStatus ([OldTable],[OldKey],[StatusCode]) VALUES ('a' ,'1','E') INSERT INTO @TableStageStatus ([OldTable],[OldKey],[StatusCode]) VALUES ('a' ,'1','I') INSERT INTO @TableStageStatus ([OldTable],[OldKey],[StatusCode]) VALUES ('a' ,'2','E') INSERT INTO @TableStageStatus ([OldTable],[OldKey],[StatusCode]) VALUES ('a' ,'1','E') INSERT INTO @Table ([Key],[row_stus_cd]) VALUES ('1',null) INSERT INTO @Table ([Key],[row_stus_cd]) VALUES ('2',null) UPDATE A SET A.row_stus_cd = case when row_stus_cd is null then B.StatusCode when B.StatusCode='E' then 'E' else B.StatusCode end FROM @Table A INNER JOIN @TableStageStatus B ON A.[Key]=B.OldKey and B.OldTable='a' WHERE B.StatusCode in ('E','I') select * from @Tab

Multiple File Uploads and blocked file types.

Hi hopefully someone can help me with this. I have removed a few file type extensions from the blocked file type administration interface (.ascx, ashx, dll) etc. If I browse to my shared folder I am able to load files of these types into my shared folder on a file by file basis, if however I try and use the drag and drop activex control facility for multiple files provided for IE8, files of these types are still blocked. If I also map a network drive from my PC to the shared folder and attempt to copy files of the above types, they're also being blocked. Perhaps someone has come across a similar issue and can shed some light on what they did to overcome this problem. Kind regards Paul

ASP.NET 5.0: Multiple logins and login types in default ASP.NET membership provider

What do you think about an ability of having multiple logins and login types to be attached to the same user? Let me explain this by showing how database schema can be re-factored to support this model:Remove [Password], [PasswordSalt] columns from [Users] database tableAdd [Logins] table with one-to-many relationship between [Users] and [Logins] tablesThis will allow one user to have multiple credentials attached to his or her account of different types such as Username&Password, Windows Live ID, Open ID from different providersYou will be able to restrict allowed login types and OpenID providers in web.config So.. do you think it is a good idea to add support of this model into ASP.NET 4.5/5.0 membership service?http://aspnet.codeplex.com/workitem/7149

Assigning a reusable workflow to all content types in a list in one operation?

When creating a reusable workflow I choose a base content type. I would really like to assign this workflow to the content type at site collection top level and get it to automatically work in all lists that include this content type, and also have it set to work for all children of this top level content type. It seems to me that I have to manually associate this workflow to all lists and content types? I am missing something here? Henning

Multiple sources for XSL transformations to generate single XML output

I have a situation where i need to call multiple web service methods and get their responses in XML format. Then I need to combine all those responses in one single XML message which would be returned from my custom web service method, someting like this: {Message1 + Message2 + Message3} -> XSL -> CompositMessage (output) Is it possible to achieve this using XSLT, it could be "XslCompiledTransform" or any other alternative? Farrukh

Posting multiple images to one Image tool

I want to create a if statement which i select an area on a imagemap then the corresponding label discription will appear and corresponding image. The code if what i have so far    Protected Sub ImageMap1_Click(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ImageMapEventArgs) Handles ImageMap1.Click        If e.PostBackValue = "ME" Then            Image1.ImageUrl = "F:\WebSite1\images\one.jpg" & label1.text="Me" <------- How do you join a label and image selection in one if statement i keep getting errors on this and image doesnt load also        ElseIf e.PostBackValue = "Car" Then            Label1.Text = "CAR" & Image1.ImageUrl = "F:\WebSite1\images\two.jpg"        ElseIf e.PostBackValue = "Mysister" Then            Label1.Text = "My sister" &Image1.ImageUrl = "F:\WebSite1\images\two.jpg"        Else            Label1.Text = ""        End If 

how do I achieve a reusable area in multiple views? (navigation menu)

I am new to mvc.I want to build my navigation so I can use it on multiple views.  How do I do this? Nested views?  Can someone please tell me the best practice and show me a quick example?

Search Multiple Data Base

Hi,I am working on a Large Database application .  I have 5 Product catalog database   with atleast 5+ million product information on each .  database is deployed in multiple servers. . when the user performs a search it should search in 5 different database and combine the  results to show in the search results.product row has a priority key and based on the priority i need to show the results. In case if same results is found  in all the five  database then we need to group the result and shows the count in result column.For exampleIf Product1  is exist inn all the five database database  then i need to show Product1 - count=5and also we have priority index for showing the result . default search should be sort by priority  .Can any body let me know what will be the best approach to do the search on this multiple  database and  process this data to find the duplicates and sort accurding to the sort index..(we are also planing to restrict the max result from each data base) . Thanks

Multiple ajaxcontrol tool kit tabs


I am using AjaxControlToolKit to generate tabs from one the forms. It has around 10 tabs that do not fit in one line. Is there a way to align AJAX tabs. Please help. I need to submit this by next month. I would appreciate itFrown 

SP2010 Upgrade Error: Missing Reusable Content Types


During the in-place upgrade from MOSS2007 to SharePoint 2010, I experienced the following issue for numerous site collections.  Even though these were errors, the configuration wizard completed with Errors stating that there were some sites not fully upgraded.

I cannot determine how to resolve this error and complete the content database upgrade.   Thanks in advance.


In the Upgrade-YYYYMMDD-######-##-error.log file, the following details were logged for about 15 different site collections:

[OWSTIMER] [SPSiteWssSequence2] [INFO] [6/12/2010 8:29:44 AM]: SPSite Url=https://sub.domain.com/site
[OWSTIMER] [SPSiteWssSequence2] [ERROR] [6/12/2010 8:29:44 AM]: Feature upgrade incomplete for Feature 'PublishingSite' (Id: 'f6924d36-2fa8-4f0b-b16d-06b7250180fa') in Site 'https://sub.domain.com/site'. Exception: The parent content type specified by content type identifier 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39 does not exist.
[OWSTIMER] [SPSiteWssSequence2] [INFO] [6/12/2010 8:29:46 AM]: SPSite Url=https://sub.domain.com/site
[OWSTIMER] [SPSiteWssSequence2] [ERROR] [6/12/2010 8:29:46 AM]: Feature upgrade incomplete for Feature 'PublishingLayouts' (Id: 'd3f51be2-38a8-4e44-ba84-940d35be1566') in Site 'https://sub.domain.com/sit

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