.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

The type '' exists in both '' and ''

Posted By:      Posted Date: September 04, 2010    Points: 0   Category :ASP.Net
For some reason though it appears that one of my class files (_common.cs - in the App_Code directory) is being included in the WAP .dll file as well as when it compiles the App_Code at runtime.error CS0433: The type 'inlinehockey._common' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\25321638\9b5c4b00\assembly\dl3\3657f4e6\cd91aef5_4d5cc601\inlinehockey.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\25321638\9b5c4b00\App_Code.xad_ajc1.dll'  The error was not knowing what dll to use for the type when you get the CS0433 error.How can I get round this error?ThanksJeremy Thakewww.made4the.net

View Complete Post

More Related Resource Links

Default MaskedEditExtender and MaskedEditValidator CSS Class Location


I am new to using the MaskedEditExtender and MaskedEditValidator controls. When I went to set these up, I found that it entered the CSS class names automatically for the following properties.

OnBlurCssNegative = MaskedEditBlurNegative
OnFocusCssClass = MaskedEditFocus
OnFocusCssNegative = MaskedEditFocusNegative
OnFocusCssClass = MaskedEditError

However, I do not have these CSS classes in my Styles.css file. Where are these CSS classes located? Also, if I do include these same classes in my own stylesheet, will it override whatever the classes state in this default location or do I have to call them something different?

Installation Problem: Server Type Tab Not showing. Only FIle location shown


Dear Community,

I am installing Sharepoint 2010 on WIndows server 2008 R2 64 bit machine. After entering 'product key' screen, it suppose to show Screen where 'server type' and 'File Location' tabs where we select 'Standalone/Server farm' then 'Complete/standalone'.

I can only see 'File location' tab but not Server type. Pls help. I am doing this for setting up Powerpivot on sharepoint where I need to selelct Server Farm with COmplete option. Pls help.



Installation Problem: 'Server Type Tab Not showing. Only File location shown

You cannot vote on your own post I am installing Sharepoint 2010 on WIndows server 2008 R2 64 bit machine. After entering 'product key' screen, it suppose to show Screen where 'server type' and 'File Location' tabs where we select 'Standalone/Server farm' then 'Complete/standalone'.

I have run the same setup on WIndows 7 OS and it does show up the screen having  options for 'Stand Alone/Server Farm'.

BUT on Windows 2008 R2, it does not. After entering product key next screen shows up having only  'File location' tab screen which also does not have 'Server Type" Tab.  This is killing me to proceed as I have to work with Power Pivot in Sharepoint integrated mode where its compulsary to select 'Server Farm' AND 'Complete' Options.

I as well ran prerequisteinstaller before running setup.exe. Prerequisiteinstaller completed succesfully. But setup.exe  has this weared problem. For workaround I tried from command prompt as well giving Cmd> Setup.exe /Config C:\SharePointsetup\Files\SetupFarm\config.xml.   BUT no change. Same issue screen does not showup with that options.

Class which contains an array of objects of type "Class2"



1  Partial Class _Default
2  Inherits System.Web.UI.Page

3 Public Function Ohjoy(ByVal X As Integer) As Integer
4 Dim theClass As New Class1 '= New Class1()
5    theClass.ReSize(0)
6    theClass.myBaby(0).GetName(0) = "Hello" 'Property Chars is read only'
7    Return 1
8 End Function
I have a first class named "Class1". I have a second class named "Class2" Class2, is a member of class 1,
and is implemented as an array of objects of type Class 2.

If I try and call the Accessor GetName() my hard coded value "Hello" in my accessor is not returned? Only
an alpha character like "T"

Also if I try and assigne a value using the setter GetName() it does not work, and the compiler gives me
an error message "property Chars is ReadOnly? Does anyone know what is wrong in my code? Line 6 above


Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
End Class

