我正在尝试使用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) 我刚刚在我的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)