小编nan*_*rya的帖子

无法找到ServiceHost指令中的WCF,Service属性值

我正在尝试使用IIS 6托管我的服务,但我一直得到这个例外.

    Server Error in '/WebServices' Application.
--------------------------------------------------------------------------------

The type 'QS.DialogManager.Communication.IISHost.RecipientService', provided as the Service attribute value in the ServiceHost directive could not be found. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: The type 'QS.DialogManager.Communication.IISHost.RecipientService', provided as the Service attribute value in the ServiceHost directive could not be found.

Source Error: 

An unhandled …
Run Code Online (Sandbox Code Playgroud)

c# iis wcf

73
推荐指数
7
解决办法
18万
查看次数

应用程序不会出现在django admin中

我刚刚在我的mac os x雪豹上安装了django并且遇到了一些问题.我做了一个非常简单的项目,只包含一个简单的应用程序.
该应用程序只包含一个模型,这是一项任务.运行syncdb时,创建的任务表没有任何问题,我被要求创建新用户.
一切正常,我可以登录等,但我的应用程序没有显示.

这是我项目中的一些代码.

settings.py

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'work.todo',
)
Run Code Online (Sandbox Code Playgroud)

待办事项/ admin.py

from work.todo import Task
from django.contrib import admin

admin.site.register(Task)
Run Code Online (Sandbox Code Playgroud)

urls.py

from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^work/', include('work.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to …
Run Code Online (Sandbox Code Playgroud)

django django-admin

4
推荐指数
1
解决办法
2081
查看次数

标签 统计

c# ×1

django ×1

django-admin ×1

iis ×1

wcf ×1