SORU
22 ŞUBAT 2010, PAZARTESİ


Modeli öğe sözlüğün içine geçti yazın ‘mvc.Modelleri.ModelA’ ama bu sözlük türü bir model öğesi ‘mvc gerektirir.Modelleri.ModelB‘

Bazı yapılar bu can sıkıcı hata var.

Eğer tekrar inşa edersen, o zaman bu sorun ortadan kalkar çünkü projede hata var. Bu mesaj sadece sitesini Windows 2008 Sunucu için dağıtıldığında görünür.

Ben ilk geçici dosyalar ile ilgili bir sorun olabileceğini düşündüm, ama durum bu. Farklı bir web oluşturmak ve hata hala görünür konuşlandırılmış.

Hata sitenin rasgele eylemler görünür. Çoğu zaman sorun oluşturur, ama 3 veya 4. her çalışma zamanı hataları üretir oluşturun.

Yayın modunda bir WebdeploymentProject kullanarak yapıyorum. Görüşlerini önceden derlenmiş.

Görüşleri tamamen farklı isimleri olduğundan 5 ** değil.

Bu sorun, hata ayıklama nasıl yapabilirim veya bunun için yardım nasıl alabilirim?

İşte benim WebDeploymentProject

    <!-- 
      Microsoft Visual Studio 2008 Web Deployment Project 
      http://go.microsoft.com/fwlink/?LinkID=104956

    -->
    <Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <PropertyGroup>
        <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
        <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
        <ProductVersion>9.0.21022</ProductVersion>
        <SchemaVersion>2.0</SchemaVersion>
        <ProjectGuid>{E5E14CEB-0BCD-4203-9A5A-34ABA9C717EA}</ProjectGuid>
        <SourceWebPhysicalPath>..\B2CWeb</SourceWebPhysicalPath>
        <SourceWebProject>{3E632DB6-6DB3-4BD0-8CCA-12DE67165B48}|B2CWeb\B2CWeb.csproj</SourceWebProject>
        <SourceWebVirtualPath>/B2CWeb.csproj</SourceWebVirtualPath>
        <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
      </PropertyGroup>
      <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
        <DebugSymbols>true</DebugSymbols>
        <OutputPath>.\Debug</OutputPath>
        <EnableUpdateable>false</EnableUpdateable>
        <UseMerge>true</UseMerge>
        <SingleAssemblyName>B2CWeb_Build</SingleAssemblyName>
      </PropertyGroup>
      <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
        <DebugSymbols>false</DebugSymbols>
        <OutputPath>..\B2CWeb_Deploy\</OutputPath>
        <EnableUpdateable>false</EnableUpdateable>
        <UseMerge>true</UseMerge>
        <SingleAssemblyName>B2C_Web</SingleAssemblyName>
        <ContentAssemblyName>
        </ContentAssemblyName>
        <DeleteAppCodeCompiledFiles>false</DeleteAppCodeCompiledFiles>
      </PropertyGroup>
      <ItemGroup>
      </ItemGroup>
      <Import Project="$(MSBuildExtensionsPath)\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets" />
      <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
           Other similar extension points exist, see Microsoft.WebDeployment.targets.
      <Target Name="BeforeBuild">
      </Target>
      <Target Name="BeforeMerge">
      </Target>
      <Target Name="AfterMerge">
      </Target>
      <Target Name="AfterBuild">
      </Target>
      -->
    </Project>

EDİT

Birkaç ay sonra bu sorun odanızda. Üzerinden 1 yıl süre ile sorunları olmadı. Sorun kimsenin beklediği zaman tekrar grev olacak sanırım.

2 DÜZENLEYİN

... 2 yıldır şimdi. O kadar şanslı bir adamım ben!

3 DÜZENLEMEK

Ben sadece bunu oku ve benim gibi sorun geliyor. Hata ayıklama devre dışı, ama hala derleme "bazen yanlış". Eski sağlayıcı davranış sorunu olabilir. Ama bu sadece tahmin.

Very large pages containing long spans of HTML with no server blocks (e.g. <%= %>) can cause a stack overflow when debug compilation is enabled that will crash the application. Note that in our testing it’s taken a page that’s ~4x as large one that would’ve produced a similar issue in the old provider, but in this case it crashes the entire application, whereas with the old provider it just fails the offending page

http://blogs.msdn.com/b/webdev/archive/2014/05/12/enabling-the-net-compiler-platform-roslyn-in-asp-net-applications.aspx

CEVAP
19 Mart 2010, Cuma


Bile bu tür bir maç, sen-ebilmek almak bu hata ne zaman boş geçirilen bir kısmi görünümü, düzeltme oldu arayıp RenderPartial gibi bu: helper.RenderPartial("~/Views/Player/PlayerName.ascx", player,new ViewDataDictionary()); boş bir görünüm veri sözlüğü, belki de bu geçerlidir de mi burada? Başvuru için bu çözüm buldum:

http://stackoverflow.com/questions/650393/asp-net-mvc-renderpartial-with-null-model-gets-passed-the-wrong-type

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Droid Life

    Droid Life

    17 Kasım 2009
  • MisterBrightside

    MisterBright

    24 Mart 2006
  • Modus Recordings

    Modus Record

    26 Kasım 2008