Всем привет.
Вот такая неприятность произошла в этот раз: сделал страничку у себя на ПК, оттестил - все ОК. Перекинул ее и сопутствующие компоненты на тестовый сервер -все нормально. Но кинул на рабочий - вылезла ошибка:
CS0102 The type 'ResourceTariff' already contains a difinition for '_schemaSerializationMode'
Выкинул из App_Code новый XSD - сайт открылся, но XSD нужен для новой страницы.
Сравнил ее Araxis'ом c аналогичной - отличий нет (ну только хранимку другую вызывает).
Никто с таким не сталкивался?
Код XSD-файла
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ResourceTariff" targetNamespace="http://tempuri.org/ResourceTariff.xsd" xmlns:mstns="http://tempuri.org/ResourceTariff.xsd" xmlns="http://tempuri.org/ResourceTariff.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" GeneratorFunctionsComponentClassName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" UserFunctionsComponentName="QueriesTableAdapter" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="CABDBConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="CABDBConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.CABDBConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables />
<Sources>
<DbSource ConnectionRef="CABDBConnectionString (Web.config)" DbObjectName="CABDB.dbo.P_PLANT_TARIFF_PERIOD_CHECK_CROSS_PERIOD" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="P_PLANT_TARIFF_PERIOD_CHECK_CROSS_PERIOD" MethodsParameterType="CLR" Modifier="Public" Name="P_PLANT_TARIFF_PERIOD_CHECK_CROSS_PERIOD" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="P_PLANT_TARIFF_PERIOD_CHECK_CROSS_PERIOD">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.P_PLANT_TARIFF_PERIOD_CHECK_CROSS_PERIOD</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@p_tariff_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@p_date_begin" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@p_date_end" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Output" ParameterName="@p_result" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="ResourceTariff" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="ResourceTariff" msprop:Generator_UserDSName="ResourceTariff">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded" />
</xs:complexType>
</xs:element>
</xs:schema>
P.S. Открыть проект прямо на сервере не могу - прав нет.