Public Class Class1
    Dim bs As Integer
    Public myBaby() As Class2
    Public myB As Class2
    Public Function ReSize(By

Windows Mobile: Use GPS And Web Maps For Location-Aware Apps


We show you how to build a location-aware task list application for Windows Mobile devices that uses GPS to remind you of a task when and where it's appropriate.

Christopher Mitchell

MSDN Magazine January 2009

Gridview, guid ID, and Location


Presently I have a gridview, I'm in the process of populating the gridview. One colunm "Location" is displayed as the guid ID.  I need for that colunm to be displayed as the location. Here some of the code to display the grid.

myObject orgs = new myObject();
grid.DataSource = orgs;


orgs gets a list of organizations (locations) for the grid. How can I replace the guid ID with it location. Yes the guid ID and location are in a table.

OpenSearch Location Builder Tool for SharePoint Server 2007

Download the tool and start using it to create an OpenSearch Description (.osdx) file to connect SharePoint Server 2007 sites to the Windows Client via the OpenSearch protocol.

Service to monitor SFTP location


Hi there,

I want to develop a service (may be Web / WCF / Windows) to monitor a SFTP location for excel files. As soon as any excel file arrives, service should be able to move it to some location and initiate another process.

My queries are:

1. Can we monitor SFTP using services? If not, what are the other ways to monitor.

2. Which service (Web / WCF / Windows) should I use? What could be the challenges?

Any help is highly appreciated. Thanks

"The base class includes the field 'WebUserControl1', but its type (common_WebUserControl) is not


I tried to convert a project from ASP.NET 1.1 to 2.0 and found one big problem which stops the whole process.

An .aspx page from the subfolder "admin" includes a user control from the subfolder "common". Both subfolders ("admin" and "common" are in the root).

- admin
-- aspx page
- common
-- user control

The page works well when started from Visual Studio, but when the project is precompiled for deployment, the next error occurs:

"The base class includes the field 'WebUserControl1', but its type (common_WebUserControl) is not compatible with the type of control (ASP.common_webusercontrol_ascx)"

I tried to use "Reference" in the .aspx page, but that doesn't work.

Does anybody know any workaround for this?

I.P Address to Location ? by Programming (L I N Q) ? ?

Hello Experts .. Kindly Help me in this .... I have to fetch Location (country , state)  of IP by which orders are purchased .... I managed to get the IP Address of the coustmer by My main concern is location .... can i do this by Programming Via LINQ ....Is this necessary to use another database ... As i get the code which is in VB .... kindly Help me by converting this code in C# or LINQ ... or give me new suggestions ...______________________________________________________________________________________________________________________Protected Sub Button1_Click(ByVal sender As Object,_ ByVal e As System.EventArgs) Handles Button1.Click On Error GoTo HandleError Dim strGetIP As String Dim dblGetLongIP As Double Dim dblPrevPosition As Double Dim dblPosition As Double Dim dblNumber As Double strGetIP = orders.CoustomerIP For i = 1 To 4 dblPosition = InStr(dblPrevPosition + 1, strGetIP, ".", 1) --------- As i used online VB to C# converting this for loop is creating problem ... kindly .. If i = 4 Then dblPosition = Len(strGetIP) + 1 End If dblNumber = Int(Mid(strGetIP, dblPrevPosition + 1, dblPosition - dblPrevPosition - 1)) dblPrevPosition = dblPosition dblGetLongIP = ((dblNumber Mod 256) * (256 ^ (4 - i))) + dblGetLongIP Next

Initialize snapshot fro alternate location - multiple .bcp files for an article

I have to replicate over 50GB of data over a slow network.  I did not use the option to initialize snapshot from database backup because the replication articles contain row filters.  If I do that, I'll have to run a lot of scripts to remove the data and other unnecessary database objects on the subscriber. Instead, I created a workaround.  On the publisher, I first create the actual push subscription to the target subscriber on the publication.  This subscription is set not to initialize from snapshot.  I then created a second push subscription on the same publication, but the subscriber is a random database on the publisher server.  This second subscription is a dummy subscription set to initialize from snapshot - the purpose is to generate the necessary snapshot files.  I then reinitialized all subscriptions and generate the new snapshot files. On the subscriber, an empty database is created with the same tables as the publisher database.  I created an identical publication on this empty database, and a dummy push subscription on the target subscriber.  The subscription is reinitialized, and the snapshot files on the empty database is created.  These dummy snapshot files are then overwritten with the actual snapshot files created on the publisher, and then I synchronize the the dummy subscriptions with the actual sn

Location-Based Metadata #sp2010plaintalk

This is the first post in a series of SharePoint 2010 plaintalk (#sp2010plaintalk) aimed at SharePoint professionals who are exploring features of the platform, typically to do feasibility assessments for applying platform features in projects. With every new version of the platform I tend to spend a lot of time digging through the marketing and technical content of the new features to understand what a new feature *really* does. We'll start out with a small one on Location-Based Metadata (sounds...(read more)

Web Folder problem : This file cannot be saved to this location because there is no connection to th

When I check out a Word 2007 document from a list, I cannot save it back to the server.  I get:   This file cannot be saved to this location because there is no connection to the server.  Check your network connection and try again.   I am using a Virtual Machine (Virtual PC).  I have the Microsoft Loopback adapter installed.    The server has a static IP address and is a domain controller. I am able to access the web folder through Windows Explorer.   How do I set up Office, Sharepoint and Webdav so that I can check files out of sharepoint and save them back, on a virtual machine?

summing value in dataset2 based on location group in dataset1

I have two datasets where I pull date from for this report...dataset1 has sales by month and location and trans dataset has trans spend by locaiton and supplier.  I want to include sales in a location groups but only sales for that location in the group....right now it seems to sum up all the sales even though I put the sales figure inside the location group... how do I do that...do I use a iif function?? do I need to do something with parameters?

Overriding runAllManagedModulesForAllRequests for single location

There is an ASP.NET application, having a virtual directory VIRDIR. Now if I code in web.config... <system.webServer>   <modules /></system.webServer> <location path="VIRDIR">   <system.webServer>      <modules runAllManagedModulesForAllRequests="true" />   </system.webServer></location> should this work the obvious way? With "runAllManagedModulesForAllRequests=false" for the entire web, except for the virtual directory, where "runAllManagedModulesForAllRequests=true". It seems as if "runAllManagedModulesForAllRequests" cannot be overridden for a specific location. Is this correct? Michael G. Schneider

SQL Server Management Studio - Invalid access to memory location

In SQL Server Management Studio (for SQL Server 2008), when I try to open a new query window, or create a new database, I get a popup error box saying the following: "Invalid access to memory location. (Exception from HRESULT: 0x800703E6) (mscorlib)" This just started happening in the last few days, and I have no idea why.  I even uninstalled SQL Server 2008, and then installed SQL Server 2008 R2, and continued to get the exact same error, in the exact same scenarios. Please let me know if you have seen this before, and what I might try to correct it. Thanks, Robert  
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